I had an existing python exporter for Blender 2.7 which iterated through all the visible objects in the scene, grabbed any child meshes and duplicated them, applied modifiers, triangulated the duplicate and exported it, leaving the original untouched. This worked like so: processedMesh = mesh.to_mesh( bpy.context.scene, True, 'PREVIEW' )      bm = bmesh.new() bm.from_mesh( processedMesh ) bmesh.ops.triangulate( bm, faces=bm.faces ) bm.to_mesh( processedMesh ) bm.free() del bm  # translate processedMesh data for export  In this example, to_mesh() was responsible for applying the modifiers. However, according to the , to_mesh() no longer takes these parameters and it appears to work differently. Is there another way to accomplish this goal? I had thought after some research that I might have to duplicate the parent objects (rather than the meshes) but it's all a bit too opaque to know for sure.

I'm trying to update an exporter to work with Blender 2.8 but can't seem to get a mesh data-block modified by modifiers or shape keys. It always gives me the base mesh.  I'm currently using Object.to_mesh(). But reading Object.data or bmesh.from_mesh(obj) all returns only the base mesh. So what is the new function to call for getting a mesh data-block with the modifiers and shape keys applied?


I'm wonder why this simple code doesn't work.  In main.py I have  def foo():     HTTPHelper.setHost("foo")     host = HTTPHelper.host()   and in HTTPHelper.py:  _host = None def setHost(host):     _host = host def host():     return _host   But when I step through foo() host becomes NoneType, even though I set it on the line before. Very confused...

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


Is it possible to have mutliple lines in command line (CMD)? Something like  "C:\Program Files\WinRAR\WinRAR.exe" a  aaa.txt.hpp,  bbb.txt,  ccc.txt   instead of   "C:\Program Files\WinRAR\WinRAR.exe" a aaa.txt.hpp, bbb.txt, ccc.txt

I'm trying to execute a command on cmd.exe, with a line break or new line as part of the command, like below:  command -option:text   whatever   But every new line executes the command, instead of continuing the command on the next line.  So how can I input a new line character, or create a multi-line command in cmd.exe?


The situation is my  has been enchanted with .  The creature has      when it dies, return it to his owner’s hand   The enchantment says     When enchanted creature dies, return that card to the battlefield under your control with a +1/+1 counter on it.   Who gets the creature? Me or my rival?  Does the creature ability trigger before or after enchantment?

If triggered abilities from sources controlled by multiple players all trigger at the same time, in what order do they resolve?  For example, if I control  and at least two other creatures on my side of the field and my opponent plays , can I use Obezdat's ability of exiling him to save him from Archfiend's ability at the end step? Since both abilities trigger at the beginning of the end step, whose ability resolves first?


I've run across many examples of Core Foundation variables named k + someVariableNameHere or k + APILibraryName(2Char) + someVariableNameHere.  What does this prefix K indicate?   Examples include:  kGLPFAStereo kCollectionLockBit kSetDebugOption

I know this is a common convention, but what does the "k" in variable names signify? (i.e. kMaxImageViewSize)  I looked in the Apple documentation on Variable names and found no mention of it.  Thanks for answering


Is there any particular reason that the Hamiltonian operator was defined in quantum mechanics to be $$\hat H := \frac{\hat p^2}{2m} + V$$ as opposed to $$\hat H := i\hbar \frac{\partial}{\partial t}?$$  This latter definition would put the momentum and Hamiltonian operators in a nice parallel in position space, paring each conserved quantity with its Noether symmetry as a derivative.  $$\hat H = i\hbar \frac{\partial }{\partial t} \longleftrightarrow \hat p = -i\hbar \frac{\partial}{\partial x}$$  It also would put the Schrödinger equation in the following form, which parallels the classical equation.  $$\hat H \Psi = \frac{\hat p^2}{2m} \Psi + V \Psi \longleftrightarrow H = \frac{p^2}{2m} + V$$  Is there any reason why we have instead chosen to write $\hat H = \hat p^2 / 2m + V$ and the Schrödinger equation as $\hat H \Psi = i\hbar\ \partial \Psi / \partial t$? The alternative view seems a bit more enlightening to me, imho.

In the time-dependent Schrodinger equation, $ H\Psi = i\hbar\frac{\partial}{\partial t}\Psi,$  the Hamiltonian operator is given by  $$\displaystyle H = -\frac{\hbar^2}{2m}\nabla^2+V.$$  Why can't we consider $\displaystyle i\hbar\frac{\partial}{\partial t}$ as an operator for the Hamiltonian as well? My answer (which I am not sure about) is the following:   $\displaystyle H\Psi = i\hbar\frac{\partial}{\partial t}\Psi$ is not an equation for defining $H$. This situation is similar to $\displaystyle F=ma$. Newton's second law is not an equation for defining $F$; $F$ must be provided independently.   Is my reasoning (and the analogy) correct, or is the answer deeper than that?


I understand that companies that offer RRSP matching programs may be more attractive to work for/have better employee retention, and the employers may get warm fuzzies from offering it to their employees, but do they receive any kind of direct financial benefit from doing so?  Specifically interested in Canada, but curious about the US as well if anyone has relevant info.

Why do companies offer 401k (or other) retirement plans?  Let me elaborate this...  I understand that it could be part of an employee's benefits and that a retirement plan option might increase the company's value and improve employees' retention but are there any other reasons? Does the company have any return on it? Any fiscal/financial facilitation?   Nowadays I can have access to thousands of Mutual Funds and ETFs through regular discounted online brokerage companies (that sometimes are way better than the options offered in 401ks) and a Roth IRA (for the ones who qualify) is generally more advantaged that any 'k' accounts so what's the point?  Also, why a company would prefer matching someone's contributions (and given him or her additional free money) instead of just offering a simple raise?


I'm seeing blogs as well as a few start-up projects using Facebook Walls as their comments sections. These are integrated with your Facebook account and generates a Facebook Notification when you receive responses to your comments. Clicking the notification takes you to the original website.  Since each of these websites has a separate "Wall" for different content, it is difficult to find your posts if you don't remember where you made the original post.  Is there a way to find posts that you've made to external Facebook Walls on third-party websites?

Is there any way to find all comments on external websites connected with a Facebook account? Let's say I want to find all my Facebook activity on external pages based on profile URL; is there any way to do this?


I am having troubles with proving the following statement:  if $x$ is a set, then $x \notin x$.  I am only allowed to use the axioms from the Zermelo-Fraenkel Set Theory. Thanks so much if someone could give me a hand!

Exercise 3.2.2 Use the axiom of regularity and the singleton set axiom to show that if $A$ is a set then $A \notin A$.  Axiom of Regularity: If $A$ is a non-empty set, then there is at least one element x of A which is either not a set, or is disjoint from A.  Singleton Set Axiom: If $a$ is an object, then there exists a set $\{a\}$ whose only element is $a$, we refer to $\{a\}$ as the singleton set whose element is $a$ Furthermore, if $a$ and $b$ are objects, then there exists a set $\{a,b\}$ whose only elements are $a$ and $b$    I think I can give the proof when A is the non-empty set which contains finite elements. However, can anyone give any hint for the general case?  Suppose $A \in A$   Then eixsts $x$ such that either $x$ is not a set or $x \cap A$=$\emptyset$  Then it is clear thar $x \ne A$ (if $x = A$, then $x \cap A \ne \emptyset$)  We observe that as an element, $A$ $\ne$ $x$, $A$ $\in$ $A$  Then $A$ $\in$ $A-x$   Define the new set $A-x$ as $A_1$  then exists $x_1$ such that $A \in A_1-x_1$  After finite steps  we find that $A \in \emptyset $  which leads to contradiction.


By default in Debian 9 systemd is the default. But I still see a lot of things under /etc/init.d directory. Does that mean I still can put things there to start up? Which directory (systemd or init.d) will be executed first?

I just switched to debian jessie, and most things run okay, including my graphical display manager wdm.  The thing is, I just don't understand how this works. Obviously my /etc/init.d/wdm script is called, because when I put an early exit in there, wdm is not started. But when I alternatively rename the  /etc/rc3.d directory (my default runlevel used to be 3), then wdm is still started.  I could not find out how systemd finds this script and I do not understand what it does to all the other init.d scripts.   When and how does systemd run init.d scrips? In the long run, should I get rid of all init.d scripts?


