I installed ubuntu server as VM in VirtualBox and then installed Docker in it to run some containers.  Installed Portainer in it (so it means the VM is connected to the internet).  Now I typed ifconfig to see my IP address and I saw this:  br-70e261a4f7c8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500     inet 172.18.0.1  netmask 255.255.0.0  broadcast 172.18.255.255     inet6 fe80::42:66ff:fe9b:a3f7  prefixlen 64  scopeid 0x20<link>     ether 02:42:66:9b:a3:f7  txqueuelen 0  (Ethernet)     RX packets 211  bytes 3306540 (3.3 MB)     RX errors 0  dropped 0  overruns 0  frame 0     TX packets 228  bytes 33889 (33.8 KB)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500     inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255     ether 02:42:41:c6:88:8c  txqueuelen 0  (Ethernet)     RX packets 0  bytes 0 (0.0 B)     RX errors 0  dropped 0  overruns 0  frame 0     TX packets 0  bytes 0 (0.0 B)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500     inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255     inet6 fe80::a00:27ff:feab:bbc0  prefixlen 64  scopeid 0x20<link>     ether 08:00:27:ab:bb:c0  txqueuelen 1000  (Ethernet)     RX packets 89848  bytes 118364599 (118.3 MB)     RX errors 0  dropped 0  overruns 0  frame 0     TX packets 39603  bytes 2588176 (2.5 MB)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536     inet 127.0.0.1  netmask 255.0.0.0     inet6 ::1  prefixlen 128  scopeid 0x10<host>     loop  txqueuelen 1000  (Local Loopback)     RX packets 836  bytes 3376136 (3.3 MB)     RX errors 0  dropped 0  overruns 0  frame 0     TX packets 836  bytes 3376136 (3.3 MB)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  vethfaa59c1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500     inet6 fe80::c4fd:4aff:fe13:a309  prefixlen 64  scopeid 0x20<link>     ether c6:fd:4a:13:a3:09  txqueuelen 0  (Ethernet)     RX packets 211  bytes 3309494 (3.3 MB)     RX errors 0  dropped 0  overruns 0  frame 0     TX packets 215  bytes 32719 (32.7 KB)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0   This is what I get when using traceroute 8.8.8.8:    The host OS is Windows 7.  This made me really confused.  I have to say I am really new to Linux, have been using Linux Unity for only around the last 6 months.   At first, I thought 10.0.2.15 is my IP address but I can’t SSH into the VM through PuTTY using it.  The only way I can SSH is through port forwarding in the VM and then using 127.0.0.1 through that port from PuTTY but the internet does not work through this process and as expected it will work only on the host os, not outside.  To open Portainer I have to enter https://serverip:port, but what is my server IP?  And why can’t I ssh into my VM?  P.S. If I use 10.0.2.15 in putty then it says connection refused and the other "inet's" give connection timed out. I even went as far as to install Openbox and Firefox to check Portainer and localhost:port worked flawlessly... but only inside the VM.   EDIT: This is what I want my server to do (if possible)   I open my computer, run my server VM, open PuTTY and SSH into VM from Windows host but internet connection should be there Take out my laptop running Windows and then SSH into the VM on my PC from PuTTY Open browser on my host OS and type https://serverip:port, where port is the port no. of Portainer in my VM server Take out my laptop and open browser and do step 3 to open Portainer Take my laptop and go 10 km away from home and do step 2 and 4   The last step will come later but right now none of them are working. Any suggestions?


Actually question which I found:     Find the sum of the series $1^1+2^2+3^3+ \cdots +n^n $    This question has been bothering me since a long time. Any help would be appreciated!


Why does the density matrix $\rho$ obey a wrong-signed Heisenberg equation of motion?

The  is defined as $$ \rho_\psi ~:=~ \frac{\lvert\psi(t)\rangle  \langle \psi(t)\vert}{ \langle \psi(t) |\psi(t)\rangle }$$ in the Schrödinger picture. $\rho_\psi$ is obviously a time dependent projector, and the equation of motion on these projectors become: $$   i\hbar\frac{d}{dt} \rho_\psi ~=~ [H,\rho_\psi]   \tag{S} $$ but my book also reports that the  on the operators/observables is:  $$   \mathrm{i}\hbar\frac{d}{dt} A ~=~ [A,H] .  \tag{H} $$ Why are the signs in eqs. (S) and (H) opposite?   Isn't $A$ an operator like  $ \rho_\psi$, although time independent? They belong to the same operator space, so I don't think I can apply duality, but I know that $A$ operate on the states to give us the expectation value through the relation  $$  \mathrm{Tr}( \rho_\psi A)$$ so it should be in the dual space of the observables.


How do I prove that then $f(x) = 1$ for some $x ∈ [0, 1]$?

We are asked the following:      let $f(x)$ be a continuous function on $[0, 1]$ such that   $$\int _ {0} ^ {1} \ f(y) dy = 1$$   prove that $f(x) = 1$ for some $x ∈ [0, 1]$   The question asks to take into account Rolle's Theorem and Mean Value Theorem.  I'm aware of the definitions, but I am really unsure how to answer this question and my tutors are not really responding till after easter.    Could someone please help? Why is there a "y" involved?  Thanks you


How do I position my instance empty for collections?

So today I am working on a huge warehouse scene so I need to be very efficient with my geometry and obviously instancing will be a huge help.  I want to place the empty that represents the collection neatly over the instanced object, but instead that empty wants to be in a totally different location which does not look very clean.  I have tried applying the location, setting it from the world origin, resetting the origin point for the base object and I can't figure it out.     What I want is in the second image. (keep in mind the second image is just an empty I placed over the lockers to give you a visual for what I am trying to achieve )   Seems like there should be a simple way to place this thing.


What does this name in my shell prompt mean?

When I opened the terminal today on my MacOS laptop I got a last logged on message and on my line where I can type it says JohnBatasiPhone:~ AlbertRenshaw$  I don't know anyone named "John Batas"... and none of my iPhone devices have that name. I am Albert Renshaw, but what does the JohnBatasiPhone mean? Does my computer have a security breach?  I literally know nothing about terminal so I had a hard time even wording the title to this question (If anyone wants to edit it to contain the proper words it would be much appreciated).  When I type HostName, the output is johnbatasiphone.att.net.


What is a good book to study linear algebra?

I'm looking for a book to learn Algebra. The programme is the following. The units marked with a $\star$ are the ones I'm most interested in (in the sense I know nothing about) and those with a $\circ$ are those which I'm mildly comfortable with. The ones that aren't marked shouldn't be of importance. Any important topic inside a unite will be boldfaced.  U1: Vector Algebra. Points in the $n$-dimensional space. Vectors. Scalar product. Norm. Lines and planes. Vectorial product.  $\circ$ U2: Vector Spaces. Definition. Subspaces. Linear independence. Linear combination. Generating systems. Basis. Dimesion. Sum and intersection of subspaces. Direct sum. Spaces with inner products.  $\circ$  U3: Matrices and determinants. Matrix Spaces. Sum and product of matrices. Linear ecuations. Gauss-Jordan elimination. Range. Roché Frobenius Theorem. Determinants. Properties. Determinant of a product. Determinants and inverses.  $\star$ U4: Linear transformations. Definition. Nucleus and image. Monomorphisms, epimorphisms and isomorphisms. Composition of linear transformations. Inverse linear tranforms.  U5: Complex numbers and polynomials. Complex numbers. Operations. Binomial and trigonometric form. De Möivre's Theorem.  Solving equations. Polynomials. Degree. Operations. Roots. Remainder theorem. Factorial decomposition. FTA. Lagrange interpolation.  $\star$ U6: Linear transformations and matrices. Matrix of a linear transformation. Matrix of the composition. Matrix of the inverse. Base changes.   $\star$ U7: Eigen values and eigen vectors Eigen values and eigen vectors. Characteristc polynomial. Aplications. Invariant subspaces. Diagonalization.   To let you know, I own a copy of Apostol's Calculus $\mathrm I $ which has some of those topics, precisely:   Linear Spaces Linear Transformations and Matrices.   I also have a copy of Apostol's second book of Calc $\mathrm II$which continues with   Determinants Eigenvalues and eigenvectors Eigenvalues of operators in Euclidean spaces.   I was reccommended Linear Algebra by Armando Rojo and have Linear Algebra by , which seems quite a good text.   What do you reccomend?


Find a number $0 \leq a < 73$ with $a≡9^{794}\mod 73$.  I know that $a$ and $73$ are relatively prime and $a^{72}≡1 \mod73$. But I couldn't use the theorem.  Can someone help me please?


I have a text in Polish language in which I want to filter out non-Polish letters, but the problem is that Polish specific letters disappear  # coding: utf-8 import re  _NOT_LETTERS = re.compile('[^a-ząćęłóńśżź]+')  text = u'dzień dobry i wszystkiego najlepszego życzę'  data = _NOT_LETTERS.sub(' ', text)  print data   and the result is    dzie dobry i wszystkiego najlepszego ycz    instead of expected  dzień dobry i wszystkiego najlepszego życzę   How can I fix this ? I receive variable text from a third-party library


How can I remove Ubuntu 20.04 and install windows 10?

Currently I am using the Ubuntu 20.04 operating system and I would like to erase it and install windows 10 but how?


Hy!  How can i update my 16.04.1 to 16.04.3 ?  I tried:  sudo apt update sudo apt upgrade sudo apt dist-upgrade   But   uname -a   said :  Linux lawyer 4.10.0-35-generic #39~16.04.1-Ubuntu SMP Wed Sep 13 09:02:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


Is there a module for tracking changes to a Drupal site's configuration?

I want to create a simple system for tracking changes to my Drupal configurations and knowing which modules are used by some configuration settings is crucial, but will be happy to use an existing one if it is good enough. Is there a module that implements this?


I want to use htmlspecialchars to english and hebrew words, but when I save a hebrew word, it save it as the code of the word (e.g. &#1513;&#1500;&#1493;&#1501; for "שלום"). Code:   $txt=htmlspecialchars($txt, ENT_QUOTES, 'UTF-8');   I tried to use htmlentities, but same result.   I thought maybe to make htmlspecialchars  by hand, i.e. change > to '&gt;' and "" to &#039; etc .   Does it safe to do it?   And how can I do it?(replace special chars to their code) I didn't find explanation how to make it  Edit- I solved it: need to add this code  header('Content-Type: text/html; charset=utf-8');   I declared the html header as utf8, but I didn't declare also the php as utf8.


Can someone explained, as detailed as possible, the differences between the following types?  List List<Object> List<?>   Let me make this more specific. When would I want to use  // 1  public void CanYouGiveMeAnAnswer(List l) { }  // 2 public void CanYouGiveMeAnAnswer(List<Object> l) { }  // 3 public void CanYouGiveMeAnAnswer(List<?> l) { }


I have a MacBook Pro 2018. Currently it has two 4GB LPDDR3 2133MHz memory cards. My son has just bought a new computer and already upgraded the memory and has given me his  Samsung 8GB 1Rx8 PCA-2666V-SA1-11 card which I think is DDR4. If I take one of the 4GB LPDDR3 cards out of my Laptop can I replace it with the new Samsung DDR4 card? First would it fit and second if it did would I gain anything?


Why does intitle:1 show questions whose titles don't have all my search terms?

This a follow up on . Why doesn't intitle:1 show questions which have my search terms in the title only. Filter out questions which do not have all the words in the title.  Example: intitle:1 cookie static (or intitle:1 +cookie +static)  Why is it displaying questions which do not have both words in the title? Is there a boolean format I am not aware of?


How can I pre-compress files with mod_deflate in Apache 2.x?

I am serving all content through apache with Content-Encoding: zip but that compresses on the fly.  A good amount of my content is static files on the disk.  I want to gzip the files beforehand rather than compressing them every time they are requested.  This is something that, I believe, mod_gzip did in Apache 1.x automatically, but just having the file with .gz next to it.  That's no longer the case with mod_deflate.


Can we find a wave function for a planet orbiting the sun?

I have only recently started to learn quantum mechanics and I have only gone so far as to solve the hydrogen atom using Schrödinger's equation and the corresponding Hamiltonian, but all this has me wondering if it is possible to find a wave function for a planet-sun or moon-planet system. I know that this would be amazingly(and needlessly) more complicated than the classical solution. So is this possible, have people done it, and can we learn more from this approach?


I found this example:   $('#addScnt').live('click', function () {     $('
<input type="text" id="p_scnt" size="20" name="p_scnt_' + i +'" value="" placeholder="Input Value" /> Remove
').appendTo(scntDiv);     i++;     return false; });  $('#remScnt').live('click', function () {     if (i > 2) {         $(this).parents('p').remove();         i--;     }     return false; });   , and when I'm trying to replicate the result and try the created  are not selected by jQuery   My Fiddle:   $(".addItem").on("click", function () {     var newInput = $('
<input type="text" class="item" placeholder="item"></input>remove
');     $(this).closest(".category").append(newInput); });  $(".removeItem").on("click", function () {     $(this).closest("p").remove(); });


How do we know that the conservation of energy is true?

As I have studied Mechanics and Thermodynamics, it appears that many of the concepts and ideas behind Physics depend on the Law of Conservation of Energy. The textbooks, however, don't explain where does this Law come from and why it is treated like absolute truth. Conservation of Energy is always defined in terms of itself, in other words, many textbooks justify C.E. by using C.E. or simply implying it is true. However, I am sure that there is a justification that I have yet to see. Noether's theorem appears to be a solution (However, I do not have any knowledge about it.) but Conservation of Energy was already a thing before her theorem. How did physicists come up with this idea and why did they accept it as general truth at some point?


Usually when I plot in , it always draws on the same figure. How do I make it draw in a new figure?   I know it is pretty elementary, but I'm not finding it using Google Search.


I'm trying to write a simple < in my text, but each time I write it, an upside-down ! is there. And for > I get an upside-down ? Can someone please help me?


I'm trying to add a node onto the beginning of a linked list (push function).  I'm getting 2 errors:  1) invalid conversion from 'Node int*' to 'int'  (points to test.Push(&test2); in main())  2) initializing argument 1 of 'int Linked_List::Push(ItemType) [with ItemType = int]' (points to function push)  I'm really not sure what the problem is. If I remove the & out of test.Push(&test2); in main() then I get a lot more errors, so I assume it's correct.  //.h #ifndef Linked_List_h #define Linked_List_h  template <typename ItemType> class Node {     public:         ItemType Data;         Node <ItemType> *next; };  template <typename ItemType> class Linked_List {         public:         Node <ItemType> *start;         Linked_List();         int Push(ItemType newitem); }; #endif   .  //.cpp #include "Linked_List.h"  template <typename ItemType> Linked_List <ItemType>::Linked_List(){     start = NULL; }  template <typename ItemType> int Linked_List <ItemType>::Push(const ItemType newitem){    //error     Node <ItemType> *nnode;  //create new node to store new item     nnode -> next = start -> next;  //new item now points previous first item of list     start -> next = nnode;   //'start' pointer now points to the new first item of list     return 1; }  int main(){     Linked_List <int> test;     Node <int> test2;     test2.Data = 4;     test.Push(&test2);  //error }


Do I need to get a device certified by the FCC if it uses the ESP32/8266?

I plan on making a device that the user can control with their phone via a WiFi connection to an ESP8266 or ESP32. If I end up selling this device, will I need to get it certified?  The ESP32/8266 has an FCC ID written on it. Does this count, or do I need an FCC ID for my device? I don't plan on selling more than 100 of them, so it would be too expensive for me to get it tested.   Does the answer to this question depend on whether I: Use an external antenna? Use a readily available ESP breakout board? Design the ESP directly into my board?


Can the name of a country be considered a plural noun, as a collective of e.g. its citizens?

Brazil have Neymar. Argentina have Messi. Portugal have Ronaldo. Germany have a team!   I read this on Facebook, and someone said the singular "has" is supposed to be there instead of the plural "have" in all cases within the quoted phrase.  I got myself thinking, though, whether the plural wouldn't be correct, making each country's name a collective of the people that are part of it, or perhaps a collective reference to the national team of each country in this specific case.   I've seen uses such as     the police are conducting an investigation   making the noun "police" a collective of all people within a police force, but I'm not sure these kinds of usage are a recurring mistake by native speakers or something of that nature.


Booting Ubuntu Failure : error: attempt to read or write outside of disk 'hd0'

I have installed Ubuntu 12.10 in a Western Digital external hard drive (320GB). This is a complete installation, not a live USB.  When I plug it in my HP desktop I go to the BIOS settings and boot off the hard drive, everything work perfectly as it should. Now this works on every single computer and laptop in my house (all HP), except for ONE. My HP ProBook 4530s.  When I select to boot of the USB I get the message:  error: attempt to read or write outside of disk 'hd0'   Now, I have removed the hard drive from my laptop and the external drive is the ONLY drive plugged in. Below is a screenshot of the message on the screen. After the message I navigate to ls / (as shown below):    After here I try to acces other folders under ls /, for example, I try to go to ls /boot to get to the grub folder. Then I get the same message as before: as shown below:    grub rescue> ls /boot  error: attempt to read or write outside of disk 'hd0' grub rescue> _   The only folders I can access without getting the message again are /home, /run and /usr.   So how do I:   Boot Ubuntu from GRUB2 (this screen) manually Set to automatically boot Ubuntu If possible an explanation for this problem   Thanks!


How to go upon proving $\frac{x+y}2 \ge \sqrt{xy}$?

I'm trying to prove this but am having some difficulty.   For any $x,y\in\mathbb R$ such that $x\ge 0$ and $y\ge 0$ we have $$\frac{x+y}2 \ge \sqrt{xy}.$$    So far what I have gotten to is $\frac{x+y}{2} \geq \frac{\sqrt{xy}}{2} $  After this point I don't know what to do. To get to this point:  $$y \geq 0 $$ $$\implies y \geq y$$ $$\implies xy \geq xy$$ $$\implies 2xy \geq xy$$ $$\implies x^{2} + 2xy + y^{2} \geq xy$$ $$\implies (x+y)^{2} \geq xy$$  Sqrt both sides to get:  $$\implies x+y \geq \sqrt{xy}$$ $$\implies\frac{x+y}{2} \geq \frac{\sqrt{xy}}{2}$$


What is the effect of pasteurization and ultra-pasteurization on proteins, enzymes, and nutrients found in milk and other dairy products?


I have been attempting to install LLVM-5 on my Ubuntu Xenial computer. There seem to be trouble installing just one python package.   sudo apt-get -f install   (Reading database ... 447083 files and directories currently installed.) Preparing to unpack .../python-lldb-5.0_1%3a5.0.1~svn324026-1~exp1_amd64.deb ... Unpacking python-lldb-5.0 (1:5.0.1~svn324026-1~exp1) ... dpkg: error processing archive /var/cache/apt/archives/python-lldb-5.0_1%3a5.0.1~svn324026-1~exp1_amd64.deb (--unpack):  trying to overwrite '/usr/lib/python2.7/dist-packages/lldb', which is also in package python-lldb-4.0 1:4.0-1ubuntu1~16.04.2 Errors were encountered while processing: /var/cache/apt/archives/python-lldb-5.0_1%3a5.0.1~svn324026-1~exp1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


Is it possible to lock the shutter and aperture dials on a Nikon D610?

I have a Nikon D610 and often setup the shutter and aperture for studio photos and then for some reason one of the wheels gets knocked and I end up taking a bunch of photos with the wrong exposure.  It's quite annoying as I go through the effort of making sure they're correctly exposed in order to save time later and find myself adjusting a lot of them anyway.


I'm trying to build a generic matrix based on a generic vector that I've already built.  I want to have a vector of vectors (each internal vector represents a row).  For some reason, this isn't working:  template <typename T> class matrix : vector<vector<T>>{...}   I'm getting this error:  error: 'class vector<T>' is not a valid type for a template non-type parameter   I tried looking into template templates, but couldn't really understand how to make them work.  Any help would be much appreciated.  Thanks!


Mathematical definition of EV on a RAW photo?

I'm trying to write a program that takes in a matrix full of 12-bit RAW sensor values (that range from [512-4096]) (512 is the BAYER sensor black level--> i.e. what pure black is defined as) and adjusts the EV of each pixel, excatly like the Adobe Camera Raw (ACR) "exposure" slider. I'm trying to figure out how it is done basically. I've looked up dozens of blogs that explain how EV is calculated and it seems to be:   seems to give the formula of: PixelAdjusted = Pixel * 2^EV  This just seems very wrong because an adjustment of 5 EV blows the picture wayyy out of proportion.. and I can't find any other resources online. Wikipedia has an excellent entry on  but it doesn't seem to have what I'm looking for either... any help on this?  Thanks!  Here is an example of what I mean:  RAW file in ACR with EV 0:   With EV 5:


How can I effectively determine when I should use "on" or "in" in this kind of sentence: "Perhaps you're not preparing a homework assignment or project, but are trying to revise for an exam. If so, you need to know exactly what is on your curriculum." I wonder if I use the "in" instead. then is it ungammarical?


Can Griphook plea against Gryffindor's magic to have it removed?

Griphook made a deal to acquire Gryffindor's sword from Harry but he eventually just took it from him while breaking into Gringotts. But, later when Neville pulled out Gryffindor's sword from the sorting hat (to kill Nagini), I believe it vanished from the vault of Griphook and didn't return.  While wizards don't agree with the goblins' way of treating wealth (goblins believe that a goblin-made object should be returned to the maker once the owner dies, instead of passing it down to generations), Griphook did have rights to the sword, via Harry (who was given the sword by Dumbledore through his [Dumbledore's] will).  Can Griphook plea in court to have Gryffindor's magic removed from the sword (whether it can be removed or not is another issue)?


How to resample in R without repeating permutations?