The inset texcount implementation seems to conflict with titlesec package. The desired outcome is to relieve the conflict with titlesec as well as ensuring robustness against other potential conflicts. \documentclass{article}% \usepackage{filecontents}% %\usepackage{titlesec} %**** uncomment to see error message   % Compile with  --enable-write18 or --shell-escape options    \immediate\write18{texcount -char -merge -tex -sum \jobname.tex | grep -i section > \jobname Count.txt} % counts characters %\immediate\write18{texcount -merge -tex -sum \jobname.tex | grep -i section > \jobname Count.txt} % counts words \newcommand{\limitcount}{-1}  \usepackage{xstring} \usepackage{ifthen} \usepackage{xcolor} \usepackage{nameref}  \newcommand{\processCount}{%  \newread\counts  \def\zpar{\par}  \openin\counts=\jobname Count.txt  \loop  \read\counts to \sectioncount  \ifx\sectioncount\zpar\else  \showcount{\sectioncount}\\  \fi  \ifeof\counts  \else  \repeat }  \newcommand*{\showcount}[1]{%  % e.g. 67+18+0 (1/0/0/0) S[ubs]ection: The first subsection  \StrBehind{#1}{ection: }[\sectiontitleplusspace]  \StrGobbleRight{\sectiontitleplusspace}{1}[\sectiontitle]  \StrBefore{#1}{+}[\thiscount]  \expandafter\ifcsname\sectiontitle limit\endcsname%   \renewcommand{\limitcount}{\csname\sectiontitle limit\endcsname}%  \else%   \renewcommand{\limitcount}{-1}%  \fi%  \sectiontitle:  {%   \ifthenelse{\thiscount>\limitcount}{%    \textcolor{red}{\thiscount/\limitcount}%    \ifthenelse{\limitcount>-1}{%     \ (over by \number\numexpr\thiscount-\limitcount\relax)%    }{}%   }{%    \textcolor{green}{\thiscount/\limitcount}%   }%  } }  \makeatletter \newcommand*{\contentlimit}[1]{%  \expandafter\newcommand\csname\@currentlabelname limit\endcsname{#1} } \makeatother        \begin{filecontents*}{texcountinc.tex} \subsection*{Input section title} \contentlimit{40} HEy, here are some more characters. File contents that will get input elsewhere. $a^2+b^2=c^2$. \[\frac{\sin A}a=\frac{\sin B}b=\frac{\sin C}c\] \end{filecontents*}   \begin{document}  %TC:ignore  \section*{Introduction} \contentlimit{2000}  Content for section which has become longer and longer  %TC:endignore   \section*{Another section with subsections over limit} \contentlimit{15}  Intro  \subsection*{The first subsection no stated limit}  This subsection has somewhat more voluminous content which tends to go on and on... and on  \subsection*{Extra spaces ignored  } \contentlimit{50}  Content aimed at testing whether math and symbols are counted: $\int$, $\Sigma$.   \section*{texcount doesn't understand lipsum} \contentlimit{1}  Another input  \subsection*{Inputing Content} \contentlimit{18}  \input{texcountinc}  %TC:ignore   \section*{An ignored section}  This section is ignored   % display information on document \newpage \section*{Count} \processCount  %TC:endignore   \end{document}  See  for background.

\nameref breaks for the star versions of section, paragraph when titlesec is loaded. I have a document that numbers paragraphs by default, but I have a few I do not want to number but would like to refer to. These are marked with \paragraph*, however, if the titlesec package is loaded at the same time, it causes nameref to display an empty string (the link box of hyperref is still visible).  MWE:  \documentclass[12pt]{article} \usepackage[sf]{titlesec} %comment this out and it works fine. \usepackage{hyperref} \begin{document} \section{Sections} \label{sec} This is \nameref{sec} \paragraph{A named Paragraph} \label{par} This is \nameref{par} \paragraph*{A starred named Paragraph} \label{par:star} This is \nameref{par:star} \end{document}   I suspect titlesec causes this defect for ALL star variants of sectioning commands but have not tested this. For me only paragraph* is relevant however a fix for all variants would be the best.  I have a hunch it might be related to this:  however this happens to go way beyond my latex knowledge and is just "magic" for me.


Can someone tell me if this proof is sufficient given the assumption.  Let H,K be normal subgroups of G. Assumption: g(H∩K)= (gH)∩(gK)  Proof: g(H∩K)        =(gH)∩(gK)        =(Hg)∩(Kg)        =(H∩K)g  Can someone tell me if I am missing something? I haven't seen this solution before and it seems simple.

Show that the intersection of normal subgroups is normal.   Let $H_1$ and $H_2$ be normal in $G$, meaning $\forall a \in G$, $aH_1 = H_1a$ and $aH_2 = H_2a$. We show that $a (H_1 \cap H_2) = (H_1 \cap H_2)a$.  Now notice $aH_1 \cap aH_2 = H_1a \cap H_2 a$, so we are done.   My book does something completely off and they showed that $(H_1 \cap H_2)$ is actually a subgroup first, then they used conjugation to prove normality. I thought showing left and right cosets coinciding is enough?


I am looking for a book I read in the late 80's about twin brothers, one jumped ship and remained behind on Earth, the other on a slow-ship to another star. Hyperspace travel is considered a myth, starship crew are alienated from the rest of humanity due to the relativistic effects of near light-speed travel, returning after each cargo run to an Earth that has advanced by 20-100 (?) years or so, depending on which star they traveled to.   The starship brother jumps ship in order to find his twin, effectively kidnap him in order to return him to the starship, while he remains on earth to search for clues to a mysterious eccentric who claimed to have cracked the secret of hyperspace travel, yet disappeared without a trace and is presumed dead, idolized by the brother.   Over-oxygenation features as a danger later on in the story as the one twin brother is tracking down the clues to his scientific hero.

This is a book I read 40 years ago. I remember the plot but haven't a clue as to the title.  A young man misses the takeoff of his trader families’s spaceship and is marooned on a planet. He has no real skills to find work and falls in with a gambler who shows him how to play a game that will provide him with enough credits to live on. After a botched robbery attempt where his benefactor is killed, he finds himself a very rich man and sets out to pursue a rumor of a FTL/Warp drive so he can be reunited with his family.


I have a Nvidia video card, but also a built in Intel HD graphics. On windows I can do 3 screens with 2 screens on the nvidia and the third on the Intel card. Is this also possible in Ubuntu? Because Ubuntu doesn't detect the third screen. I have Ubuntu 14.0.

We want to set up a 3 screens with an onboard intel graphics adapter and an nvidia card.  Both cards are recognized in lspci   01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2) 00:02.0 Display controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)   And bascially work: If I switch to the console, I see output on the Intel card, X is only running on the Nvidia card.  But when I type xrandr | grep conn I get only one connected port:   DVI-I-0 disconnected (normal left inverted right x axis y axis) VGA-0 disconnected (normal left inverted right x axis y axis) DVI-I-1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm HDMI-0 disconnected (normal left inverted right x axis y axis)   I am on Ubuntu 12.10 (and XFCE) and installed the proprietary nvidia driver.  I was assuming that X maybe has a problem to autodetect both cards, so I thought the following xorg.conf could help:   Section "ServerLayout"     Identifier     "Layout0"     Screen      0  "Screen0"     Screen      1  "Screen1"     InputDevice    "Keyboard0" "CoreKeyboard"     InputDevice    "Mouse0" "CorePointer" EndSection  Section "Files" EndSection  Section "InputDevice"     # generated from default     Identifier     "Mouse0"     Driver         "mouse"     Option         "Protocol" "auto"     Option         "Device" "/dev/psaux"     Option         "Emulate3Buttons" "no"     Option         "ZAxisMapping" "4 5" EndSection  Section "InputDevice"     # generated from default     Identifier     "Keyboard0"     Driver         "kbd" EndSection  Section "Monitor"     Identifier     "Monitor0"     VendorName     "Unknown"     ModelName      "Unknown"     HorizSync       28.0 - 33.0     VertRefresh     43.0 - 72.0     Option         "DPMS" EndSection  Section "Device"     Identifier     "Device0"     Driver         "nvidia"     VendorName     "NVIDIA Corporation"     BoardName      "GeForce 210" EndSection  Section "Screen"     Identifier     "Screen0"     Device         "Device0"     Monitor        "Monitor0"     DefaultDepth    24     SubSection     "Display"         Depth       24     EndSubSection EndSection   Section "Monitor"     Identifier     "Monitor1"     VendorName     "Unknown"     ModelName      "Unknown"     HorizSync       28.0 - 33.0     VertRefresh     43.0 - 72.0     Option         "DPMS" EndSection  Section "Device"     Identifier     "Device1"     Driver         "intel"     VendorName     "Intel"     BoardName      "Internal Intel Graphics" EndSection  Section "Screen"     Identifier     "Screen1"     Device         "Device1"     Monitor        "Monitor1"     DefaultDepth    24     SubSection     "Display"         Depth       24     EndSubSection EndSection   But it is still not working.   Is this generally possible to use two different drivers in X ? Is it necessary to create an xorg.conf manually then? (because Ubuntu 12.10 normally works without the xorg.conf) Are there any errors in my xorg.conf?


I've already made the coronavirus cell.  There is no way that I am going to tediously move every single cell to create the shape of the numbers that'll take forever! Is there some way I could make the year '2020' 3D, turn the numbers into invisible containers and then 'pour' the cells into them? Or could I make the 3D numbers invisible and somehow make all the coronavirus cells stick to them as if they are magnets? Ideally, I would like the coronavirus cells to look as though they have gathered together, like a swarm of bees, to create the shapes of the numbers in the year 2020. Is this doable? It's not for an animation, it's for a still image.

I'm using cycles and particles that form text. I've got every letter separated, and while the particles form the shape, it doesn't properly 'fit' the shape or cover all of the surface of the object, so it doesn't work properly for me.  I've already tried making another particle system on the same object, with more particles, but it looks weird...is there any solution to this?  Thanks in regard, I'll be waiting for a response.


Hello programmers this is my question today, what function in jquery do i need so when a counter reach the number 100 that page is redirected to the main menu?

How can I redirect the user from one page to another using jQuery or pure JavaScript?


Aim – Pull the last login date from the user object into my custom object and populate a particular field  Now I am under the impression that LastLoginDate on the user object is not accessible through formulas in custom objects. The only way that LastLoginDate is accessible is through triggers   **Custom Object**  Object Name Mason_Object API Name    Mason_Object__c  **Field I would like to update is on the mason_object**  Field Label : LastLogin Api Name : LastLogin__c Data type: Date/Time  I have written the following trigger (see below) however its not pulling through any values. Any ideas why ?  trigger lastloginDate on Mason_Object__c(before update) {  User u = [SELECT LastLoginDate FROM User WHERE Id =:UserInfo.getUserId()]; trigger.new[0].LastLogin__c = u.LastLoginDate;  }

Is there any way to consistently execute a piece of Apex code whenever a User logs in to Salesforce? Posts such as  seem to suggest that triggers on updates to the User object's 'LastLoginDate' field do not consistently execute.  Workflow would be okay too --- except that you cannot make workflow rules on the User object.  Is there any way to get a trigger to execute whenever a Salesforce user logs in?  Here is what I've currently done, both with the trigger saved in API v12 and API v25, with NO success. I have a Login_Events__c Long Textarea field that I'm trying to update based on some details of the User login event, but no such updates are taking place:  trigger User on User (before update) {      if (Trigger.isBefore && Trigger.isUpdate) {          for (User u : Trigger.new) {              // Make sure there's at least something in the Login Events field             if (u.login_events__c == null) u.login_events__c = '';              // Add in the current login events change             u.login_events__c +=                '\n User Id: '                 + u.Id                + ', Username: ' + u.Username                 + ', Last Login Date: '                 + u.LastLoginDate                 + ', Session Id: ' +  UserInfo.getSessionId()                 + '\n';              }      }  }


I understand the particular form of vectors of subspace $S$ of Free vector space $F(V \times W)$;  $$ (v+v',w)-(v,w)-(v',w) $$  $$ (v,w+w')-(v,w)-(v,w') $$  $$ a(v,w)-(av,w) $$  $$ a(v,w)-(v,aw) $$  They are just the "right candidates" to force bilinearity. But, it seems that they are really a set of four vectors. I mean, the claim is that they generate the subspace $S$. Hence, we can write a linear combination with then.  So, can I say that every vector of the subspace $S$ is written like:  $$u = c^{1}(v+v',w)-(v,w)-(v',w) + c^{2}(v,w+w')-(v,w)-(v,w')+c^{3}a(v,w)-(av,w)+c^{4}a(v,w)-(v,aw) \equiv c^{1}e_1 + c^{2}e_2 + c^{3}e_3 + c^{4}e_4 ?$$  Put in another way, they are a basis of four vectors like: $$\{e_1,e_2,e_3,e_4\} \equiv  \{(v+v',w)-(v,w)-(v',w) , (v,w+w')-(v,w)-(v,w') , a(v,w)-(av,w) , a(v,w)-(v,aw)\}?$$

This is essentially a follow-up on this question . Specifically, I'm studying the construction of the tensor product of two vector spaces as indicated by the OP's 2nd definition. Namely, that the tensor product of two vector spaces $V$ and $W$ is the quotient space $V \times W / E$ where $E$ is the subspace of $V \times W$ generated by linear combinations of the form  $$ (v_1 + v_2, w) - (v_1, w) - (v_2, w) $$ $$ (v, w_1 + w_2) - (v, w_1) - (v, w_2) $$ $$ (av, w) - a(v,w) $$ $$ (v,aw) - a(v,w) $$  We also denote an element of this quotient space by $v \otimes w$. Now, I'm trying to understand precisely why it follows from this construction that, for example, $(v_1 + v_2) \otimes w = v_1 \otimes w + v_2 \otimes w$. I believe it follows from the following argument:  First, we note that   $$ (v_1 + v_2, w) - (v_1, w) - (v_2, w) = (v_1 + v_2, w) - ((v_1, w) + (v_2, w)) $$  By definition of what it means to be a quotient space, this last equation means that  $$ [ (v_1 + v_2, w)] = [(v_1, w) + (v_2, w)] $$  where $[ \cdot ]$ denotes the induced equivalence class. But, according to the definition of the $\otimes$ operator, we can express this equality as  $$ (v_1 + v_2) \otimes w = v_1 \otimes w + v_2 \otimes w $$  Is this argument valid and is this the appropriate way to think about these things?


What is best way to run OLS in R with linear inequality constraints, e.g.  $$y(x)= ax + b,$$ where $0<a<1$?

I want to perform a very simple linear regression in R. The formula is as simple as $y = ax + b$. However I would like the slope ($a$) to be inside an interval, let's say, between 1.4 and 1.6.  How can this be done?


I have a string like this:  a = '"a a a" "b b b" c d'   and I want to get a list that looks like this:  b = ['a a a', 'b b b', 'c', 'd']   Basically when there is something inside "..." I want to keep it as one element of the list.  Any ideas?

I have a string which is like this:  this is "a test"   I'm trying to write something in Python to split it up by space while ignoring spaces within quotes. The result I'm looking for is:  ['this','is','a test']   PS. I know you are going to ask "what happens if there are quotes within the quotes, well, in my application, that will never happen.


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!

Consider the following putative theorem.   Theorem? Suppose A, B, and C are sets and $A \subseteq B \cup C$. Then either $A \subseteq B$ or $A \subseteq C$.   What's wrong with the following proof?   Proof. Let $x$ be an arbitrary element of A. Since $A \subseteq B \cup C$, it follows that either $x \in B$ or $x \in C$.   Case 1. $x \in B$. Since x was an arbitrary element of A, it follows that $\forall x \in A(x \in B)$, which means that $A \subseteq B$.  Case 2. $x \in C$. Similarly, since x was an arbitrary element of A, we can conclude that $A \subseteq C$.  Thus, either $A \subseteq B$ or $A \subseteq C$.   I have proved that the theorem is incorrect but I can't understand why the above proof is not correct.


I discovered that a text file created with Notepad++ or Notepad prefixes the actual text with three bytes:    They are not visible in either of these editors but the hexdump above reveals them, they are also visible when reading in the file with a program (a Python script for instance).  What are they?

I am only using the 128 character set defined in the original ANSI standard.  But as a whole how are the files implmeneted differently.    I am not concerned with the display, i.e. if a tab is displayed with 6 or 8 characters but the actual internal representation in memory  One difference I've heard is the use of \r\n (Windows) vs. \n for line termination (Linux).


When I put the code:  \documentclass{article} \begin{document} \begin{table}[h] \begin{center} \begin{tabular}{|c|c|c|} \hline Air & \multicolumn{2}{|c|}{\textit{Oscilations/180s}} \\ \hline 521&521&522\\ \hline \end{tabular} \end{center} \end{table} \end{document}   I obtain this:    But I would like that the second row, second and third columns, have the same size.  Can anyone help me?  Just another doubt, how can I add a piece of Latex Code in a more estilista way?  Thanks.

I'm trying to typeset a table that would have a header in the first row (I'm not looking for a different/better solution to adding a header, but for a fix to this solution. Thanks). I want to achieve this by having a multicolumn cell spanning all the columns of the first row. The problem is that if the text is too long, the column widths are uneven, with the last column accumulating excess width. I would expect all of the columns to be of approximately the same width (although I cannot find a decent source that would say they should), given the fact that all the text in the second row is of approximately the same width.  I find this behaviour quite puzzling and have no idea what the cause could be. I know I could perhaps remedy this by manually setting the column widths, but am curious as to how to fix this without doing that (I do not need or indeed want the columns to be of the same width, but roughly proportional to the length of their content), preferably but not necessarily by using the tabular environment only (some other conflict with the document class I am using).   What is it that I'm doing or assuming wrong? And why?  MWE:  \documentclass{article} \begin{document}  \begin{tabular}{ccccc} \multicolumn{5}{c}{This is a piece of text. The longer it is, the longer the last column.} \\  1 & 2 & 3 & 4 & 5 \\ \hline \end{tabular}  \end{document}   Resulting table. Notice how the last column of the second row accumulates excess width.


Writing a quick plugin to strip Amazon associate links out of emails and feed to not brake the terms ofservice. Worked it all out apart from the iframe.  A typical iframe associate link looks like this   <iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=GB&source=ac&ref=qf_sp_asin_til&ad_type=product_link&tracking_id=keepchickens-21&marketplace=amazon&region=GB&placement=1473689309&asins=1473689309&linkId=2ee7072c3050c40cded9c2ecdb317332&show_border=true&link_opens_in_new_window=true&price_color=333333&title_color=0066c0&bg_color=ffffff"> </iframe>    This regexp   /(<iframe )(.*)(amazon.adsystem.com).*/   picks up everything except the closing iframe tag I have tried variations of   /(<iframe )(.*)(amazon.adsystem.com).*(</iframe>)/   But can't get it to work. Any ideas?

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


I think it's a bug. But I can't seem to find any information about it. The mouse pointer hides itself, but it is still possible to use it.  Whenever I start watching a video in VLC, or start playing KSP through Steam my mouse pointer disappears. But it's not returned upon exiting the application. I have not tried with other games in Steam. The mouse pointer does not disappear when watching videos online through YouTube at first, but it properly hides itself after a few seconds.  The bug came about after I updated to 13.10, it was not present with the same setup in 13.04. I've tried removing ~/.compiz and restarting the kernel module psmouse.  Going to tty1 and back to the desktop reveals the pointer, though this fix is bothering me.  How do I fix this problem?

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


Prove the identity $\sum_{k=0}^n \binom{n}{k}=2^n.$ using combinatorial proof.

Please help me  to evaluate combinatorially the following sum: $$\sum_{k=0}^n \binom{n}{k}$$   Thank you.


I am in the process of learning Java and PostgreSQL. I am running Windows 10 with JRE 10, my IDE being Eclipse Oxygen 3a. I had written the following code:  import java.sql.Connection; import java.sql.DriverManager;  public class PostgreSQLJDBC {    public static void main(String args[]) {       Connection c = null;       try {          Class.forName("org.postgresql.Driver");          c = DriverManager             .getConnection("jdbc:postgresql://localhost:5432/testdb",             "postgres", "123");       } catch (Exception e) {          e.printStackTrace();          System.err.println(e.getClass().getName()+": "+e.getMessage());          System.exit(0);       }       System.out.println("Opened database successfully");    } }   It successfully compiles. However, it gives me the following error     java.lang.ClassNotFoundException: org.postgresql.Driver   In following the advice given in Stack Overflow, I have downloaded postgresql-42.2.2.jar and placed within C:\Program Files\Java\jre-10.0.1  I then edited my system variables and added "C:\Program Files\Java\jre-10.0.1" into it. However I still get the same error. Please help

I'm trying to get a postgres jdbc connection working in eclipse. It would be nice to use the Data Source Explorer, but for now I'm just trying to get a basic connection. What I have done so far is download the postgres JDBC connector. I then tried two different things. First, Preferences-> Data Management, I tried to add the postgres connector. Second, I added the jar to my project and tried to load the driver using Class.forName("org.postgresql.Driver"); but neither worked. Does anyone have any ideas?  Thanks,    Charlie


How to relate to the following element in a .css file by its id :   <div class="wrapper" id="wrapper-Fruits & Vegetables"> </div>   Thanks in advance.

When creating the id attributes for HTML elements, what rules are there for the value?


How can I make a command \headline{COURSE PROJECT} that would result in   \textbf{C\,O\,U\,R\,S\,E\;P\,R\,O\,J\,E\,C\,T}

Some typographers say it's a good habit to increase the letterspace when writing words in caps or small caps. So my question is, how to do it with pdflatex and/or xelatex? And while we're at it, which words would you alter this way? Acronyms like USA, NATO, IBM, GNU, etc.? How about words like PCs, UdSSR, FreeBSD or TV-Station?


I would like to have a combined list like this:        item      • sub item      • another sub item   ...      I have this:  \begin{easylist}[enumerate]     & item     \begin{easylist}[itemize]         & sub item         & another sub item     \end{easylist}     & ... \end{easylist}   And the output looks like this:        item      • sub item      • another sub item      • ...      Now, I know that I'm the one who is doing something wrong, but I can't find a way to achieve the look I want.

I need to have a list like this:   Do action 1 Choose between those two options:   either do A or do B  Do action 3   In LaTeX, I have  \begin{easylist}[enumerate] \ListProperties(Hang=true, Margin=4em) @ Do action 1 @ Choose between those two options:     \begin{easylist}[itemize]     \ListProperties(Hang=true, Margin=6em)     @ either do A     @ or do B     \end{easylist} \ListProperties(Margin=4em) @ Do action 3 \end{easylist}   The problem with this code is, after the bullet points, the subsequent list items (e.g., action 3) become bullet points. How do I resume the numbering?


In stackoverflow I had 603 reputation. However when I come to my computer after a little while I end up with 558 reputation. No one gave me a down vote. Is there a reason why?  Any help will be appreciated.

When I visit the reputation tab of my profile, I see a lot of stuff. I can make out some of it, but not all.   What do all the event types mean? Why do some events show an odd reputation gain or not show any reputation change at all? Why are some events sometimes highlighted in yellow? My reputation suddenly dropped, but I don't see anything. What happened? Why do some events disappear from my reputation history?


I'd like to take advantage of foreign currency rates. How can I get a bank account in foreign countries without visiting them?

I live in Argentina. Nowadays in my country it is almost impossible to buy foreign currencies as American dollars or Euros.   I was thinking if it is possible to open a foreign Bank Account to be able to save money in i.e. USD.  One of the things I could need is to make wire transfer.  I was seeing some Swiss banks that allow me to open an account, but the minimum is something like 5k CHF (a lot of money for me).  I'm also European citizen, however I'm looking for a way to open the account completely online.