In R, if I set.seed(), and then use the sample function to randomize a list, can I guarantee I won't generate the same permutation?  ie...  set.seed(25) limit <- 3 myindex <- seq(0,limit) for (x in seq(1,factorial(limit))) {     permutations <- sample(myindex)     print(permutations) }   This produces  [1] 1 2 0 3 [1] 0 2 1 3 [1] 0 3 2 1 [1] 3 1 2 0 [1] 2 3 0 1 [1] 0 1 3 2   will all permutations printed be unique permutations?  Or is there some chance, based on the way this is implemented, that I could get some repeats?  I want to be able to do this without repeats, guaranteed.  How would I do that?  (I also want to avoid having to use a function like permn(), which has a very mechanistic method for generating all permutations---it doesn't look random.)  Also, sidenote---it looks like this problem is O((n!)!), if I'm not mistaken.


WiFi repeatedly asks for password (Ubuntu 12.10 fresh)

I'm sure the passphrase is correct 100% but Wifi keeps asking for authentication and never connects. What can I do? I've tried removing the networks, resetting the router, changing the password, rebooting Ubuntu, disabling IPv6.  Also, it worked until earlier today and then stopped. All my other devices log in fine.


A simple decision problem whose decidability is not known

I am preparing for a talk aimed at undergraduate math majors, and as part of it, I am considering discussing the concept of decidability.  I want to give an example of a problem that we do not currently know to be decidable or undecidable.  There are many such problems, but none seem to stand out as nice examples so far.  What is a simple-to-describe  whose decidability is open?


QGIS How to multiply (repeat n times) a point by field

I have a point layer in QGIS that has a field named "Amount" that stores an integer value for every point in the layer.   I want to create N points in the exact place of the feature that has N as value in the amount "field". I mean, if a point has in the amount field 16, I need to create 15 more points in that exact lat long (1+15 so that there are 16 in total) of that point.   After this process, the sum of "Amount" values in the starting layer should be equal to the sum of points in the new layer.  I need it to create a heatmap with the new layer. What is the easyest way of achiving this?  Regards


trigger quotepotential on Quote_Line_Item__c (after insert) {     list<batch__c> b=[select batch_value__c                        from batch__c                        order by batch_value__c DESC LIMIT 1];     if(!b.isempty()){         list<Quote_Line_Item__c> quotelineitem=new list<Quote_Line_Item__c>();         for(Quote_Line_Item__c quoteline:trigger.new){             quoteline.max_batch__c=b.batch_value__c;             quotelineitem.add(quoteline);         }     } }   Help me to find out get rid of this error


Is NetworkManager sending HTTP requests to googleusercontent.com?

I am using Ubuntu 17.10 on my desktop PC, I've been monitoring network traffic with Etherape. I noticed HTTP requests from my PC(casa hostname) to googleusercontent.com (104.198.143.177). So I used lsof and ss to 'identify' process behind these requests.    Using lsof -i:   NetworkMa  778            root   20u  IPv4 546772      0t0  TCP casa:53671->177.143.198.104.bc.googleusercontent.com:http (SYN_SENT) NetworkMa  778            root   20u  IPv4 546772      0t0  TCP casa:53671->177.143.198.104.bc.googleusercontent.com:http (ESTABLISHED)   Using ss -rep dst 104.198.143.177:    tcp    SYN-SENT   0      1      casa%enp4s0:53671    177.143.198.104.bc.googleusercontent.com:http  users:(("NetworkManager",pid=778,fd=20)) timer:(on,964ms,0) ino:546772 sk:6df <-> tcp    ESTAB      0      87     casa%enp4s0:53671    177.143.198.104.bc.googleusercontent.com:http  users:(("NetworkManager",pid=778,fd=20)) timer:(on,300ms,0) ino:546772 sk:6df <->   It seems NetworkManager (pid 778) is sending requests to googleusercontent, and it happens every 5 minutes exactly.   I have to say, no applications were launched at the moment, no background process, no network activities,no online account and it was a 'Ubuntu fresh install'. So why NM would sent requests to googleusercontent?


I can search for  on Stackoverflow, but searching for  doesn't give any results.  Likewise for other tags:


Can you clarify How to use the word "technically" that has the meaning of "strictly speaking"?

I heard a lot of native English speakers use the word "technically" that has the meaning of "strictly speaking".  Search on internet, "technically" means "according to the facts or exact meaning of something"   So what does "according to the facts or exact meaning of something" mean? can you clarify it?


It seems that KNN is a discriminative learning algorithm but I can't seem to find any online sources confirming this.  Is KNN a discriminative learning algorithm?


If $|f|+|g|$ is constant then each of $f, g$ is constant

Let $f,g: U \rightarrow \mathbb{C}$ be holomorphic on the open and connected subset $U$. If $|f| + |g|$ is constant on $U$ show that $f, g$ are constant on $U$.  What can we say about finite or countable number of holomorphic functions?


How do you italicize something with underscores on Stackoverflow?

How do you italicize something with an underscore in it on Stackoverflow et al? If I try underscores around a word with an underscore, it comes out literally, for example  _blah_blah_ (not italicized)  blah (italicized)  blah_blah (not italicized)  blah (italicized)  Trying with the text tool doesn't work either. It puts a single star on either side of the highlighted word (my third example), which doesn't highlight the word.  So if you can italicize words with underscores, how do you do it?


Why does writing IP addresses this alternate way work, and is there a practical use case for it?

Recently I saw an incorrectly typed telnet command, and I saw that "regular" numbers were interpreted to IP addresses. I tried this myself in Windows and the same behavior is shown there, so obviously this is an acceptable way of typing IP addresses. I'm just wondering if someone can explain how this works, and if there are any real world applications for it (i.e. when would this way be better/simpler?).  I seem to see a pattern here but I still can't quite figure out why you would ever type addresses this way:  >ping 255 Pinging 0.0.0.255 with 32 bytes of data: PING: transmit failed. General failure.  >ping 256 Pinging 0.0.1.0 with 32 bytes of data: PING: transmit failed. General failure.  >ping 257 Pinging 0.0.1.1 with 32 bytes of data: PING: transmit failed. General failure.  >ping 16581375 Pinging 0.253.2.255 with 32 bytes of data:  >ping 1658137511 Pinging 98.213.43.167 with 32 bytes of data: Reply from 98.213.43.167: bytes=32 time=170ms TTL=47


Raspbian, debian: Howto make find $SOURCE return all directories under $SOURCE without itself

I use rsync to copy directories including files, with --remove-source-files I let rsync delete source files. Unfortunately it doesn't delete directories so I would like to delete all empty directories under SOURCE1 and SOURCE2. The find -exec rmdir command does this but unfortunately it also deletes the SOURCE directories itself  Copy.sh  SOURCE1="/mnt/download/transmission/complete/" SOURCE2="/mnt/download/sabnzbd/completed/"  sudo rsync --remove-source-files --progress --ignore-existing -vr  /mnt/download/transmission/complete/ /mnt/dune/DuneHDD_1234 sudo rsync --remove-source-files --progress --ignore-existing -vr /mnt/download/sabnzbd/completed/ /mnt/dune/DuneHDD_1234 find $SOURCE1 -not -name "complete" -type d -empty -prune -exec rmdir --ignore-fail-on-non-empty -p \{\} \; find $SOURCE2 -not -name "completed" -type d -empty -prune -exec rmdir --ignore-fail-on-non-empty -p \{\} \;   I also tried the following code  * find $SOURCE1 -mindepth 2 -type d -empty -prune -exec rmdir --ignore-fail-on-non-empty -p \{\} \; find $SOURCE2 -mindepth 2 -type d -empty -prune -exec rmdir --ignore-fail-on-non-empty -p \{\} \;   And without  * find $SOURCE1 -type d -empty -prune -exec rmdir --ignore-fail-on-non-empty -p \{\} \; find $SOURCE2 -type d -empty -prune -exec rmdir --ignore-fail-on-non-empty -p \{\} \;   I could add a mkdir test and change SOURCE1 to "/mnt/download/transmission/complete/test" and this way it always deletes the directory that I just created but I would like to do it the proper way  Example: I created 6 directories:  test10/  test10/test11/  test10/test11/test12/  test10/test11/test12/test  test1/  test1/test2/  test1/test2/test3/  test1/test2/test3/test  After running copy.sh I end up with perfectly copyed directories and files (test1/test2/test3/test and test10/test11/test12/test) on destination and deleted directories and files on source INCLUDING source ($SOURCE1 and $SOURCE2) itself.  Is there a way to tell find to exclude the source directory itself? In other words: Everything UNDER the folowing directories shoud be deleted but not the directories themselves:  SOURCE1="/mnt/download/transmission/complete/" SOURCE2="/mnt/download/sabnzbd/completed/"


$$\sum_{k=1}^n {(k^3)} = \left(\sum_{k=1}^n {k}\right)^2 $$   How could I approach this problem to make a combinatorial proof?


I upgraded 14.04 to 14.10. I installed my apps(lamp, nodejs, filezilla, phpstorm, git etc.). I have some input problems in some apps.  In Filezilla,   I can't use tab and delete keys Some UI problems, in filezilla tabs   In Gedit,   After 2-3 minute I can't write anymore. (Old keys writing sometimes) (No keyboard problem) (I think GTK or RAM problem)


Vote count inconsistent in profile and achievements versus question itself

The vote count in the  itself tells me it has 2 upvotes and 0 downvotes.      But the "achievements" drop-down pane shows +8, which would typically indicate 2 upvotes and 1 downvote.      Indeed, the reputation section of my profile says 2 upvotes and 1 downvote.       I remember that prior to posting this question, I had 1990 reputation. So it looks like the downvote hasn't been counted in my reputation.  But I remember that it was counted at one point, because my reputation went from 1995 to 1993.  I was doing several edits to this question, so it's possible that the downvoter changed his/her mind and removed it or upvoted.  Does this have something to do with caching or something? I wouldn't guess that, since I'm used to votes appearing in all three places immediately.   Feel free to tag this with  if it's appropriate.


apt-get upgrade gives "403 forbidden" error

I'm running Ubuntu 13.04 64b.  sudo apt-get update works fine, but when I run sudo apt-get upgrade I get these errors:      Err http://archive.ubuntu.com/ubuntu/ raring-updates/main python3.3-minimal amd64 3.3.1-1ubuntu5.2       403  Forbidden     Err http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu/ raring/main gimp amd64 2.8.6-0raring1~ppa       403  Forbidden     Err http://archive.ubuntu.com/ubuntu/ raring-security/main python3.3-minimal amd64 3.3.1-1ubuntu5.2       403  Forbidden     Err http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu/ raring/main gimp-help-en all 1:2.8-0raring16~ppa       403  Forbidden     Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python3.3/python3.3-minimal_3.3.1-1ubuntu5.2_amd64.deb  403  Forbidden     Failed to fetch http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu/pool/main/g/gimp/gimp_2.8.6-0raring1~ppa_amd64.deb  403  Forbidden     Failed to fetch http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu/pool/main/g/gimp-help/gimp-help-en_2.8-0raring16~ppa_all.deb  403  Forbidden     E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   Running sudo apt-get upgrade --fix-missing installs some updates, but the above errors still persist when I run apt-get upgrade again.  The software update app shows the error:  and selecting continue shows:  (sorry for the links, I don't have enough rep to post images)  I am behind a proxy, but apt-get update and web browsing work without issues. I also do not believe a server being down is causing this, as the problem has been there over a month.  Any ideas on how to fix this?