How can I make reflecting floor like this in blender? And how do I make good looking glass like the one provided in the example too?  Edit: I wanna make a nice reflective floor like the one provided in the image. And I wanna know how to make glass like the glass cubes in the provided example.()

i have a problem with creating reflective puddles from noise texture.  So i have a large plane where i wanted to add reflective puddles made from noise texture, and make it look something like this  i didn't add normal texture from google because i know if you stretch texture on big plane it will be all blurry and ugly, and so instead i used noise texture, problem is, where its "dark areas" which are suppose to be puddles, they don't reflect at all, and i don't know how to change their reflection or how to control them in general! i wanted to add glass shader to noise texture but it doesn't have "base color" or anything like that where i could connect glass shader or any shader.  So my question how do i control them or how can i build nodes that way so i can change how they look ?  Here is how i built nodes for the plane. I'am using cycles render, blender Version 2.8


I want to install a new stable Linux kernel without removing the older one, as I see there is an option in Ubuntu to switch on whichever kernel I want to use.

Currently I'm running Linux-3.0 and I want to update it to Linux-3.3.1 the latest stable kernel release as mentioned at . Can I update to 3.3.1 in Ubuntu without any risk of crashes? I'm updating my kernel regularly as provided by the Update Manager..Currently I have Linux-3.0.0.17..Can I update?  NOTE:  The latest kernel version any user is supposed to use in Ubuntu is updated automatically via the Update Manager, so no action is normally required by user regarding kernel upgrades. What the question author is referring to is mainline kernel, see:


Refer to the diagram and find x in degrees.  My method is to let AB=1, and express AD and AE in terms of AB using sine formula. Then find DE using cosine formula. After that use cosine formula to find cos x. Finally x=20 degrees. However this method relies on the calculator. Is there any PURELY geometric method to solve this problem, such as adding a line which is parallel to line AB, so that it can be PROVEN that x is 20 degrees, without the use of a calculator?

I've been solving this for days but I still I couldn't solve this. Can I know how to solve $x$ ?


My grandfather, Ernst Oscar Link, was in the German military during WW1.  He emigrated to the US in 1924 or 1925. He died in 1943. I am looking for his military records where he served what his title was I’m not sure where to start.

Where can I find information on German soldiers from World War I and World War II?   I am curious to find out about my ancestors' role in the wars, i.e. what rank they had, where they where fighting, with whom and anything else.


I did some tracking in Adobe AE and then ran a script to import it into Blender. I set a background image in the N menu, but I can only see it in the viewport, I can't see it when I render. Any help would be appreciated. Blender 2.79b, cycles render.

First time I've used cycles rendering engine.  I'm using a movie clip as the background in short animation. Selected RBGA under Property Tab, and Transparent under Film Tab.  It looks good and individual frames in OpenGL active viewport render, and looks fine.  When I try to get it to spit out PNG files of the finished animation the objects render out fine, except no movie clip background as Blender Render engine did when using Paper Sky setting.  Operator error, or am I trying to do something Cycles won't do?  Haven't found an answer in my searches so far.  Can anyone point me in the right direction please.   Addition:  I think I found my problem after a couple more hours of research.  Post should read "operator ignorance" instead of operator error.  Too tired to try the solution tonight, everything looks better in the morning. Thanks anyway.  Sorry, I just saw your posts.  Really tired.  Much appreciation.


In mathematical logic, implication has the following truth table    where $\phi$ and $ \psi$ are statements, and $1$ represents true and $0$ false.   From this table, an implication such as   "$1>2 \ $ implies $ $ vegetables are usually healthy"   is true. (Unless, I'm mistaken.)    But surely, this implication is nonsense, so how can we even begin to talk about its veracity?  Doesn't mathematical logic bother with the "meaning" behind an implication?  What is the rationale behind the above truth table?   Thanks

I am studying entailment in classical first-order logic.  The Truth Table we have been presented with for the statement $(p \Rightarrow q)\;$ (a.k.a. '$p$ implies $q$') is: $$\begin{array}{|c|c|c|} \hline p&q&p\Rightarrow q\\ \hline T&T&T\\ T&F&F\\ F&T&T\\ F&F&T\\\hline \end{array}$$  I 'get' lines 1, 2, and 3, but I do not understand line 4.      Why is the statement $(p \Rightarrow q)$ True if both p and q are False?  We have also been told that $(p \Rightarrow q)$ is logically equivalent to $(~p || q)$ (that is $\lnot p \lor q$).  Stemming from my lack of understanding of line 4 of the Truth Table, I do not understand why this equivalence is accurate.       Administrative note. You may experience being directed here even though your question was actually about line 3 of the truth table instead. In that case, see the companion question  And even if your original worry was about line 4, it might be useful to skim the other question anyway; many of the answers to either question attempt to explain both lines.


I recently started having compilation problems after updating my TeXstudio to the newest version (3.0.1) using Windows 10. Whenever I try to compile any tex files, I encounter the following error:  I can't write on file `document.pdf'. \end{document}  As an example, I created a new file from a template using the article class: \documentclass[]{article}  %opening \title{Test} \author{Marcelo}  \begin{document}  \maketitle  \begin{abstract}  \end{abstract}  \section{}  \end{document}  I have found similar questions on StackExchange, and tried some of the suggestions such as:  Make sure that Adobe Reader is closed and delete the pdf file generated Compile from the command prompt using "pdflatex document.tex" Make sure I have writing permissions - this should not be a problem since I am writing to my desktop  But I am still getting the same error:  This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.10) (preloaded format=pdflatex 2020.10.17)  27 OCT 2020 11:22 entering extended mode **./document.tex (document.tex LaTeX2e <2020-10-01> patch level 1 L3 programming layer <2020-10-05> xparse <2020-03-03> (C:\Users\Marcelo\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls Document Class: article 2020/04/10 v1.4m Standard LaTeX document class (C:\Users\Marcelo\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo File: size10.clo 2020/04/10 v1.4m Standard LaTeX file (size option) ) \c@part=\count175 \c@section=\count176 \c@subsection=\count177 \c@subsubsection=\count178 \c@paragraph=\count179 \c@subparagraph=\count180 \c@figure=\count181 \c@table=\count182 \abovecaptionskip=\skip47 \belowcaptionskip=\skip48 \bibindent=\dimen138 ) (C:\Users\Marcelo\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend-p dftex.def File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX) \l__kernel_color_stack_int=\count183 \l__pdf_internal_box=\box47 ) (document.aux) \openout1 = `document.aux'. LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 7. LaTeX Font Info:    ... okay on input line 7. LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 7. LaTeX Font Info:    ... okay on input line 7. LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 7. LaTeX Font Info:    ... okay on input line 7. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 7. LaTeX Font Info: ... okay on input line 7. LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 7. LaTeX Font Info:    ... okay on input line 7. LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 7. LaTeX Font Info:    ... okay on input line 7. LaTeX Font Info: External font cmex10' loaded for size (Font)              <12> on input line 9. LaTeX Font Info:    External font cmex10' loaded for size (Font)              <8> on input line 9. LaTeX Font Info: External font `cmex10' loaded for size (Font)              <6> on input line 9. ! I can't write on file `document.pdf'. Please type another file name for output ! Emergency stop.  ...shipout:D \box_use:N \l_shipout_box l.17 \end{document} *** (job aborted, file error in nonstop mode) Here is how much of TeX's memory you used:  410 strings out of 480236  7293 string characters out of 2879607  268785 words of memory out of 3000000  17041 multiletter control sequences out of 15000+200000  539335 words of font info for 43 fonts, out of 3000000 for 9000  1141 hyphenation exceptions out of 8191 41i,6n,47p,132b,189s stack positions out of 5000i,500n,10000p,200000b,50000s !  ==> Fatal error occurred, no output PDF file produced!  It would be great if anyone had suggestions on how to solve this problem besides reinstalling TeXstudio, which I have already tried. Thank you!! Related questions:

I can no more compile any of my tex files, they all generate an error "can't write on file *.pdf". I suspect a Windows update (it occurred just after that) but I am not sure and I cannot find any reason for that... Even the simple "hello world" does not work and generates the same error: \documentclass{article} \begin{document} hello \end{document}  I am using Windows 10 and Texmaker. I know that Adobe can lead to this error but the PDF is neither open, nor created on my computer. So, the file is not open, I have reinstalled both Miktex & Texmaker, I am not using Dropbox & co, I tested with other editors leading to the same result, searched on google for hours, restarted my computer many times, I have enough space on my computer. But I am now lacking solutions... Does anyone have a suggestion ?


I have node version 4.2.6 installed in my machine. I have successfully installed npm as well but when I use npm -v it gives the following error  ERROR: npm is known not to run on Node.js v4.2.6 Node.js 4 is supported but the specific version you're running has a bug known to break npm. Please update to at least ${rel.min} to use this version of npm. You can find the latest release of Node.js at https://nodejs.org/

I just wanted to install npm via terminal and now I am just stuck with some dependencies.   It wants me to install a few dependencies, for example:  libssl1.0-dev nodejs-dev node-gyp   Even if I try to install these first, it tells me I need the predecessor before.  Last instance of dependency is libssl-dev and this seems already installed.  Target is to install npm for making this  run on my system.  Thanks for you help.


I have a shapefile of a US. I need to make an individual shapefile for all the states in the US using a python in ArcGIS. How can I do it?

I would like to split a single shapefile into multiple shapefiles by using unique values for one attribute/field to select features for each value out into a new feature class.   I found ET Geowizard to do this but it's not free.   In  I found a tool named "SplitLayerByAttributes" but it does not work in ArcMap . (see comments below, this was an old version which has been updated.  The new version can be found at    )  Do you know of any tools or solution to split by attribute in the way described above?


In ,      [only before noun] connected with music; containing music      the musical director of the show      musical talent/ability/skill      musical styles/tastes      a musical production/entertainment      musical instruments      : the art of writing or playing music      to study music      a career in music      music lessons      the music business/industry   so, we got "music industry" but "musical production" & I heard people said "musical life"  Ok, The beautiful girl= the girl is beautiful  The musical life= the life is musical  My question is: why not "musical industry" or "music production" or "music life"?

I wonder if it is possible to say "musical school" instead of "music school" (with the same meaning 'a school of music'). Recently I have come across several sentences like that:  *The obvious genius of the child had been noticed by the family, and his mother took him to a musical school.   In general, I am a classical  Muscovite, who went to musical school in my childhood,  therefore I dream of buying a piano...*  Thanks.


I would like some help with this exercise.  Suppose that $f_1,\ f_2 \in V^*$ and that $\text{Ker} f_1 = \text{Ker} f_2$. Show that $f_1 = k f_2$ for some scalar $k$.  I expect your suggestions.  Thanks!

I would like only a hint to the following exercise:  Let $V$ be a vector space over the field $K$, and $T$, $S$ linear functionals on V such that $Tv=0\Rightarrow Sv=0$. Prove that there exists $r\in K$ such that $S=rT$.  I know how to prove this when $V$ is finite dimensional. I show that if there is no such constant $r$ then $n-2=\operatorname{dim}\textrm{ }(\ker\textrm{ }T\textrm{ }\cap \ker\textrm{ }S)=\operatorname{dim}\ker T=n-1$, a contradiction. But this approach doesn't seem to help at all for the stated problem.


I am stuck in trying to find a software which can render PSD files properly under Ubuntu. I have tried GIMP and Krita but they both have problems with that - especially the clipping mask functionality.  Is there a working solution for Ubuntu?

I am looking for PSD files viewer. Gimp is too fat for this job. I need something fast and light.


The spell  reads:     Forbiddance seals an area against all planar travel into or within it.   Can this area be mobile? Such as a the deck of a ship?  More specifically, my campaign is in Eberron, can this be used on an airship?

let's suppose that I cast a Silent image of a wall on an airship. Let's suppose that I don't move it with concentration.  Does the image of the wall move with the airship or it will progressively go far?


Here's some code for example  class A {   int i; }  void main() {   A a; }   Is there any possible (probably hackish) way to access a::i in main?  Edit: a::i is supposed to stay private.

Disclaimer Yes, I am fully aware that what I am asking about is totally stupid and that anyone who would wish to try such a thing in production code should be fired and/or shot.  I'm mainly looking to see if can be done. Now that that's out of the way, is there any way to access private class members in C++ from outside the class?  For example, is there any way to do this with pointer offsets? (Naive and otherwise non-production-ready techniques welcome) Update As noted in the comments, I asked this question because I wanted to write a blog post on over-encapsulation (and how it affects TDD).  I wanted to see if there was a way to say "using private variables isn't a 100% reliable way to enforce encapsulation, even in C++."  At the end, I decided to focus more on how to solve the problem rather than why it's a problem, so I didn't feature some of the stuff brought up here as prominently as I had planned, but I still left a link. At any rate, if anyone's interested in how it came out, here it is:   (I suggest reading it before you decide that I'm crazy).


Version: 2018 running 10.14.4.  I have the new Macbook Pro with the touchbar and I actually don't mind it. However, Siri always has an icon on the far right, no matter what app I'm in. And because it's right next to the volume buttons, I accidentally press it often.  Problem is, I've already disabled it via System Preferences. So now when I accidentally press it, I get this which is somehow even more annoying than Siri just activating normally:    How can I get rid of the Siri button in the touch bar? Is it even possible?

I have answered 'No' to Siri initial prompt, but I can still see it in my process list. I've tried to kill it, but it loads again immediately. How can I unload and remove Siri from my Mac?


In the song "In the Army Now," there is this sentence:     Your finger is on the trigger but it don't seem right   Shouldn't "don't" be replaced with "doesn't"?

Which one of the statements below is correct?   He don't have knowledge about others. He doesn't have knowledge about others.


Let's consider the space $V = k^n$ for $k = \mathbb{F}_p$ where $p$ is a prime number. How many ways are there to choose the basis of this space?

If I have an n-dimensional vector space over a field with q elements, how can I find the number of bases of this vector space?


I was looking to keep the date/time as is when using field calculator to keep the format as I'm not able to maintain the time in the new field "da". This is what I get when trying to do so. I tried searching for solutions, but to no avail so far.  Update based on comments:  I'm using field calculator to solve this. I'm calculating into a date field from string field. Data source is a shapefile

I have a time field in my shapefile that is formatted as HH:mm:ss.s It is a text field, and I want to convert it to a date so I can calculate time elapsed across rows (if there's a better way to do this let me know). Basically, each row is a point on a route, and I want to use the time field to calculate the amount of time elapsed between the first and last points on the route.   I tried using the convert time field tool, setting the input format as HH:mm:ss.s, and the output type as DATE. The output field however only shows values of 01/01/2001 for some rows and  for other rows.   time is the input field and time_c is the output field  I'm not sure what's going wrong here, here is what shows up in the geoprocessing results window:    I tried adding the date data to the field as well to make the format yyyy-MM-dd HH:mm:ss.s, but it still didn't work:


I have a list of packages on my system, that were installed and removed again, but not purged, i.e. there are still a lot of conffiles etc. laying around.  The output of dpkg --get-selections | grep deinstall lists about 85 different packages which I don't need and want to be purged entirely.  So my short question, which I decided to finally ask after experimenting around has lead to , is:  How do I completely purge previously installed packages that are already removed?  Reinstalling and then purging is not an option, of course.

I was doing a package removal with apt-get remove but then realized I should have done a --purge along with it to remove the configuration files.  Can I remove the packages configuration files easily or do I need to reinstall the package and then remove with a --purge?


Human hair is losing its color over time, that's a known fact.  I would like to know why, meaning what biological processes are involved in this?  Also, is it part of the DNA somehow, i.e. the exact rate of losing the color is known when one is born?

The question is pretty simple: what is happening molecularly when hair turns grey or white? I would imagine that it is due to the lack of a particular compound. I'm also interested in why some people's onset of grey hair happens much later than others.


This is a common interview question and I know there are already loads of questions about it, but none that really help me, so here goes.  The question is as follows:  Given a digit string, return all possible letter combinations that the number could represent if entered on a standard phone number pad. Input: "23" Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"].  I've written a basic, iterative (non-recursive) solution in python which seems to work: letters = {     '1': '',     '2': 'abc',     '3': 'def',     '4': 'ghi',     '5': 'jkl',     '6': 'mno',     '7': 'pqrs',     '8': 'tuv',     '9': 'wxyz',     '0': '' }  def combinations(number_string):      output = []      for index, number in enumerate(number_string):                  temp_list = []         for letter in letters[number]:             if not letters:                 continue              if index == 0:                 output.append(letter)             else:                 for combo in output:                     temp_list.append(combo + letter)          if temp_list:              output = temp_list                 return output  print(combinations('234'))  But what is the time complexity and why? I understand that I am iterating through each element in the input string, which gives us at least O(n) right away. Then for each of those elements, I am iterating through up to 4 possible letter combinations, so I understand that gets us to O(4n). But for each of the letter combinations, I am then iterating over all the combinations already obtained (to modify each for the latest letter).  This is where I get lost.

Most people with a degree in CS will certainly know what . It helps us to measure how well an algorithm scales.   But I'm curious, how do you calculate or approximate the complexity of your algorithms?


OK, so, here's the problem. I have three columns in MySQL table:  location_lat location_lng radius   I need to make a query that when user selects the point on map I get latitude,longitude values and to find all DB entries that contains this dot.  To illustrate it, I've made a mockup:    So, given the coordinates of the black marker I need to find only red circles and not the green ones.  Is it doable via MySQL?  I know how to make it in PHP, but that could be more resource intensive.

I've got a working PHP script that gets Longitude and Latitude values and then inputs them into a MySQL query. I'd like to make it solely MySQL. Here's my current PHP Code:  if ($distance != "Any" && $customer_zip != "") { //get the great circle distance      //get the origin zip code info     $zip_sql = "SELECT * FROM zip_code WHERE zip_code = '$customer_zip'";     $result = mysql_query($zip_sql);     $row = mysql_fetch_array($result);     $origin_lat = $row['lat'];     $origin_lon = $row['lon'];      //get the range     $lat_range = $distance/69.172;     $lon_range = abs($distance/(cos($details[0]) * 69.172));     $min_lat = number_format($origin_lat - $lat_range, "4", ".", "");     $max_lat = number_format($origin_lat + $lat_range, "4", ".", "");     $min_lon = number_format($origin_lon - $lon_range, "4", ".", "");     $max_lon = number_format($origin_lon + $lon_range, "4", ".", "");     $sql .= "lat BETWEEN '$min_lat' AND '$max_lat' AND lon BETWEEN '$min_lon' AND '$max_lon' AND ";     }   Does anyone know how to make this entirely MySQL? I've browsed the Internet a bit but most of the literature on it is pretty confusing.


Random thought earlier.   I am basing my question on my memory of what seems to be normally used, but I am unsure of the actual correct grammar usage.  Which is correct, and if one is wrong, what is the reason for that?

The Punjab is a rich state.   Is it correct to use the before Punjab?


In our project we have written unit test's for some methods, we are planning to write unit test's for methods which doesn't have  test's.  Is there a command or tool in Visual Studio to automatically find class or methods without unit test's ?

Is there a way to test code coverage within visual studio if I'm using MSTest? Or do I have to buy NCover?   Is the NCover Enterprise worth the money or are the old betas good enough if Microsoft doesn't provide built in tools to do code coverage?  EDIT: Description of VS Products and which ones include code coverage   TestDriven.NET () can be used if your VS version doesn't support it.


I've got a single page on my blog for the pdf publications embedded from sites like Issuu.com   Each of these publications is embedded using the iFrame.  These are slowly piling up and I will very soon end up with 20 iFrames embedded  into one single page.  I am quite worried about SEO in this case. Does putting several iFrames into one single page affect SEO ??

I thought frame and iframe were bad for SEO, but today I was doing a search for "numismatica" on Google.it.  The 3rd site is lemonete.com which is all made with frames. A competitor site (nummus.com) that has no frames ranks much lower when searching for the same word: "numismatica".  So can we use frames without taking an SEO hit now?  Any explanation (possibly simple) would be appreciated also about the fact the 2nd site ranks much lower. :)


I've been programming with Python for nearly 5 years and I thought I already learn everything when it wasn't. I have stumbled upon in a forum with this code (below) and I am about to lose my mind. This is kinda weird. def f(x=[], y=1):     x.append(y)     return x   i = f() print('i:', i)  j = f() print('j:', j)   i: [1] j: [1, 1]

Sometimes it seems natural to have a default parameter which is an empty list. Yet . If for example, I have a function: def my_func(working_list=[]):     working_list.append("a")     print(working_list)  The first time it is called the default will work, but calls after that will update the existing list (with one "a" each call) and print the updated version. So, what is the pythonic way to get the behavior I desire (a fresh list on each call)?


Here, in the update part a new duplicate is getting created instead of updating the existing record. Please help! def addBooks(title, quantity):     c.execute('SELECT * FROM books')     for i, j in c.fetchall():         if i == title:             c.execute('UPDATE books SET quantity = ? WHERE title = ?', (j+quantity, title))             conn.commit()         else:             c.execute('INSERT INTO books VALUES (?, ?)', (title, quantity))             conn.commit()

Is there some clever way to do this in SQLite that I have not thought of? Basically I want to update three out of four columns if the record exists, If it does not exists I want to INSERT the record with the default (NUL) value for the fourth column. The ID is a primary key so there will only ever be one record to UPSERT. (I am trying to avoid the overhead of SELECT in order to determine if I need to UPDATE or INSERT obviously) Suggestions?  I cannot confirm that Syntax on the SQLite site for TABLE CREATE. I have not built a demo to test it, but it doesn't seem to be supported. If it was, I have three columns so it would actually look like: CREATE TABLE table1(      id INTEGER PRIMARY KEY ON CONFLICT REPLACE,      Blob1 BLOB ON CONFLICT REPLACE,      Blob2 BLOB ON CONFLICT REPLACE,      Blob3 BLOB  );  but the first two blobs will not cause a conflict, only the ID would So I assume Blob1 and Blob2 would not be replaced (as desired)  UPDATEs in SQLite when binding data are a complete transaction, meaning Each sent row to be updated requires:  Prepare/Bind/Step/Finalize statements unlike the INSERT which allows the use of the reset function The life of a statement object goes something like this:  Create the object using sqlite3_prepare_v2() Bind values to host parameters using sqlite3_bind_ interfaces. Run the SQL by calling sqlite3_step() Reset the statement using sqlite3_reset() then go back to step 2 and repeat. Destroy the statement object using sqlite3_finalize().  UPDATE I am guessing is slow compared to INSERT, but how does it compare to SELECT using the Primary key? Perhaps I should use the select to read the 4th column (Blob3) and then use REPLACE to write a new record blending the original 4th Column with the new data for the first 3 columns?


Please help me to prove this inequality $$\frac{1}{2} + \frac{1}{3} + \dots + \frac{1}{n} < \ln n < 1 + \frac{1}{2} + \frac{1}{3} + \dots + \frac{1}{n - 1}$$

I need to bound the k-th partial sum or the Harmonic series. i.e.   $$ln(k+1)<\sum_{m=1}^{k}\frac{1}{m}<1+ln(k)$$  I'm triying to integrate in $[m,m+1]$ in the relation $\frac{1}{m+1}<\frac{1}{x}<\frac{1}{m}$ for all $x\in[m,m+1]$ and I get: $$\int_{m}^{m+1}\frac{1}{m+1}dx<ln(m+1)-ln(m)<\int_{m}^{m+1}\frac{1}{m}dx$$ then $$\sum_{m=1}^{k}\frac{1}{m+1}<ln(k)<\sum_{m=1}^{k}\frac{1}{m}$$ but I don know how conclude or continue... please help.


I was shown the following calculation. There is clearly something wrong but I can not see the mistake. Could someone point out the wrong step or something?  $$ \int \frac{1}{x} dx = \int 1 \cdot \frac{1}{x} dx$$  Let's say $ u = \frac{1}{x}$ and $ dv = 1\ dx$. So $ du = -\frac{1}{x^2} \ dx$ and $ v = x$. Putting that into per partes formula: $$ \int \frac{1}{x} dx = \int 1 \cdot \frac{1}{x} dx= x \cdot \frac{1}{x} - \int x \cdot (-\frac{1}{x^2})dx = 1 + \int \frac{1}{x} dx$$ So we can substract $\int \frac{1}{x}dx$ from both sides which then gives us $$0 = 1$$

$$\int \frac{\mathrm{d}x}{x}$$ If I integrate this by parts ($\displaystyle u=\frac{1}{x}, \mathrm{d}u = -\frac{\mathrm{d}x}{x^2}, \mathrm{d}v= \mathrm{d}x, v = x$), then why does this happen?  $$\int \frac{1}{x} \: \mathrm{d}x = u v - \int v \:\mathrm{d}u = \frac{x}{x} - \int x\left(\frac{-1}{x^2}\right) \:\mathrm{d}x=1+\int \frac{1}{x}\:\mathrm{d}x$$  So $\displaystyle\int \frac{1}{x}\:\mathrm{d}x = 1 + \int \frac{1}{x} \:\mathrm{d}x$ and cancel out both sides of $\displaystyle\int \frac{1}{x} \:\mathrm{d}x$ and I get $0=1$. How can I find the error in the process because right now I cant see it.


When I run sudo apt-get update I get these errors:  E: Type 'See' is not known on line 2 in source list /etc/apt/sources.list E: Type 'dep' is not known on line 1 in source list /etc/apt/sources.list.d/upubuntu-com-tor64-saucy.list E: The list of sources could not be read.

Every once in a while I see users having issues to update due to errors like this:  E:Type 'ain' is not known on line 1 in source list /etc/apt/sources.list.d/some-ppa.list'   with varying types/line numbers/source list files (often after removing a PPA).  How can such an error be fixed?


I'm in the midst of creating my own small photography business. I've done photoshoots for friends and family, free of charge because I was getting practice. I don't want to overcharge but I don't want to miss out on money. I have backdrops and a few props. How much should I charge for a photoshoot?

I am fairly new to photography and have done a few high-school senior sessions of friends here and there. I have been getting more and more requests to photograph families, seniors, etc. and am starting to spend quite a bit of my spare time doing this. I consider myself an amateur, but am thinking about charging money.  I am wondering what a typical price for a sitting fee is for a senior session or child/family session, and how many images people would expect from these types of sessions.


I have to proof if true or wrong: There are infinite prime numbers of the form 4k+3.  I want to proof: Yes, this is true. My ideas:  1) Assume - as a contradiction - that there are only infinite prime numbers. Let $p_k$ be the highest of them of the form 4k+3. Let $p_1 = 3, p_2 = 5, ...$ the sequence of prime numbers.  So define $N := 4*(3*5*...*p_k) - 1$. Then we have  a) N divided by 4 has remainder 3 and 3 divided by 4 has remainder 3, because: $ N \equiv -1 \equiv 3 (mod 4)$.  b) Then I'd like to show that N does have a prime-factor of the form 4k+3 which is higher than $p_k$  << here I don't know how to show this.  I'd appreciate any comments on whether my ideas are correct or not.

This is the proof from the book:     Theorem. There are infinitely many primes of the form $4n+3$.    Lemma. If $a$ and $b$ are integers, both of the form $4n + 1$, then the product $ab$ is also in this form.  Proof of Theorem: Let assume that there are only a finite number of primes of the form $4n + 3$, say  $$p_0, p_1, p_2, \ldots, p_r.$$ Let $$Q = 4p_1p_2p_3\cdots p_r + 3.$$ Then there is at least one prime in the factorization of $Q$ of the form $4n + 3$. Otherwise, all of these primes would be of the form $4n + 1$, and by the Lemma above, this would imply that $Q$ would also be of this form, which is a contradiction. However, none of the prime $p_0, p_1,\ldots, p_n$ divides $Q$. The prime $3$ does not divide $Q$, for if $3|Q$  then $$3|(Q-3) = 4p_1p_2p_3\cdots p_r,$$ which is a contradiction. Likewise, none of the primes $p_j$ can divides $Q$, because $p_j | Q$ implies $p_j | ( Q - 4p_1p_2\cdots p_r ) = 3$, which is absurd. Hence, there are infinitely many primes of the form $4n +3$.   END  From "however, none of the prime ...." to the end, I totally lost!    My questions:   Is the author assuming $Q$ is prime or is not? Why none of the primes $p_0, p_1,\ldots, p_r$ divide $Q$? Based on what argument?     Can anyone share me a better proof?     Thanks.


If $a,b>0$ and $a+b=1\;,$ Then minumum value of $\displaystyle \left(a+\frac{1}{a}\right)^2+\left(b+\frac{1}{b}\right)^2$ is   $\bf{My\; Try::}$ Let $a=\sin^2 \theta$ and $b=\cos^2 \theta\;,$ Then We have to minimize   $$\displaystyle f(\theta) = (\sin^2 \theta+\csc^2 \theta)^2+(\cos^2 \theta+\sec ^2 \theta) = \sin^4 \theta+\csc^4 \theta+\cos^4 \theta+\sec^4 \theta+4$$  So $$f(\theta) = 1-2\sin^2 \theta\cos^2 \theta+\frac{1}{\sin^2 \theta \cos^2 \theta}+4$$  So $$f(\theta) = 1-\frac{\sin^2 2\theta}{2}+\frac{4}{\sin^2 \theta}+4$$  Now Put $\sin^2 2\theta = t\;, t\in \left(0,1\right]$  So we get $$f(t)=5-\frac{t}{2}+\frac{4}{t}\;,$$ So we get $\displaystyle f'(t) = -\frac{1}{2}-\frac{4}{t^2}<0\;\forall t \in (0,1]$  So $$f(1)_{\min} = 5-\frac{1}{2}+4=9-\frac{1}{2}=\frac{17}{2}$$  But answer given as $$\frac{25}{2}$$  plz help me, Where I am wrong, Thanks

If $a, b$ are positive real numbers and $a+b = 1$, prove that :  $$\left(a+\frac{1}{a}\right)^2 + \left(b+\frac{1}{b}\right)^2 \geq \frac{25}{2}$$  I can see that the value $\frac{25}2$ is attained for $a=b=\frac12$. But I do not know how to show that this is the minimal possible value.  Thank you.


I took out my harddrive (WD 2TB) out of an external casing and put it into an other via usb reading sata docking station which changed something so Windows asks me to format the disk. I got no real experience and knowledge about recovering data from disks unfortunatly and I am not getting any useful information from other persons trys to recover data on other forums and sites.  I got a big truecrypt container on the harddrive which nearly takes all space execpt a little portion where i had a truecrypt.exe laying so i could mount my disk on other systems too. My goal is to restore the disks file system or atleast get this truecrypt container from the disk.  The disk is shown to be "RAW" in the windows Disk Management Tool. This is as narrow as i can describe my problem as my knowdlege allows me to.  I'll post some data about the disk which may be of help for those who understand the information below.

What steps can I take to try to recover lost or inaccessible data from any storage device?  Answers:   This applies to any computer storage device, e.g. internal/external hard drives, USB sticks, flash memory. The most important thing is to STOP using it, any type of I/O can ruin your chances of a recovery.     We have separate questions covering common problems with USB flash drives in greater detail:


I want to find(?) derive(?) obtain(?) closed formula for  $$\sum_{k=0}^{n+1} \sum_{r=0}^{k-1}\binom{ n+1}{k}\binom{n}{r}$$  Actually for some integers I found this as $2^{2n}$ ....   My first trial is using double sum technique in   and then via mathematica by some $n$,   \begin{align} \sum_{k=0}^{n+1} \sum_{r=0}^{k-1}  \begin{pmatrix} n+1 \\ k \end{pmatrix}\begin{pmatrix} n  \\ r \end{pmatrix} =  \sum_{r=0}^{n+1} \sum_{k=r+1}^{n+1} \begin{pmatrix} n+1 \\ k \end{pmatrix} \begin{pmatrix} n\\ r \end{pmatrix} \end{align} But still does not have explicit form...

In the proof of some proposition, it appears that the following statement should hold:     $$ \sum_{r=1}^{n+1} \sum_{\beta=0}^{r-1} C^{n+1}_r C^n_{\beta} =2^{2n}. $$   However, using the definition of combinatorials does not help:  $$ \sum_{r=1}^{n+1} \sum_{\beta=0}^{r-1} C^{n+1}_r C^n_{\beta} =  \sum_{r=1}^{n+1} \sum_{\beta=0}^{r-1} \frac{(n+1)!}{(n+1-r)!r!} \frac{n!}{(n-\beta)! \beta!}.$$  I suspect that this has something to do with the binomial expansion. Any ideas?


I need to find if a column exists using an IF condition.  If it does not exist add the column.  If it does exist then update the column.  How do I check if the column exists in a particular table in a database in SQL Server 2008?

I need to add a specific column if it does not exist. I have something like the following, but it always returns false:  IF EXISTS(SELECT *           FROM   INFORMATION_SCHEMA.COLUMNS           WHERE  TABLE_NAME = 'myTableName'                  AND COLUMN_NAME = 'myColumnName')    How can I check if a column exists in a table of the SQL Server database?


In Google Chrome, can I mute sound in a single tab? Suppose a tab has a youtube video that I would like to silence. However, I still want to hear the audio from another tab.

Is there a way (in Chrome/Firefox) to individually mute audio per page/tab? This would be great when listening to music while browsing sites that play audio without asking for user prompt first.


Find all pairs of prime numbers $(p,q)$ such that $$p^3-q^5=(p+q)^2$$

Find all pairs of prime nummbers $p,q$ such that $p^3 - q^5 = (p+q)^2$.  It's obvious that $p>q$ and $q=2$ doesn't work, then both $p,q$ are odd. Assuming $p = q + 2k$ we conclude, by the equation, that $k|q^3 - q - 4$ because $\gcd(k,q)=1$ (else $p$ is not prime) and $k=1$ has no solution.  I also tried to use some modules, but I couldn't.


The sign-and-trade is relatively common when stars leave a team that they've been with for a long time. I don't understand why this practice exists. Take Lebron going to the Heat, for example. He was a free agent. He could have gone anywhere, but he chose to re-sign with the Cavs so that they could trade him to the Heat and get draft picks in return. Seemingly, this weakens the team that Lebron had just signed with, as they had weaker drafts in his first (two?) seasons there than they likely would have if he had signed with them outright.  Why does this practice exist?

Congratulations to Steve Nash on his move to Lakers !  His contract with the Suns has expired so I don't understand why he moved in a sign-and-trade deal.    Why resign and move in trade? Why didn't the Lakers sign Nash without any trade?


if [[ ${fin[2]} -eq OK && ${fin[7]} -eq NA ]]         then                 echo "
" >> /tmp/mailt.txt         elif [[ ${fin[2]} -eq OK && ${fin[7]} -lt 0 ]]         then                 echo "
" >> /tmp/mailt.txt         elif [[ ${fin[2]} -ne OK && ${fin[7]} -eq NA && $currDate2 -gt $expectedFinishTimes ]]         then                 echo "
" >> /tmp/mailt.txt         elif [[ ${fin[2]} -ne OK && ${fin[7]} -eq NA && $currDate2 -lt $expectedFinishTimes ]]         then                 echo "
" >> /tmp/mailt.txt         fi   In the above, only first condition is evaluating to be true even when ${fin[2]} is not equal to OK. What's wrong?

I have the following if block in my bash script:  if [ ${PACKAGENAME} -eq kakadu-v6_4-00902C ]; then   echo "successfully entered if block!!" fi   The script execution is not entering my if block even though $PACKAGENAME is equal to kakadu-v6_4-00902C. What am I doing wrong?


I'm also user 128932 but I was cut off from all my points I accumulated because of an error with my gmail accounts. And now I have to wait until I accumulate more points. I can't comment in Philosophy because you need 50 points , I have a lot more than that as user 128932. Can you people verify my addresses for both accounts or something to verify I'm also user 128932?  (Also the warning about some of my questions not being well received seems uncalled for because every question I've asked for the last month or two has received your little star indicating a good question. If some specific user's don't like what I write that is from their own judgement and not my fault.)

I accidentally posted a question without being logged in. Is there a way to associate that question with my account?   For more information, visit "" in the .   a.k.a. How can you link a registered account to a cookie-based account? a.k.a. How do I merge an unregistered account with a registered account a.k.a. Merging users a.k.a. How do I associate anonymous questions I’ve asked with my registered account? a.k.a. Is there a way to claim an unregistered user? (in case anyone searches with those terms)


I'm new to QGIS so bear with me. I need to show something on a map using the "graduated" classification. The thing is the program doesn't give me this option. I believe it's been reading the column as text instead of numbers, but how can I change that?

I can't seem to make graduated symbols work. When I try to click on my column it doesn't show any options.  I think these is due to those columns being formatted as text and not number. Any ideas how can i work this out?


Prove that $$\lim_{x→0} \frac{\sin^{-1}x-\tan^{-1}x}{x^3}=\frac{1}{2}$$   $$ \lim_{x→0} \frac{\sin^{-1}x-\tan^{-1}x}{x^3}=\lim_{x→0} \frac{\tan^{-1}\frac{x}{\sqrt{1-x^2}}-\tan^{-1}x}{x^3} \\ =\lim_{x→0} \frac{\tan^{-1}\bigg[\frac{\frac{x}{\sqrt{1-x^2}}-x}{1+\frac{x^2}{\sqrt{1-x^2}}}\bigg]}{x^3} =\lim_{x→0} \frac{\tan^{-1}\bigg[\frac{x(1-\sqrt{1-x^2})}{\sqrt{1-x^2}+x^2}\bigg]}{x^3}\\ \text{since, }\frac{x^2}{\sqrt{1-x^2}}>-1 $$  I think I am getting stuck here, do not really see how to proceed further with the steps.  Note: I don't want to use L'Hospital's rule as I 'd like to solve it without using the derivatives of $\sin^{-1}x$ and $\tan^{-1}x$.

$$\lim_{x\rightarrow 0} \frac{\arctan(x)-\arcsin(x)}{x^3}$$  I am new in area of limits could you help me about that


I have been given a list of  positive integer numbers upto 10^6 and total number of item in the given list will be 10** 4 at most. I want to store these values in a particular order as explained below. I want to iterate through the list and want to place the index value of item in the inner list corresponding to that item. Example Given List : [3,0,1,1] output : [[1],[2,3],[],[0]] #expected output basically output list should contains lists with index corresponding to item value in given list which should contain index value I have comeup with this solution. sequence = [[]] * 4 given = [3,0,1,1] index = 0 for num in given:     sequence[num].append(index)     index+=1 print(sequence)  but the output I am getting is [[0, 1, 2, 3], [0, 1, 2, 3], [0, 1, 2, 3], [0, 1, 2, 3]] and cannot figure out why.

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


Sentence:  He helped hone President Trump's message of law and order and America first during the 2016 election, work that he continued as an adviser to the president after the election. Source：  It seems two verbs in a sentence. Is it correct?

I wrote:      I will help you to acquire Russian.    A native English speaker corrected me saying that 'to' is unnecessary here. Is it correct to say      "I will help you acquire Russian"


I'm sure this must be something I have just overlooked or misunderstood, but I cannot for figure out why I can't solve camera motion in this situation.  I have 8 tracked points, with seemingly very smooth motion, yet when attempting to solve camera motion it refuses giving the "At least 8 common tracks are needed on both key-frames for reconstruction". My keyframes are at frames 0 and 67, the same as was set for solving. Yet I still get nothing each time.    is a short clip of the situation for additional context.   You can see that the 8 points track from 0 to 67 then stop, yet that range for solving does not work.   Thanks in advance for the help.

The attached animated gif shows some frames of a video with a mesh box placed at each tracking marker used to successfully track (solution error <.4) an 800 frame chunk of video.   The point is to illustrate just how poorly the camera tracker calculated: when the box is at a marker placed at the top of a faraway building on the left, it is actually visually much larger than when it is at the tracking marker closest to where the real camera was. I went to great lengths to be sure that the camera's sensor size and focal length are correct, and manually placed and followed all markers to be sure they were accurately tracking.   There is not a lot of parallax motion over the 800 frames, but there should have been enough to at least know that the point closest to the camera moved more than the point furthest away. Sometimes it seems to work, sometimes it doesn't. Does anybody know how to improve this?


My players are wondering if they can create permanent ways between their demiplanes (created by the  spell) and between the planes the campaign takes place in. They, over time, have made many demiplanes, each one having a specific purpose, and they want to bring them together into a single demiplane, or at least connect them for easy travel between them.  If there are no methods to do that, is there a way to key the cubic gate to new planes/demiplanes, as well as a specific location, or key an  to a specific location on the planes? One thing I think could be an option is using teleportation circles as permanent ‘landing pads’. I'll accept homebrew suggestions that have successfully been tested at your table.

I'm looking for a way to create a permanent portal between two locations (on the same or on different planes, though the latter is more important), without using homebrew (UA is fine) or relying on DM adjudication.  The portal should be similar to the one created by the  spell, as in "one can simply walk through" - unlike permanent teleportation circles, which make it easy to travel to a specific place, but require you to cast the spell yourself first. I don't care if it looks like a portal from the Portal series, or if it's a magic tree. If it gets you from A to B, you can walk through, and don't have to cast a teleportation spell yourself first, it's fine.  Is there any spell, item, ability or other feature that allows regular player characters the creation of such a portal?  If there's nothing in 5e allowing this (maybe it's not possible for mortals since the Spellplague?), references to earlier versions are welcome.


Please correct my reasoning:  There is a 5 out of 36 lottery (5 unique numbers out of pool of 36 numbers ranging [1,2,…,36]).  Strategy 1: just play any random combination. Like 12345, or better 11111. Chances of such combination to appear are so low that I need to live thousands of years for it to appear. Maybe in my lifetime, but probably not.  Strategy 2: I know that 198492 (5-number) combinations out of all 376992 (that is 53% !) have some property (say arithmetic mean in range x..y). So I would 100% hit into that group many times in my lifetime! It is better to try to hit something that appears often, rather than some rarely-appearing ghost?

Suppose the winning combination consists of $7$ digits, each digit randomly ranging from $0$ to $9$. So the probability of $1111111$, $3141592$ and $8174249$ are the same. But $1111111$ seems (to me) far less likely to be the lucky number than $8174249$. Is my intuition simply wrong or is it correct in some sense?


I have created a semicircle using a line renderer, I need to add a collider to this so whenever enemy objects hit this they get destroyed, how do I do this. Current Code  using System.Collections; using System.Collections.Generic; using UnityEngine;  public class CreateCircle : MonoBehaviour {     // Start is called before the first frame update      public float radius;     void Start()      {         int segments =60;         int pointCount = segments+1;          Vector3[] points = new Vector3[pointCount];          LineRenderer line = gameObject.GetComponent<LineRenderer>();         line.positionCount = pointCount; //line.SetVertexCount(pointCount);          for(int i=0;i<pointCount;i++)         {             float Deg = (i*60 / segments);             float Rad = Mathf.Deg2Rad *Deg;              points[i] = new Vector3 ( Mathf.Sin(Rad) * radius,Mathf.Cos(Rad)*radius,0);             // Debug.Log(" Point: "+i+" Deg: "+Deg+" Rad: "+Rad+" Vector 3:"+points[i]);         }         line.SetPositions(points);          Mesh lineMesh = new Mesh();         line.BakeMesh(lineMesh,Camera.main,true);          MeshCollider lineCollider = line.gameObject.AddComponent<MeshCollider>();      }      void OnColliderEnter(Collider col){         Destroy(col.gameObject);     }  } ```