R: Missing levels of categorical variable in summary of linear model

In my formula I have several terms with the categorical variable color and color's interaction with other variables. Color can be either white or red. When looking at the summary of my model, color is replaced by colorwhite with no mention of colorred. Can someone explain the mechanics behind R only showing one level of my categorical variable in the summary?   example:  >summary(lm(foo~bar+color+color:bar)) coefficients bar colorwhite colorwhite:bar


Math.log() inaccuracy - How to deal with it?

I know that for getting a 10 based logarithm I have to use Math.log() divided by the constant of the natural logarithm of 10.   var e1000 = Math.log(1000) / Math.LN10;  // Result: 2.9999999999999996 instead of  //   expected 3. console.log(e1000);   // Result:  999.999999999999 instead of //   expected 1000. console.log(Math.pow(10, e1000));   BUT: The result is just an approximation. If I use the calculated value in further calculation the inaccuracy becomes worse.  Am I doing something wrong? Is there are more elegant way around it then just using Math.ceil()?


Are there MD5 collisions for inputs of different length?

There are many examples of MD5 collisions (some of them can be found here ). But as far as I know two inputs should have the same length to have the same MD5 (or same hash in general). Is it correct? Is there any proof of that?  Or otherwise examples of inputs of different lengths with the same MD5?


When I create a screenshot, the menus do not appear

I tried to capture the screen of my desktop in Ubuntu but when I try to do it in these two ways the drop down menus do not appear in the capture only the windows appear and the desktop menus do not capture them.  The first photo I took as an example of someone else I can not capture the screen this way      Why is this happening to me?


Step-by-step guide for installing a `.cls` file on Windows 8 with TeXnicCenter

I'm trying to install a .cls file on a Windows 8 machine, using the editor TeXnicCenter and the distribution MikTex 2.9. I have been directed to other threads, but find them incomprehensible.  This is not a duplicate. None of the threads I have found have answered my question.  I installed the out-of-the-box version of TeXnicCenter from CTAN. I have downloaded the exam.cls class file which I would like to use. But I have no idea how to install it.  Every other thread I could find uses language I do not understand, e.g. local file trees, etc. Moreover, the instructions say "click start, ...". While Windows 8 does not have a start button.   I need a step-by-step guide on how to get this class file installed and working. I don't even know where the files are kept. I really am a newbie when it comes to doing anything other than typesetting. Please be kind and patient. Karma will reward you!


What should I do, when my question can't get a acceptable answer?

I asked a  5 days ago. Now I know that there are no solutions for what I was searching for.   So there can't be a correct answer, so I never can mark any answer as the correct one. What should I do now? Let the question be unanswered or should I write something?   I won't delete the question, because it's a positive upvoted question, so other users are might also interest in a solution or want know that there is no solution.


How to end php session after 5 mins on inactivity in databse

I want to end php session , if there is a inactivity of 5mins . The inactivity is that if i dont find any values in the database then the session would end after 5 mins or else there is no problem


Two people are playing a game, one round after another. Let the probability of person A winning be p, and the probability of person B winning be q, wherein 0<p<1, p+q=1. There is no draw, and person A will gain 1 point when they win one round, person B will gain 1 point when they win one round, neither will lose points. The game will stop when one of the two has two more points than the other player. What's the average number of rounds before the game stops? The answer I have is $2/(p^2+q^2)$, I thought that I should try to make it into a probability distribution since that's the topic I'm currently on, but I'm not sure where to start... Thank you!


I am trying to to override a binding in a child injector that was already configured in a base injector.  like that :   public class PersistenceModule extends Abstract{      @Override     protected void configure() {         bind(IProductPersistenceHelper.class).to(ProductPersistenceHelper.class);     } }   then :   Injector injector = Guice.createInjector(new PersistenceModule()); injector.createChildInjector(new AbstractModule(){         @Override         protected void configure() {             bind(IProductPersistenceHelper.class).to(MockProductPersistenceHelper.class);         }  })   Guice is complaining that it has already a binding for that. Are there any patterns or best practices for that problem ?


Expected primary-expression before ')' token, in template function

There is a wrapper for a tuple, it describes the function of access to the elements of the tuple. This wrapper is used in the template function of a class that performs the search for a specified type. Here is the code template function:  template <   Calculating::CalculateTypes calculateType,   class SourceDataType = typename calculating_list_type::template strategy_type_selector<calculateType>::source_data_type > auto calculate(const SourceDataType & sourceData)   -> decltype(typename calculating_list_type::template strategy_type_selector<calculateType>::result_type()) {   auto& strategy = _calculates.lookup<calculateType>(); //error in this place...    strategy.setSourceData(sourceData);   strategy.calculate();    return strategy.getResult(); }   In this context, _calculates is a member of the class, which we call the function, the type of data: calculating_list_type  Here's the code to access the wrapper function tuple:  template<CalculateTypes calculateType> inline auto lookup()   -> decltype(std::get<Private::IndexOfList<calculateType, StrategyTypes...>::value>(_calculatingTuple)) {    return std::get<Private::IndexOfList<calculateType, StrategyTypes...>::value>(_calculatingTuple); }   What is most interesting is that a template function access function works perfectly for example:  std::cout << es.getCalculateList().lookup<Calculating::CalculateTypes::MAIN_VOLUME>().getName() << std::endl;// works great...   What did I do wrong?


ID a story in which a plant-like species attempts to develop space travel to evade a recurring catastrophe

It was a novel and the non-human nature of the protagonist and their species is revealed only gradually.  They're some kind of animate and mobile plant species that reproduces by budding.  They're 'trapped' on their planet and a handful are frantically attempting to develop space travel before a recurring catastrophe destroys their civilisation.  The catastrophe was probably an asteroid field or meteor swarm that their planet passed through at regular intervals, a main character was an astronomer who realised that the planet moved deeper into the debris with each cycle and that the next cycle or two would become too severe for their species to survive.  Update: I couldn't say how old the book is but probably written before 1990, it could be as old as golden age scifi but maybe it felt a bit like a 1960s era novel.  I read it over a decade ago, possibly in the '80s. There are no humans in the story, the story is entirely devoted to the plant-like species who are the dominant race on their world.  They do eventually escape, or some of them do at any rate.  I don't recall the end but I don't think they come to Earth.


I've always been taught that the character "w" in English was a consonant, except in very specific cases. However, on a recent trip to Wales, I learned that in Welsh it was considered a vowel. And then it struck me:  Is W really a consonant?  Whenever we (or, at least I) pronounce the character, I pronounce it as oo (as the Welsh do), such as in whenever (oo-ehn-eh-vehr). Does the w just signify a movement in pronunciation to or from oo and therefore act like a vowel, or is it something about the definition of a consonant?


What is the status of the revoke-flag feature request?

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


How to open properties bar, I accidentally closed it?

As you can see I accidentally closed my properties bar on the right hand side and I can't figure out how to open it again. Please help!    I mean the part I have boxed in red in this one I can't get that one reopened in my current project.


In PowerPoint 2010 I had the option for replacing all fonts in an entire presentation.    Now we updated to Office 365, and in PowerPoint 2016  if I go to Replace Fonts I don't have the option for replacing all fonts, but only to replace a particular one.    Let's say I have a presentation with differents font used across all of the slides, how can I replace all fonts without even knowing which different fonts I have, like the option in PowerPoint 2010 ?? Any ideas?   Thanks!


How can I tell how long (more or less) it will take me to complete a game?

Possible Duplicate:          I often want to know how long a game is so that I can decide whether or not to buy it, or even to decide if I've got enough free time available in the near-future to make it worth trying to play and complete over a weekend. Sometimes I even want to know just because I'm getting a little tired of the game and I want to have a sense of whether or not I'm nearing the end, so I can decide whether to tough it out or pack it in.  What are some good ways of determining how long a given game takes to complete, on average?


I'm getting answer of $\frac{2}{(1-x)^3}$ , but online calculators suggest it's $\frac{-2}{(1-x)^3}$. I've tried it as $(1-x)^{-2}$, which results $-2*(1-x)*-1 = \frac{2}{(1-x)^3}$. Same result with $(\frac{f}{g})'=\frac{(f'*g-f*g')}{g^2}$ . Any help please?


/var/log/messages contains series of ^@ char

I am running kernel 4.1.15, sometimes in /var/log/messages i am getting series of ^@ characters. Normally the content is ok in /var/log/messages it is just for once for few seconds i got these junk characters. Any idea why?


What's the Best Practice reinstalling windows 7 on a dual boot with ubuntu 11.04

I've posted a question  that I have a 32bits windows 7 on a dual boot machine with ubuntu 10.04 upgraded to 11.04. From the responses I had from the questions, I decided to reinstall the windows 7 but this time a 64bits version.  I've install the grub on the first section of the HDD on which ubuntu is install, meaning the 2nd Drive.  I still want guidance before I proceed.  What would you suggest me as best way to achieve that without disturbing the boot loading.  thank you for reading this.


Does $\sum_{n=1}^\infty \frac{\sqrt[n]e-1}{n}$ converge?

Does $$\sum_{n=1}^\infty \frac{\sqrt[n]e-1}{n}$$ converge or diverge? Could you please help me out with this one? I tried the ratio test, but it's inconclusive... I also tried to use the inequality $e^x \ge x+1$, but it doesn't get me anywhere.


For attacks with ranged weapons, is the attacker's Dexterity bonus added to the damage roll?

In 5th edition combat, does a character using a ranged weapon like a bow or crossbow get to add their dexterity to their damage? Such as a rogue with a 15 Dexterity using a light crossbow, would they deal 1d8+2 damage?


Can the Stack Exchange for Android app be found outside of Google Play?

The  app can be obtained . For people with Android devices that don't have Google Play access, is there another way of getting the app? For example, other app stores or a direct download of the .APK file.


Connect Tikz nodes via two parallel arrows

I am just starting to learn using Tikz and am a little lost within its seemingly infinite amount of options and possibilities.  What I am trying to do is visualize a few Matlab function interaction (which one calls which one, what is the in- and output). Since there are only about six subroutines, I place each one manually as a node. This is an example:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,positioning}  \begin{document}  \begin{tikzpicture}[auto] \node           [rounded rectangle,draw]        (node1)     {Node 1}; \coordinate [above=of node1]                                (input); \node           [rounded rectangle,draw]    at  (-10:6cm) (node2)       {Node 2}; \draw           [->,very thick]             ([xshift=0.1cm]  input.south)  --                  node {right}                ([xshift=0.1cm]  node1.north); \draw           [->,very thick]             ([xshift=-0.1cm] node1.north) --                  node {left}                 ([xshift=-0.1cm] input.south); \draw                                            (node1) -- (node2);  \end{tikzpicture}  \end{document}     Now I would like to apply these double in/out arrows I (probably pretty awkwardly) created using xshift to all node connections, so in this example also for the connection between Node 1 and Node 2. Ideally, the space between these two arrows would be the same, independant of their angle and they would nicely connect to the outer line of the nodes. Any idea how I could achieve this? Similar questions I have found only used rectangle and orthogonal lines.