I am currently building a game where I need to generate some wires (as Bézier curves) using LineRenderer. After changing the width of each line  lineRenderer.SetWidth (0.15f, 0.15f);   I am attaching an EdgeCollider2D to the same game object (specifying the same points used in generating the Bézier curve). This seems to work. However, I would like to be able to know if the Mouse Pointer is at any time over the EdgeCollider2D (something similar to the popular Fruit Ninja game). I'm using Raycast as follows:  void CastRay() {     Ray ray = Camera.main.ScreenPointToRay (Input.mousePosition);     RaycastHit2D hit = Physics2D.Raycast (ray.origin, ray.direction, Mathf.Infinity);      if (hit) {         Debug.Log (hit.collider.gameObject.name);     } }   I'm calling the CastRay method inside the Update method. Because EdgeCollider2D does not have width (as expected), the log message is never produced.  Do I need to use a different type of Collider? Do I need to call CastRay somewhere else?


I am working with data in an ArcGIS 10.1 geodatabase.  I wanted to complete the simple task of taking a ten-digit ID field that is currently in String/Text format and create an identical field in Long/Numeric format.   However, Esri's resource pages on tables () do not discuss how to achieve this.  Also, the following GIS/SE thread does not help me either:  and the post mentioned in the comment there refers only to QGIS.    In the meantime, I created a new table with the extra field, joined it to the original shapefile and will reimport this shapefile into the gdb, adjusting the new field format as needed.    Is there an easier way to complete this task?

I have a feature class with a string field that I want to update the length from 10 to 25.    Is there a way or a tool to update this property without having to create a new field and using field calculator to move over the records from old to new field?    This script below does what I want, the only thing is it pushes the updated field to the end of the table (not keeping the original field order).    Another option that seemed promissing is to use the Feature Class to Feature Class tool (access this tool by right clicking a layer in ArcCatolog and selecting Export>to   Geodatabase single option) .  It does create a new layer, however you can update field names and property information.  It also appears that you can change the field order using the "Move Input Field Up/Down" arrows, but they seem to not work.  There has to be a solution to just edit field properties without having to create a new field.


The touchpad on my laptop stopped working after an automatic kernel update to 4.15.0-72-generic.  My only work-around at the moment is to start up with the  previously installed kernel (4.15.0-70).  Where should I report this bug to have any hope of it being fixed, and which information do I need to include?

I found a problem with an application on Ubuntu.   Questions :   How do I best report the issue?  What sort of information should I provide?


I have in a directory some *.csv files. I want to insert inside each file, its name.  The following code do it, but I also need to remove, delete the pattern .csv  for file in *.csv; do echo "$file,"$"$(cat -- "$file")" > "$file"; done   for example  if the name is London.csv and inside I have 10, 20, now I get  London.csv, 10, 20   I need to reduce it to,  London, 10, 20   With your help, I get it with this update  for file in *.csv; do echo ${file%.csv},"$"$(cat -- "$file")" > "$file"; done