I am trying to make a virtual environment for the development of my Django application. The commando's which I am using:   vagrant@vagrant:/var/www/djangogirls$ python3 -m venv myvenv The virtual environment was not created successfully because ensurepip is not available.  On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.      apt-get install python3-venv  You may need to use sudo with that command.  After installing the python3-venv package, recreate your virtual environment.  Failing command: ['/var/www/djangogirls/myvenv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']   vagrant@vagrant:/var/www/djangogirls$ sudo apt-get install python3-venv Reading package lists... Done Building dependency tree        Reading state information... Done python3-venv is already the newest version (3.5.1-3). The following packages were automatically installed and are no longer required:   javascript-common libjs-jquery libjs-sphinxdoc libjs-underscore python-pbr python-pkg-resources   python-six python-stevedore python3-virtualenv virtualenv virtualenv-clone Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 108 not upgraded.  vagrant@vagrant:/var/www/djangogirls$ python3 -m ensurepip ensurepip is disabled in Debian/Ubuntu for the system python.  Python modules for the system python are usually handled by dpkg and apt-get.      apt-get install python-<module name>  Install the python-pip package to use pip itself.  Using pip together with the system python might have unexpected results for any system installed module, so use it on your own risk, or make sure to only use it in virtual environments.   vagrant@vagrant:/var/www/djangogirls$ rm -r myvenv/   vagrant@vagrant:/var/www/djangogirls$ python3 -m venv myvenv The virtual environment was not created successfully because ensurepip is not available.  On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.      apt-get install python3-venv  You may need to use sudo with that command.  After installing the python3-venv package, recreate your virtual environment.  Failing command: ['/var/www/djangogirls/myvenv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']   As you can see, I am trying to make a myvenv, which cannot be created due to the python3-venv missing. I have already installed this, but the ensure pip is missing. After searching it seems that the system (Ubuntu 16.04) discourages the usage of the package. Could someone help me work around this problem?


I got an NUC i5 core assembled. Want to install Ubuntu 12.04 LTS (need that specific version for ROS HYDRO robot). Now looking at what Ubuntu image to pick. Selected the PC (Intel x86) desktop.iso image. But see that it is a 32 bit OS type when starting from USB. The other image I can select is 64-bit PC (AMD64) desktop CD giving me an AMD64.iso. Is that only for AMD 64-bit processor? Where is the 64 bit x86 image?  This is the text from the releases.ubuntu.com/precise website:  There are two images available, each for a different type of computer:  PC (Intel x86) desktop CD For almost all PCs. This includes most machines with Intel/AMD/etc type processors and almost all computers that run Microsoft Windows, as well as newer Apple Macintosh systems based on Intel processors. Choose this if you are at all unsure. 64-bit PC (AMD64) desktop CD Choose this to take full advantage of computers based on the AMD64 or EM64T architecture (e.g., Athlon64, Opteron, EM64T Xeon, Core 2). If you have a non-64-bit processor made by AMD, or if you need full support for 32-bit code, use the Intel x86 images instead.  Note also when I select 64-bit Ubuntu 14.04.1 LTS from the main ubuntu page to download (on an intell machine) it collects the desktop-amd64.iso file to download?  Where do I get the 64-bit ubuntu 12.04.5 iso file for I5 NUC?


Multiple Password Portal Page BEFORE User Account Set Up

I am trying to create a page that is kinda complicated. First, you need to be referred. So the first page is just a blank log in portal. You would use the referral code to log in. Each member gets their own referral code so that we can track how many members they are referring.Once you get through the referral password portal it will take you to a place to make an account. Then after you have created a password-protected account, you will be to get approval from the admin. After you're approved you can see the content and you are given your own referral code. Is this doable??? Thanks so much!


Is there a way to create a legal description, or some kind of description of a shapefile?

A colleague and I are working on creating legal descriptions for several hundred districts, for which we already have shapefiles. I'm wondering if there's a way to use COGO to help provide a description of the outline of it?  I'm fairly certain it's going to use parcel fabrics, and/or a model.


Benefits of checking in online when checking bags

What is the benefit of checking in online for a flight when you intend to check bags at the airport? I understand some airports have special lines for people that are already checked in but are checking bags. Are there any advantages for airports that don't have those lines?


Bags with balls - Combinatorial Optimization of Probability problem

Suppose there are $n$ bags, each one contains various numbers of balls of differing sizes.  A white ball, of certain size, distinct from all other balls in the bags, is thrown into one of the bags, randomly selected with probability $p_{i}$ ( so that $\sum_{i=1}^{n} p_{i} = 1$).  The probability of picking this white ball, from bag $i$, conditioned on the ball being thrown in that bag $i$, is $c_{i} \in [0,1]$. The probabilities $c_{i}$ may vary from bag to bag, depending on the size and number of other balls there. Note that here the closed interval $[0,1]$ is given for $c_{i}$ as it could be that the white ball is so small compared to the other already present balls in bag $i$, that the chances of picking it out are essentially zero, while on the other extreme, bag $i$ could be empty beforehand.  I have $k$ tries to pick out a white ball from the bags. Here $k \geq n$. I can pick a ball from any of the bags in any order, and I can re-pick a ball from any of the bags as many times as I want (up to maximum $k$ in total). I stop when I first pick out a white ball. After each try that is unsuccessful, I replace the ball in the same bag.    For example, if $n=3$ and $k=6$, a possible sequence of bags I pick from, assuming that I only get a white ball on last attempt (or that I don't get the white ball at all) could be $3, 1, 3, 2, 2, 3 $. Another possibility could be $1,1,1,1,1,2$, etc.  My question is: how do I devise a strategy for the number of tries for each bag, so that the probability of me picking out a white ball in $k$ attempts or less is maximised?


How to package a python3K application to an executable?

I would like to deliver the application to my client, who don't have any computer knowledge, therefore, I don't wanna to let him/her to use terminal to execute my script. How can I make a single package, and let the user double click and execute?? Is there any way to do so?? Moreover, is this possible to package the python runtime to the application? Because the client may not wanna to install python.... I just wanna him/her running something like a .exe written from C, just double click and execute it. Any tools to do so?? Thanks.   Please recommend for Windows & Mac OS X.


Why is good idea to redirect files in shell arguments?

I was pretty sure that this question was asked  before on this site, but I can not find it no matter how much I search. So, here it is (probably again).  The command tr require an input on stdin, therefore it could work with a redirection:  tr 'ab' 'ba' < file   It is also useful when used with wc ... to get a clean numbet without the name of the file:  $ wc -l < file 17   It has been said that variable expansion may generate an string that start with a dash like -nameoffile which could be interpreted as option(s) or if the expansion generates an string with an = like name=value which could be interpreted as a variable asignement in awk.  awk 'script' < "-nameoffile"  < "name=value"   But why is it used for sed  sed 'l'  < file   And other utilities.  Understand that this is a fundamental change in shell syntax. Is that change actually required or is it a personal option.


Prove $I$ is non-principal ideal of $\mathbb{Z}[x]$?

I'm new to algebra and got stuck with concept of ideals.     The question is to prove that   $$I = \left\{ {{a_0} + {a_1}x +  \cdots  + {a_n}{x^n} \mid {a_i} \in \mathbb{Z},{a_0} \in 2\mathbb{Z}} \right\} $$ is a non-principal ideal of $\mathbb{Z}[x]$.  I tried to show for any $f \in \mathbb{Z}\left[ x \right]$ the principal ideal $fR \ne I$.  So I considered three different cases:  1) $f$ is an odd constant polynomial.  2) $f$ is an even constant polynomial.  3) $f$ is a non-constant polynomial.  Then I had, $$\begin{array}{l} aR = a\left( {{\alpha _0} + {\alpha _1}x +  \cdots {\alpha _n}{x^n}} \right)\\ bR = b\left( {{\alpha _0} + {\alpha _1}x +  \cdots {\alpha _n}{x^n}} \right)\\ \left( {x + 1} \right)R = {\alpha _0} + \left( {{\alpha _0} + {\alpha _1}} \right)x + \left( {{\alpha _1} + {\alpha _2}} \right){x^2} +  \cdots  + \left( {{\alpha _{n - 1}} + {\alpha _n}} \right){x^n} \end{array} $$  where ${\alpha _i} \in \mathbb{Z}$ and $a$ is an even constant and $b$ is an odd constant.   But I cannot distinguish any difference between $fR$ and $I$ with above expressions.  Or is it just enough to say that  $$\begin{array}{l} 2 \cdot R = 2{\alpha _0} + 2{\alpha _1}x +  \cdots  + 2{\alpha _n}{x^n}\\ \therefore 2{\alpha _1},2{\alpha _2}, \cdots ,2{\alpha _n} \ne \mathbb{Z}\\ \\ 1 \cdot R = {\alpha _0} + {\alpha _1}x +  \cdots  + 2{\alpha _n}{x^n}\\ \therefore {\alpha _0} \ne 2\mathbb{Z}\\ \\ \left( {1 + x} \right) \cdot R = {\alpha _0} + \left( {{\alpha _0} + {\alpha _1}} \right)x +  \cdots  + \left( {{\alpha _{n - 1}} + {\alpha _n}} \right){x^n} + {\alpha _n}{x^{n+1}}\\ \therefore {x^{n+1}} \notin I \end{array} $$


Machine learning books covering neural networks / cnn / GAN

I'm not an expert in machine learning. Is there any textbook (with a decent amount of mathematical rigor) that cover the subjects neural network / convolutional neural network / GAN network?  I've the Mitchell - Machine Learning but it is a bit old and it doesn't cover CNN and GAN.  Even a list would be fine so I can check by myself which one is more suitable.


Can I install Ubuntu on my samsung galaxy tab 2 GT-P5113?

Hi is there a way to install ubuntu on my Samsung Galaxy Tab 2 10.1" Model# GT-P5113 I wanted to use the nexus 7 intaller but it requires "fastboot" but my tab does not have fastboot as it has a TI OMAP Processor not a Tegra. so is there a manual method to get the same result as the nexus 7? My device does support ODIN flashing And clockwork mod..


While referring my notes, I saw an example where inclusion-exclusion principle was used. Why is 1/e coming answer to this question?

In a Christmas party, everyone brings his/her present. There are n people and so there are totally n presents. Suppose the host collects and shuffles all the presents. Now everyone picks a random present. What is the probability that no one picks his/her own present? Using inclusion-exclusion we can show that the answer is 1/e where e=2.71828... Is there a proof for this applicaton?


Past Perfect Continuous/Past Perfect or?

Which tense should I use in the following example?  Is it OK to use the Past Perfect Continuous if I want to explain to someone that I had been working in some company for 10 years, without mentioning - before I finally quit, or maybe I should use the Past Perfect - I had worked in that company for 10 years… but also without mentioning - before I moved to… ???  Thanks!


Why does every non-zero ideal in $\mathcal{O}_K$ is of finite index?

Let $K$ be a number field and $\mathcal{O}_K$ be its ring of integers. Furthermore, let $\mathfrak{I}$ be a non-zero ideal in $\mathcal{O}_K$.  Question: Why is $(\mathcal{O}_K:\mathfrak{I})<\infty$?  I would like to know that since this result guarantees the well-definedness of the numerical norm of ideals. Could you please explain that to me or give me an appropriate reference? Thank you!


Is it okay to say     Their aim  is to find which element(s) of the input  has(ve) the genuine impact on the output.   My question is concerned with the plural of  element(s) and has(ve).


Understanding what passes through and doesn't pass through the plasma membrane

I have difficulty in understanding the reason why certain molecules can pass through phospholipid bilayers.  Firstly, I understand that the outer layer of the lipid bilayer is hydrophilic - my understanding is that they "like water" and can interact better with water.    Bilayers can absorb hydrophobic substance like N₂ and O₂.    Does this mean - because the hydrophilic surface are capable of hydrogen bonding - that's why they are able to absorb hydrophobic substances like F , O and N ?    They can absorb non-polar molecules.  They can absorb small uncharged molecules like H₂O and CO₂.   I'm not sure of the reasons behind 2 and 3 ...  And of course , vice versa ... (what can't pass through the lipid bilayer easily).  Any help would be appreciated!


Adding Z value to attribute table of shapefile from DEM?

I have one shape file(polygon) downloaded from freely available sites. I want to add the Z value or height value into it. I have corresponding DEM file. The Z column has come after using the 'Add Surface Information' tool. But all the values are 0 in the attribute table and my DEM has elevation values within it. How can I include the Z column having values in it?


I just accidently deleted an Interesting Tag when trying to click on the Tag.  I then readded it, but it put it at the end of the list.  Since I click on it a lot to bring up questions in that tag, it's now a tad inconvenient.  Could we be given the ability to order our Interesting Tags?  Another alternative would be an undo button for Interesting Tag deletion.


How to help a toddler overcome the fear of water on head?

My 22-month-old daughter absolutely hates getting her hair wet.  At bathtime, she complains (crying, but without tears) when I pour water on her head in preparation for washing her hair (even if I'm careful not to get the water in her face and ears). She doesn't mind when I wash the hair. Rinsing is the same. Wetting her hair by having her lean back into my hand and dipping the back of her head is the same...she's very emotionally uncomfortable in this position. (Once, I even put her on her back in the empty bathtub before turning the water on, and she panicked and got up very quickly.)  I imagine this goes back to something we must have done earlier - my wife suggested that we might have gotten water in her ears when she had ear infections. Either way, the real question here is, what can we do to help her overcome this?


How to calculate all possible combinations of two alphanumeric characters?

Having an alphabet of letters A-Z and numbers 0-9, how to get  like:  ['AA', 'AB', ..., 'AZ', 'A0', 'A1', ..., 'Z9', '0A', '0B', ..., '98', '99']   As a side question, what is this type of number system called?


What is the exact usage of Yield Keyword

In the below code I have created one method to print values using Yield and another just a simple list iteration. So here my question is the output obtained from both the methods are same so why do we go for Yield keyword? and also please tell me the exact usage of Yield keyword in application.  Code:  using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace YieldKeyWordEg {     class Program     {         static void Main(string[] args)         {             Animals obj = new Animals();             Console.WriteLine("------ Using Yield ------");             foreach (var item in obj.GetName())             {                 Console.WriteLine(item);             }              Console.WriteLine("------ Using List Iteration ------");             foreach (var items in obj.GetNameinList())             {                 Console.WriteLine(items);             }             Console.ReadLine();         }     }     class Animals     {         public IEnumerable<string> GetName()         {             List<string> objList = new List<string>();             objList.Add("Cow");             objList.Add("Goat");             objList.Add("Deer");             objList.Add("Lion");             foreach (var item in objList)             {                 yield return item;             }         }         public List<string> GetNameinList()         {             List<string> objList = new List<string>();             objList.Add("Cow");             objList.Add("Goat");             objList.Add("Deer");             objList.Add("Lion");             return objList;         }     } }   Output:  ------ Using Yield ------ Cow Goat Deer Lion ------ Using List Iteration ------ Cow Goat Deer Lion


Let K be nonsingular symmetric matrix, prove that if K is a positive   definite so is $K^{-1}$ .   My attempt:  I have that $K = K^T$ so $x^TKx = x^TK^Tx = (xK)^Tx = (xIK)^Tx$ and then I don't know what to do next.


How would you vote in a Low Quality review task? Please explain.  The reason I'm asking is because I often face this kind of answer and I'm not sure how are we supposed to review them.  Link:


What is the number of possible $ x$ values in $\frac{x}{100}= \sin(x)$

Problem  $\frac{x}{100}= \sin(x)$ We are asked to find the number of possible values of $x$ in this scenario and I had tried to figure it out by the use of trigonometric identities but then i had realized that there are no trig identities that can help me... or is there?  steps that i had tried: I first multiplied 100 on both sides to get $x$ by itself to get: $100(\sin x)=x$  Then i determined that $\sin x \le 1$ therefore I had determined that $\frac{x}{100}$ is $\le 1$  But when i look at the answer choices all of them are less than $100$ meaning that all of them are going to make $\frac{x}{100}$ less than 100 when $x$ is substituted.


Inner joining multiple columns to one ID

I'm not in charge of the database so I can't change the format, I realize it is a horrible database.  I have two tables I want to join:  Table1: address_book  id | name | address | phone number | email   Table2: team  id | person1_id | person2_id | person3_id | person4_id | person5_id | person6_id   I would like to join all the personX_id with the name from address_book. I can't seem to figure out how to join more than one column. Hoping someone here could help!  Thanks


How to align the columns of several tables

Given Table 1 and Table 2, I want to create a Table 3 whose columns are     Column1(Table3) = max{Column1(Table1), Column1(Table2)}      Column2(Table3) = max{Column2(Table1), Column2(Table2)}      Column3(Table3) = max{Column3(Table1), Column3(Table2)}      Column4(Table3) = max{Column4(Table1), Column4(Table2)}   So, if I copy the elements all from table 1 or all from table 2 to table 3, the layout of table 3 will not change. (The Table 3 below just shows the column width. You can ignore the elements in it.)  \documentclass{article}   \begin{document}     \begin{table} \centering \begin{tabular}{|l|l|l|l|}     \hline     Column1 & Column2 & Column3 & Column4 \\ \hline     The & quick brown & fox & jumps over the lazy dog \\      The & quick brown & fox & jumps over the lazy dog \\     The & quick brown & fox & jumps over the lazy dog\\     \hline \end{tabular} \caption{First table} \end{table}   \begin{table} \centering \begin{tabular}{|l|l|l|l|}       \hline     Column1 & Column2 & Column3 & Column4 \\ \hline     The  quick & brown & fox  jumps & over the lazy dog \\     The  quick & brown & fox  jumps & over the lazy dog \\     The  quick & brown & fox  jumps & over the lazy dog\\     \hline \end{tabular} \caption{Second Table} \end{table}   \begin{table} \centering \begin{tabular}{|l|l|l|l|}       \hline     Column1 & Column2 & Column3 & Column4 \\ \hline     The  quick & quick brown & fox  jumps & jumps over the lazy dog \\      The  quick & quick brown & fox  jumps & jumps over the lazy dog \\     The  quick & quick brown & fox  jumps & jumps over the lazy dog\\     \hline \end{tabular} \caption{Desired Width} \end{table}   \end{document}


I keep getting this error when I try running sudo apt-get install nvidia-current

Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  nvidia-current : Depends: nvidia-304 but it is not going to be installed E: Unable to correct problems, you have held broken packages.  I have Ubuntu 18.04. @adarsh, as suggested, I did to the purge, and followed with a variety of reinstalls (eg, sudo apt-get install nvidia-current), but keep coming back to that same issue. I may not be installing properly. I have 18.04, with "EVGA GeForce RTX 2080 SUPER GAMING 8GB Blower Fan." I am new to linux (ex-windows guy). Can you recommend a specific install sequence to follow the purge? The most recent error is "nvidia-current : Depends: nvidia-304 but it is not going to be installed E: Unable to correct problems, you have held broken packages." Folks, I could use some help here.


SELECT permission on view querying table from another database

SQL Server 2008 R2 SP1  My company uses the Great Plains (GP) financial system with several customizations.  Our Value-Added-Reseller (VAR) for GP has setup most of these customizations in a separate database from the GP data called DYNCUSTOM.  In the DYNCUSTOM database is a View that is merely a SELECT * FROM a table in the GP company database (called PARTS).  I was approached by a user having problems trying to select on this view.  The error he was getting:  Msg 229, Level 14, State 5, Line 2 SELECT permission denied on object 'BM010415', database 'PARTS', schema 'dbo'   I looked at how his login was mapped and he had a database user in the DYNCUSTOM database belonging to a database role that was granted select on the view.  However, he did not have a database user in the PARTS database.    Usually the intent of a view is so that one can grant select permissions on the view without exposing access to the underlying table.  With SQL Server however, if the view crosses databases does it then change the security context being used?  Therefore, the user would also need a database user in the PARTS database as well as granted select access to the underlying table?


Setup restarts the laptop and then restarts the installation all over and over again?

I am installing Ubuntu 14.04 LTS using a USB


Currently, my server is running Ubuntu Server. I had the domain "rosresurs.msk.ru". A bit later I've bought a new domain called "rosresurs.net". But when I ran dig command, I saw, that old domain is linked to my server's IP. I've looked to both DNS zones. In .msk.ru there is no server's IP. Domain .net has PTR record. Also, I asked for help my domain hosting. Thay said, that it is out fault. I've searched the whole system for rosresurs.msk.ru and its IP address. I've deleted all that entries. But after 2 days nothing changed.


Is there a truly stationary frame of reference? (part deux)

I wonder if the belief that there is no truly stationary frame of reference is really true.  Here's my thinking, please poke holes in it and/or mock me :)  As we understand it, before the big bang the whole universe was a tiny dot, a singularity. At some cue or input or serendipity, that dot began expanding. When that singularity expanded to the size of a beach ball, or perhaps the earth, it should have had a center spot. Let's call that spot the Universe's Core. Couldn't we call that spot the One True Universal Frame of Reference? If not, why not?


Choice of 32 bit or 64 bit Ubuntu for notebook

I have HP notebook with AMD Turion 64x2 processor with NVIDIA GeForce Go 6150 display adaptor. Which Ubuntu I can use 32 bit or 64 bit to dual boot with Windows 7?


Given that $W$ is a subspace of $V$, prove: $\dim W=\dim V \implies W=V$

Suppose $W$ is a subspace of the finite-dimensional vector space $V$ and $\dim W = \dim V=n$  Let $\{\overrightarrow w_1,\ldots,\overrightarrow w_n\}$ be a basis for $W$ and $\{\overrightarrow v_1,\ldots,\overrightarrow v_n\}$ be a basis for $V$.  The set $\{\overrightarrow w_1,\ldots,\overrightarrow w_n,\overrightarrow v_1,\ldots,\overrightarrow v_n\}$ still spans $W$. Since $W$ is a subspace of $V$, $W\subset V$ and all the $w_i$'s can be written in terms of $\{ \overrightarrow v_{1},\ldots,\overrightarrow v_n\}$.  $\therefore$ We can remove one by one all the $w_i$'s from the set $\{\overrightarrow w_{1},\ldots,\overrightarrow w_n,\overrightarrow v_1,\ldots,\overrightarrow v_n\}$ while still having it span $W$, which leaves us with the set $\{\overrightarrow v_1,\ldots,\overrightarrow v_n\}$. We know it to be linearly independent since it is a basis for $V$. Therefore the basis of $V$ is also a basis of $W$. From there on, it is trivial to prove double inclusion $W\subset V$ and $V\subset W$ which gives us $W=V$.  Is my approach correct?


I wonder whether it makes a difference to write numbers, e.g., 3.1416 in math mode $3.1416$ or it is exactly the same as in text mode. I have many numbers in my document, especially decimal numbers, and I have to decide if I put them in math mode (more cumbersome) or not.  I have made a mini test and see no difference  \documentclass{article} \begin{document}  %Text mode This is 3.1416 (\verb|3.1416|)  %Math mode This is $3.1416$ (\verb|$3.1416$|)  \end{document}


Why is orthonormal basis better than linearly independent basis and orthogonal basis?

My course teacher for Pattern Recognition course made this statement that orthonormal basis is better as compared to orthogonal or linearly independent basis when it comes to pattern recognition, or linear algebra in general, but she didn't tell us why!  I know that orthonormal basis consists of unit vectors which are orthogonal to each other. But what makes them 'better'? Or in which scenario do the above mentioned other two basis fail and orthonormal basis survive?  Do orthonormal basis make analyzing things easier? How? Any help is appreciable. Thanks in advance.


Plotting layer given with Longitudes [0 360] to [-180 180]?

I have a world map in correct Longitudes from -180° to 180°. Additionally, I have a shapefile of data from South America, which shows at 290° instead of -70°. How can I reproject it using QGIS?


I am getting no lighting or anything else in my render

So I opened blender, made new file and pressed a F12. I changed nothing and I get this as output. Is this output what I should get? I couldn't find anyone that got this result. What should I try to fix my issue? I am using amd gpu.


I would like to write a .pdf, where my readers could copy the rendered formulae and paste them directly in their TeX documents.    And the copied text would automatically be:  \int x\sin ax\;\mathrm{d}x = \frac{\sin ax}{a^2}-\frac{x\cos ax}{a}+C   Is this possible?


Temporal Table that doesn't use system time

We want to implement temporal tables in SQL Server 2016. We are creating a Datawarehouse and developing Type 2 Slowly changing Dimension Tables.  For the BeginDate, we want it to be dependent on transaction date and not the current getdate time. We are reprocessing a history of transactions. Example below, customer has gym or bank status, and goes from inactive, to active, or pending, dependent on transaction date.  We currently have this.  CREATE TABLE dbo.Department (     CustomerId int primary key,     MembershipStatus int,     TransactionDate datetime  );   We we would like to create a table like this.  CREATE TABLE dbo.DepartmentHistory (     CustomerId int primary key,     MembershipStatus int,     TransactionDate datetime,     BeginDatetime datetime,     EndDatettime datetime  );   Example usage would be:   first Customer Transaction on 3/5/2018 as Pending P        +------------+--------+-----------+---------+     | CustomerId | Status | BeginDate | EndDate |     +------------+--------+-----------+---------+     | 1          | P      | 3/5/2018  | NULL    |     +------------+--------+-----------+---------+    second transaction is 4/21/2018 is Active A        +------------+--------+-----------+-----------+     | CustomerId | Status | BeginDate | EndDate   |     +------------+--------+-----------+-----------+     | 1          | P      | 3/5/2018  | 4/21/2018 |     | 1          | A      | 4/21/2018 | NULL      |     +------------+--------+-----------+-----------+


How do I round a number in Python (Thonny)?

Consider:  def välgu_kaugus(aeg):     kiirus = 300 / 1000     valem = aeg * kiirus     return valem print(välgu_kaugus(float(input("Mitu sekundid kulus välgu nägemiseks müristamise kuulmiseni? "))))   This is my little shitty program. When I input 15 it gives me 4.5, but I want it to round 4.5 to 5, but using the round command it rounds my 4.5 to 4 for some reason. How can I make it to round to 5?


How do I jump to the next or previous word with CTRL + arrow keys in a console?

In terminal emulation applications, pressing CTRL + Left / Right arrows jumps from one word to the previous or next one. Is it possible to have the same functionality in a Linux console, whether it is in text or in framebuffer modes?  In my configuration, the CTRL + arrow keys are transformed into escaped character sequences and not interpreted.


Can we extend more than one class in php?

I have tried to extend the two class with the same instance.it's not working..is there any way to do it..?  class Watermark extends PDF_Rotate, MyPDF{ //Your Code }


How to show via Delta method that the Linear Taylor series expansion of a normal random vector results in NORMAL DISTRIBUTION

How can it be proved using the delta method that the Linear Taylor series expansion of a normal random vector containing independent but NOT identically distributed elements results in a random variable whose distribution is approximately normal?


I have a game on Ubuntu Software Center. It costs 5 $. But I only get 4$. Ok. But, when my 2nd buyer bought, instead of having 8$, I had 7.20$. Now, I got a third buyer and I have 10.40$ instaed of 12$. Why????


How to transfer files from a Windows 10 computer to a Ubuntu computer?

I recently bought a Dell XPS 13 9300 to replace my Dell Inspirion 15 with  windows 10 which I hate. Can I transfer/import files from windows to Ubuntu and if so how please? I am sorry if you can't understand my questions but at 75 years old I don't know what else you want me to put, I don't even know what tags are, sorry to be so stupid, I would appreciate some help!! Thanks for the comments, by connected to LAN do you mean by cable? If so I can't connect new laptop only has 2 USB sockets 1 either side & they are small type, all my USBs don't fit it, do I need an adapter & if so what can you suggest? I am not sure there is anyone out there with patience to answer my "dim"questions!


How to find file size without stdio library?

I am trying to find the size of a file without using stdio library. This way (see below) works perfectly, but I can't find a way to make that work without stdio library.  int getfilesize(const char *filename){     int size;    FILE *f;     f=fopen(filename, "rb");     //pointer check    if(f==NULL){       return (-1);    }     fseek(f, 0, SEEK_END);    size = ftell(f);    fclose(f);     return(size); }


Why am I getting strange output in case of StackOverflowError ?  public class Hello{       public static void main(String args[]){           System.out.println(new Exception().getStackTrace().length);           m1();       }       public static void m1(){           m2();       }       public static void m2(){           try{               m1();           }catch(StackOverflowError err){               System.out.println(err.getStackTrace().length);           }       }   }    Output (a)-         1         102410241024102410241024102410241024  Output (b) -         1024  Output (c)-         1         1024      When the above code executes I am getting Output (a).But when I am commenting first line of main method I am getting Output (b).  I should be getting Output (c) when I am executing the above code by keeping the first line in main method uncommented  Why is 1024 getting printed so many times in Output (a)?  I was trying to find out default stack size by raising StackOverflowError and purposely catching it.I printed stack size before calling m1 method from main method.


How do I efficiently parse a string in C# to return a similarly-named enum?

Is there a cleaner way of parsing a string that contains a word to describe it's  RegistryValueKind? I'm still learning C# and I don't think I'm fully grasping enums.      private RegistryValueKind ParseValueType(string valueType)     {         switch (valueType)         {             case "String":                 return RegistryValueKind.String;             case "Binary":                 return RegistryValueKind.Binary;             case "DWord":                 return RegistryValueKind.DWord;             case "ExpandString":                 return RegistryValueKind.ExpandString;             case "MultiString":                 return RegistryValueKind.MultiString;             case "QWord":                 return RegistryValueKind.QWord;             case "Unknown":                 return RegistryValueKind.Unknown;             default:                 return RegistryValueKind.None;         }     }   Surely this isn't standard coding procedure?


Defining the set $\{(t^3,t^4,t^5) : t \in \mathbb{C}\}\subset \mathbb{C}^3$ by two polynomial equations

What are two polynomials $f,g \in \mathbb{C}[x,y,z]$ such that $$\{(x,y,z): f(x,y,z)=g(x,y,z)=0\}\;=\;\{(t^3,t^4,t^5): t \in \mathbb{C}\}$$ holds as an equality of subset of $\mathbb{C}^2$?   , as I understand it, claims that there are indeed such polynomials. How can we find them?  Surely both polynomials need to be on the ideal of this curve, and thus $f(x,y,z)=p_1(xz-y^2)+p_2(yz-x^3)+p_3(z^2-x^2y)$, for some polynomials $p_i$ in $x,y,z$, and similarly for $g$.  Alas, we cannot simply equate coefficients of each monomial in the two equations, nor solve generally these equations so as to ensure their solutions will only be points on the curve. Is there a reasonable way to find $f, g$?


"To ensure" vs. "To ensure that" + subject + predicate

Is any of these two sentences incorrect:  -(without that): "To ensure the voters are not influenced by mass-media, the campaign will end 7 days before the elections take place."  -(with that): "To ensure that the voters are not influenced by mass-media, the campaign will end 7 days before the elections take place."  Is the presence of that mandatory?


What is the lowest level of mathematics required in order to understand how encryption algorithms work?

What mathematical fields of knowledge would be required in order to get a good understanding of encryption algorithms?   Is it basic algebra, or is there a "higher education" mathematical field dedicated to encryption? I know there is the cryptography field, but what is the subset of knowledge required for cryptographers?


My last interview went like this!  EDIT:  The linked question seems to be answering the question but its not. I have already in the below code-snippet mentioned that. The question is other than that, whats the difference?.  What is the difference between ArrayList and List<object> ?  (They were asking specifically about List<object> not List<T>)!   My explanation is we cannot use ForEach extension method for ArrayList and ArrayList is a non-generic functionality.      ArrayList arrayList = new ArrayList();     List<object> listObjects = new List<object>();      foreach(object item in arrayList)     {         Console.WriteLine(item);     }      listObjects.ForEach(item => {         Console.WriteLine(item);     });    I explained this to my interviewer but she seemed to be expecting something else. Anything  other than that?


node_save() not working with LANGUAGE_NONE

My question is exactly similar to the one posted here .  The answer posted here is not complete and I'm looking for a solution. I'm using the below code to save a node.  function api_add_getabstract($node_values, $api_endpoint) {   //initialise node object   $ex_node = new stdClass();   $ex_node->type = 'getabstract';   $ex_node->language = 'en';   node_object_prepare($ex_node);   dpm($node_values,'node values');    //add field values   $ex_node->title = $node_values['bookinfo']['title'];   $ex_node->body['en'][0]['value'] = $node_values['recommendation'];   $ex_node->body['en'][0]['format'] = 'full_html';   $ex_node->field_authors['en'][0]['value'] = $node_values['bookinfo']['authors'];   $ex_node->field_sub_title['en'][0]['value'] = $node_values['bookinfo']['subtitle'];   $ex_node->field_publisher['en'][0]['value'] = $node_values['bookinfo']['publisher'];   $ex_node->field_ex_cover_image['en'][0]['value'] = $node_values['bookinfo']['bookcoverOriginal'];   $ex_node->field_ex_deep_link['en'][0]['value'] = $node_values['publicURL'];   $ex_node->field_api_info['en'][0]['value'] = $api_endpoint;   node_save($ex_node); }   I tried by changing the value 'en' to 'und' and LANGUAGE_NONE, but none seem to save the node completely. Using 'en' at least creates the node with only Title field, but for the other 2 values, node is not even getting created.


How to output latest created file in shell

I have an executable which creates either file1 or file2 along with other files. I am trying to write a shell script which should output the latest created file. If the executable creates file1, the output should be file1. Please note that I already have both file1 and file2 exists in the directory along with other files. The executable overwrites it. If there are no file1/file2 exist, below script works but this doesn't work if both file1 and file2 exists.   if [ -e "file1" ]; then    output="file1" else    output="file2" fi


The recaptcha on data stackexchange isn't working

Is this a temporary situation or something that needed to be reported?


Suppose $M$ is a free R module where $R$ is commutative and unital. Is $\Lambda^n M$, the nth exterior power of $M$ free?


how to get an element added from an ajax response

I have the next code:  $(document).ready(function(){     $('#dl-cat').mouseenter(function(){     $.ajax({         type: "POST",         url: "../control/Controlador.php",         data: {lang: $('html').attr('lang'), cat: $(this).text(), prov: "none"},         success: function(resp) {             $(".og-grid").html(resp);          }     });        });  $(".og-grid li").on("mouseenter", function(){     console.log("it exists"); });   });  Where the "og-grid" class is an "ul" tag and after the ajax response I put some html code like "li" tags, but when I program an event like "mouseenter" to the new added code It does not show me anything, as If It does not exist


CSS root element improper height with unwanted scroll

Despite root is having 100%, scroll is coming initially when you visit to page first time. I have tried by making root height as 100% and app-container height to calc(100%-50px) In this case scroll is still appearing root height as 100% and app-container height to 96%   In this case scroll is appearing and app-container is not taking entire height of page i.e., it is not taking height till bottom which is not correct root height as 96% and app-container height to 100%   in this case scroll is disappearing but app-container is not taking entire height of page i.e., it is not taking height till bottom which is not correct please let me know how to remove unwanted scroll and app-container to take page height till bottom correctly


Meaning and origin of "if you catch my drift"

What does the expression if you catch my drift mean? Where does it originate? I've heard it in the context to signify something like if you know what I mean.


The system crash dialog is annoying me, how can I turn it off? I'd also like to know how to turn it back on just in case I need it to report a problem.


How is an XOR with more than 2 inputs supposed to work?

I've just started studying computer engineering, and I'm having some doubts regarding the behavior of the XOR gate.  I've been projecting circuits with Logisim, whose XORs behave differently from what I've learnt. To me, it should behave as a parity gate, giving a high output whenever the inputs receives an odd combination. It doesn't, though, for more than two inputs. How should it behave?  I also read in a book that XOR gates are not produced with more than two inputs. Is that correct? Why?


Why bother with multivariate regression?

There are a few books out there on how to do multivariate regression, but of course the literature isn't as massive and detailed as univariate regression models.  So why bother with multivariate regression at all? Sure, what you gain from the ability to be able to model the strong correlation structure between the responses, you probably lose from your lack of ability to use the wide class of models and techniques available for univariate regressions, no?  So, my question is, if a multivariate response is highly correlated, is it really the end of the world if we just do separate but proper and highly informative univariate regressions?


According to Zaitcev, V.; Janishewsky, A.; Berdnikov, A. (1999), Russian Typographical Traditions in Mathematical Literature. EuroTeX'99 Proceedings the dots between integrals should be \ldots:    This publication is available .  I want to use the semantically oriented \dots* commands from amsmath and adjust them to the requested conventions.  My naive attempt was to copy the line from amsmath.sty  \newcommand{\dotsi}{\!\@cdots}   and change the definition of \dotsi with renewcommand:  \documentclass{article} \usepackage{amsmath} \renewcommand{\dotsi}{\!\@ldots}  \begin{document} \begin{equation}  \int \dotsi \int dx_1 \dotsm dx_N  \end{equation} \end{document}   However, this returns following error:  You can't use `\spacefactor' in display math mode \@->\spacefactor  \@m {} \int \dotsi   What would be the correct way to do this for \dotsi and also for the other \dots* commands?


Why are USB cables of two different OEM's different

The USB has various purposes for data transfer, movement of input and output signals for hardware like connecting an Android device to another Display screen (USB on the go), charging the device etc.(during a device charge the voltage drawn from the USB is same irrespective of the device or OEM then Why are two USB Cables different ?  A USB of one manufacturer may not be supporting another manufacturer. We get problems if we do connect them like      or


Prove that if $R[x]$ is a PID, then $R$ is a field

I just need someone to check my proof and provide me feedback:  Since $R[x]$ is a PID, then the ideal $I = (x-1)$ generated by the polynomial $x-1$ is maximal because it is of degree 1 added to a constant.  So $R[x]/I\simeq R$ is a field, so $R$ is a field.    Is this proof enough/correct?  Thanks.


Does "notified by [date]" include the end date?

I have read the Rules of a competition. The text of the Rules include a sentence as follows:     As per stated in the Rules the entrants will be notified by May 30th 2010.   Does the sentence above mean that May 30th is included in the term of notification or not?


Rings constructed from commutative rings

Let $R$ be a commutative ring and define $$B = \{ f = \sum_{n=0}^{\infty} a_n X^n: a_n \in R\}$$ where $X$ is an indeterminate over $R$.  a. Show that $B$ is a ring.  b. Prove or disprove: $f$ is a unit if and only if $a_0$ is a unit.  I could not relate this question with the post  exactly since there is nothing about nilpotent elements. Maybe I need a more detailed explanation.


unable to install ubuntu on alongside windows 10. Grub install /dev/sda failed

Note:  I have already checked all the answers available on stackoverflow and various other forums. But could find no solution that would help me solve "grub install /dev/sda failed fatal error"  I have made sure the UEFI mode is selected and not legacy. Secure boot is off. Fastboot is turned off.  There is one partition(sda 6 for ubuntu). sda 1 EFI for as windows boot manager(And assuming that grub will be installed here). I am using live usb to install Ubuntu.  I have also tried with and without a new EFI drive sda4. Please help me resolve this and get Ubuntu 16.04 installed  I have attached the screenshots for reference.


How to move a window if titlebar is overlapped by Ubuntu menu

Somehow the title-bar of chrome was overlapped by Ubuntu menu-bar like attached image.  In this case how to move this chrome window?


how to award a bounty without starting one?

I recently had a specific problem which had a poor visibility. I could find the exact question I needed (and the answer on SO). So I thought of giving some amount of my reputation to that answer, but I couldn't find a way to do it.   Reading the FAQ, I see the only method would be to start a bounty on that question and then award the bounty.  Is there any direct way, I can give away some reputation points to a answer?  Hope, I haven't missed something very basic here, please help me understand how is this doable if possible?


Why does Python start at index -1 (as opposed to 0) when indexing a list from the end?

list = ["a", "b", "c", "d"] print(list[3]) # Number 3 is "d"  print(list[-4]) # Number -4 is "a"


What is the maximum range of the very best Starfleet transporter in the Star Trek universe?

They supposedly have a 40,000 km (about a 25,000 mile) range, but over the years people have been transported to far greater distances. In the reboot Star Trek (2009) as example, Scotty and Kirk are shown to beam aboard Enterprise while it's traveling at warp, light years away. How can this be?


I'm trying to say:       He probably gained some __________ [good notoriety] from this picture.   I was thinking publicity, but that connotes some kind of negative to me as well (like the stuff you see in gossip magazines at the checkout line).  I want a word as powerfully positive as notoriety is powerfully negative.


How do I extract a square root in a field of p-adic numbers?

Retrieval of square root in the field of p-adic numbers.   Find ${\sqrt 5}$ in field $\Bbb {Q_{11}}$ Find ${\sqrt 3}$ in field $\Bbb {Q_{13}}$   Any information that will help solve this task will be useful.


Every time I talk to jorleif about buying hjerim, there is no dialogue options menu or anything. I have completed the stormcloaks storyline and blood on the ice but nothing. I didn't get a quest to become thane but I don't know if that's a thing or not. I've spent hours trying to fix this but I am unable to get this resolved.


So I have my targets array which is a bunch of IP read from a file, now I am trying to cat a file that contains my IP and results from ssh command, ut because I am trying 3 different passwords on every target I will get 2 denials and one job scheduled result. So I figured, I will check if a job was scheduled for a particular result and I will print "$ip OK, if not then I will print "$ip failed" here is what I have : #!/bin/bash for ip in "${targets_array[@]}" do    cat "$output_file" | awk -v ip="$ip" '/$ip/&&/job/ {result="OK"} END {      !result?result="failed":result=result;}'  done   Pseudocode of what I am trying to do: 1.cat from output file line of the file where you can find desired ip and the word "job"  2.1. if you found it print append to a string variable "$ip OK" 2.2 if not found append to a string variable "$ip failed" 3. override output file with the result stored in the variable  but when I run it in debugging mode I see that the value was never passed to the awk script. How can I pass it? + awk -v ip= '/$ip/&&/job/ {result="OK"} END {      !result?result="failed":result=result;}'  the file I am cutting from: unwantedString 124.131.8010 Permission denied, please try again. unwantedString 125.124.90.134 Permission denied, please try again. unwantedString 145.120.100.8 Permission denied, please try again. unwantedString 145.101.100.158 Permission denied, please try again. unwantedString 124.131.80.2 Permission denied, please try again. unwantedString 125.124.90.134 job 32 at 2020-12-16 23:30 unwantedString 145.120.100.8 Permission denied, please try again. unwantedString 145.101.100.158 job 27 at 2020-12-16 23:30 unwantedString 124.131.8010 Permission denied, please try again. unwantedString 125.124.90.134 Permission denied, please try again. unwantedString 145.120.100.8 Permission denied, please try again. unwantedString 145.101.100.158 Permission denied, please try again.