Given a string file path such as /foo/fizzbuzz.bar, how would I use bash to extract just the fizzbuzz portion of said string?


If I just write: gnome-terminal  Will open a new terminal (and keep it open). But when I run with a command: gnome-terminal -- ls -a  This opens a new terminal, runs the ls, but then closes the terminal. Whats a clean way of keeping it open ?

I have the following shortcut which opens an SSH instance. How can I modify it so that when SSH closes, the terminal stays open?  [Desktop Entry] Terminal=true Type=Application Name[en_US]=ssh Icon=/logo_sprite.png Exec=gnome-terminal --geometry=... --window-with-profile=... --title=... -e 'bash -c "ssh -t -i ~/dsa.key cle@12.210.9.17 sudo -s"'


Some of you might get the “Server Offline” error after you install WAMP on your windows 7 system. This happens if IIS server was installed in the system prior to the installation of WAMP thus creating the clash of the port address where both the servers are trying to access

Okay so a continuation from , where you experts intro'd me to , which can basically execute PHP within a Windows XP environment.  So now I've got it installed, but the tray icon forever shows YELLOW, and when I visit any PHP page in my browser, it just shows me the PHP source!  Also, when I visit "" in IE7 it gives me a 404 Not Found, FF3 just shows a blank page.    BTW I've tried "Restart All Services" and restarting my machine, but it still won't work.  Any ideas? Any of you had this problem and solved it? Please help me here, I'm desperate to execute PHP client-side and I'm just reverting to testing on-server for now!


MacBook Pro 2012 non retina model 13.3 inch.  I am trying to turn on MacBook with a replacement battery 11.1 V, 6000 mAh, 66.6 W I installed myself.  The original battery was 10.95 V, 63.5 W.  The MacBook turns on & replacement battery charges when the charger is connected, but when charger is disconnected the MacBook turns off. That is I cannot turn on MacBook without the power adapter with the new replacement battery.  Original battery info    New Replacement battery info

I have a MacBook Air, 2009, with a recently replaced Apple battery in December 2012. Recently, when power cord comes off, the computer shuts down. Also, it usually will not restart unless power cord is attached.


When the page starts the users is asked to selected a category. Once a category is selected with Ajax some checkboxes are loaded.  I need to do something when these checkboxes are ticked however the problem is i cannot detect change on them since i just added them.  *** options variable contains the input checkbox  $("#subcat").append(options)   I then try to check weither the it is checked or not with the code  below  <script>     $(":checkbox").change(function(){         if($(this).attr("checked")) {             alert("abc");         } else {             alert("CBA");         }     }); </script>   If i add a input check box directly onto the html file then it detects change however when i load checkboxes with ajax it does not.

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I think it should be 1. Because 1 byte is enough to hold this BOOL. And if I comment "BOOL b:1", it becomes a empty struct, and its size is 1 now.  #include <iostream> #include <string> using namespace std;  enum BOOL { FALSE=0, TRUE=1 }; struct A {   BOOL b:1; };  int main() {   std::cout << sizeof(A)  << std::endl; //output 4. }

Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?


Let $ X $ be an integral, separated noetherian scheme, and $ x \in X. $  In Proposition 6.11 of Hartshorne's Algebraic Geometry(Page 141), the author states that if $ D $ is a Weil divisor on $ X, $ then $ D $ induces a Weil divisor $ D_{x} $ on $ \text{Spec}(\mathcal{O}_{X,x}). $  I am not seeing why this follows.

Apologies if the title is garbage. I couldn't think up anything more pertinent, as it's really just a notational question.  In Hartshorne, p.141, Proposition 6.11, it is shown that Weil divisors are Cartier (under some assumptions).  My question is what on earth does it mean for $\mbox{Spec } \mathcal{O}_x$ to be a local scheme; moreover, how does one induce a Weil divisor $D_x$ on it?  In my head this is supposed to be restricting $D$ to a given point; the construction then gives a local equation for $D$ at $x$.  However, I am struggling to see how the scheme $\mbox{Spec } \mathcal{O}_x$ corresponds at all to $x$: it's not even a point unless the stalk is a field.  Thanks for any help offered.


Folks can you explain me in which condition I should go with Interface and at which condition should I prefer Abstract class ... ? keep in mind I am not asking difference between Interface and Abstract class.

This may be a generic OOP question. I wanted to do a generic comparison between an interface and an abstract class on the basis of their usage.   When would one want to use an interface and when would one want to use an abstract class?


Find all pairs of integers $(n,k)$  that satisfy $(n+1)^k - 1 = n!$  It is easy to see that (1,1) and (2,1) are solutions by inspection,  but how do we prove that these are the only solutions? After sometime, I also saw that $(4,2)$ was also a solution, as it wasn't so obvious.  I was thinking that maybe $n! + 1$ cannot be a perfect power of a number? Though I also can't prove it. I also tried binomial theorem but still cant see anything.

How to find all positive integers $n$ such that $(n-1)!+1$ can be written as $n^k$ for some positive integer $k$?


I'm attempting to create a Neural Network to use as a rain model to generate representative precipitation levels for a given location.  The problem I'm facing is that the network always converges to the average amount of rain. For example, the trained network predicts that it will be constantly raining a small amount all the time, instead of predicting that at some times it will be raining and sometimes it won't.  Convergence on average through training: (green - actual, blue - predicted)   Is it reasonable to expect a neural network to be able to predict like this? If so, what can be done to allow the network to learn in this way?  (I'm using DL4J, one hidden layer with 5 nodes, squared loss function, month and hour as inputs (normalised))    MultiLayerConfiguration modelConfiguration = new NeuralNetConfiguration.Builder()     .seed(seed)     .iterations(1)     .optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT)     .learningRate(0.0001)     .updater(Updater.NESTEROVS)     .list()     .layer(0, new DenseLayer.Builder()         .nIn(4)         .nOut(5)         .weightInit(WeightInit.XAVIER)         .activation(Activation.LEAKYRELU)         .build())     .layer(1, new OutputLayer.Builder(LossFunctions.LossFunction.SQUARED_LOSS)         .weightInit(WeightInit.XAVIER)         .activation(Activation.IDENTITY)         .nIn(5)         .nOut(1)         .build())     .pretrain(false)     .backprop(true)     .build();

I'm training a neural network but the training loss doesn't decrease. How can I fix this?  I'm not asking about overfitting or regularization. I'm asking about how to solve the problem where my network's performance doesn't improve on the training set.    This question is intentionally general so that other questions about how to train a neural network can be closed as a duplicate of this one, with the attitude that "if you give a man a fish you feed him for a day, but if you teach a man to fish, you can feed him for the rest of his life." See this Meta thread for a discussion:   If your neural network does not generalize well, see: