Why is it sufficient to minimize expected prediction error (EPE) pointwise?
Expected prediction error - derivation
How to list files installed by a snap package? After a snap has been installed with sudo snap install [package] how can I list the files which have been installed by the snap? Render not showing UV texture I have added a texture to a cube in the UV editor and it shows up fine in textured view  But when I render it there is no texture  What have I done wrong? Whenever I am given a system type with a certain transfer function, I am always asked to proceed to find out the 1. impulse response and 2. step response of the system. My question is, what is so special about these two response types that other responses, like for example parabolic response, is not what I am asked to find out? Text gets stretched or disappears when scrolling When scrolling in the Stack Exchange Android app, the text gets stretched vertically, code disappears, and sometimes the entire post content disappears.  This doesn't make the app completely useless, but it's pretty close.   Motorola Razr MAXX, Android 4.0.4. Shannon confusion and diffusion concept I read the document(not the whole document) from Shannon where he speaks about the concepts of confusion and diffusion. I read in many places(not in the document but around the internet) that confusion is enforced using substitution. Diffusion is enforced using permutation/transposition. Ciphers must use both of them because either confusion or diffusion alone are not enough. I read that a substitution cipher can apply by itself confusion(only). Permutation/Transposition applies by itself diffusion(only). It's precisely the last case that bothers me: Can a permutation/transposition cipher by itself apply diffusion?  Shannon explains diffusion as a property that spreads statistic properties of text all over the text preventing statistic analysis. It's frequently translated to: an alteration to a plaintext symbol affects many cipher text symbols. Assuming permutation of bits or characters, how can diffusion be achieved by simple permutation? I mean, if you permute bits, there will be no other bits affected. But if you consider a symbol a character and you permute bits, a change in a character will affect many other characters. It's a question of what is a symbol.  I also read versions of this diffusion concept where the point was just changing bits order just to avoid pattern analysis of the text. But, where is the avalanche effect in simple permutation?  So, what is the correct definition and the implications of diffusion?  I hope you understand what is troubling me.  Thank you once more MSTest Code Coverage How to install Oracle 18c (Enterprise Edition) on Ubuntu 18.04? This question is unanswered since Oracle 18c has been released. Except Ubuntu Linux platform, most of the other Linux platform supports Oracle 18c installation. I, myself, tested this on CentOS 7 and oracle 18c got installed without any glitch!  It is unfortunate that Oracle Corporation has not documented the installation procedure particularly for Ubuntu Linux platform, nevertheless one good thing is that the image file db_home.zip is a generic one, installable across all Linux platforms.    So how can I install Oracle 18c (Enterprise Edition) on Ubuntu 18.04? Concatenating string with space I have a string that represents a non indented XML that I would like to pretty-print. For example:  &lt;root&gt;&lt;node/&gt;&lt;/root&gt;   should become:  &lt;root&gt;   &lt;node/&gt; &lt;/root&gt;   Syntax highlighting is not a requirement. To tackle the problem I first transform the XML to add carriage returns and white spaces and then use a  tag to output the XML. To add new lines and white spaces I wrote the following function:   function formatXml(xml) {     var formatted = '';     var reg = /(&gt;)(&lt;)(\/*)/g;     xml = xml.replace(reg, '$1\r\n$2$3');     var pad = 0;     jQuery.each(xml.split('\r\n'), function(index, node) {         var indent = 0;         if (node.match( /.+&lt;\/\w[^&gt;]*&gt;$/ )) {             indent = 0;         } else if (node.match( /^&lt;\/\w/ )) {             if (pad != 0) {                 pad -= 1;             }         } else if (node.match( /^&lt;\w[^&gt;]*[^\/]&gt;.*$/ )) {             indent = 1;         } else {             indent = 0;         }          var padding = '';         for (var i = 0; i &lt; pad; i++) {             padding += '  ';         }          formatted += padding + node + '\r\n';         pad += indent;     });      return formatted; }   I then call the function like this:  jQuery('pre.formatted-xml').text(formatXml('&lt;root&gt;&lt;node1/&gt;&lt;/root&gt;'));   This works perfectly fine for me but while I was writing the previous function I thought that there must be a better way. So my question is do you know of any better way given an XML string to pretty-print it in an html page? Any javascript frameworks and/or plugins that could do the job are welcome. My only requirement is this to be done on the client side. Using expect for inputting commands Heres the thread I'm bouncing off of:   So I'm trying to run this command: cd /etc/openvpn/easy-rsa; . ./vars; ./build-key username  However, after running that command, I need to input nothing [just press enter] 10 times, and press y twice. The user on the last thread suggested I use except, but I couldn't get it working. Here are the questions it asks:  root@suffice-vpn:/etc/openvpn/easy-rsa# ./build-key usernamtest Generating a 2048 bit RSA private key ..................+++ ........+++ writing new private key to 'usernamtest.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [US]: State or Province Name (full name) [NY]: Locality Name (eg, city) [Merrick]: Organization Name (eg, company) [IceWare]: Organizational Unit Name (eg, section) [IceWare]: Common Name (eg, your name or your server's hostname) [usernamtest]: Name [server]: Email Address [iceware@programmer.net]:  Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []: Using configuration from /etc/openvpn/easy-rsa/openssl-1.0.0.cnf Check that the request matches the signature Signature ok The Subject's Distinguished Name is as follows countryName           :PRINTABLE:'US' stateOrProvinceName   :PRINTABLE:'NY' localityName          :PRINTABLE:'Merrick' organizationName      :PRINTABLE:'IceWare' organizationalUnitName:PRINTABLE:'IceWare' commonName            :PRINTABLE:'usernamtest' name                  :PRINTABLE:'server' emailAddress          :IA5STRING:'iceware@programmer.net' Certificate is to be certified until Jan 14 18:27:48 2026 GMT (3650 days) Sign the certificate? [y/n]:y   1 out of 1 certificate requests certified, commit? [y/n]y   As you can see, I press enter 8 times initially [to keep the default input] and then press enter another 2 times to skip the optional commands. Then, I need to press y twice. How can I automate this? I need to have this all happen in one command. Any suggestions? Thanks in advance. How to render an animation as video in Blender? Yesterday I was working on a simple animation, an animated logo.   Here is an image of the progress:    I already have the animation working and everything is okay with the project, but I can't figure out how I can render the animation and turn it into an AVI format video.  How do I render an animation in Blender? Let $f(n) = \sum_{(k,n)=1} e^\frac{2\pi ik}{n}$. Show that $f(n) = \sum_{k=1}^{n}\left(\sum_{d\mid (k,n)} \mu(d)e^{\frac{2\pi ik}{n}} \right) $ Prove that Gauss map on M is surjective I have put a bounty on , however I don't see it appear in the  (also not when I'm not logged in).  Why is this. Aren't all bounty questions supposed to be visible there? I recently reviewed a paper (general applied mathematics context). During the review, I realized that the fairly general ideas introduced in the paper can potentially be applied to a specific problem in a similar context. The authors did not mention this application in their paper, so I suggested to add a short comment about it in my review.  I later started thinking about the application in more detail and tried out some things, which actually seem to work quite well for this application. Now, the paper is still in the review process and might take some time until it gets published. What is the proper way how to proceed here in order to use the ideas and results which I in my exclusive position as a reviewer saw? How can I refer to the paper that is still under review? How can I best discuss the ideas with my co-workers (and potential co-authors) without disclosing that I reviewed the paper?  The paper under review is not available online on any preprint servers such as arXiv etc Why is $\mathbb{E}[X] = 1 + \sum^\infty_{k=1}\mathbb{P}(X > k)$ true? I'm working through a problem regarding expected values in Markov chains, and at some point it says:     Recall from probability that if $X$ is a positive integer valued random variable, then $\mathbb{E}[X] = 1 + \sum^\infty_{k=1}\mathbb{P}(X &gt; k)$.   I know that by definition $\mathbb{E}[X] = \sum_a a\mathbb{P}(X = a)$, but I can't see how the above equality follows from this, nor am I sure if this is how to approach the problem. Undefined control sequence error on \fancy@reset, \f@ncyolh and \f@ncyorh when using newlfm class I have problem with CRS Bosnia and Herzegovina?  MGI 1901 / Balkans zone 6  EPSG:3908 MGI 31276 / Balkans zone 6  EPSG:31276  Which of these two is OK? When I open google sattelite image with openlayers plugin, MGI 1901 match an image, when I change to MGI 31276 vector layer mismatch about 300m. When I import my layers to Global Mapper, datum of vector is "MGI Austria"   I need this projection: Connecting multiple grounds As I'm relatively new to the electronics world, I was wondering if you can connect multiple  ground terminals (corresponding to several different voltage outputs) to the same ground. Or do they each need their own?  In my case I have 5 lines, one 12V, one 3.3V, two 5V and one variable from a 12V in using a  voltage regulator that already has its own ground. So I'm guessing that each would need its own ground, but it is never bad to ask. Safest way to transport a laptop during flight I flew a long range flight carrying my laptop, a quite heavy one, inside a neoprene briefcase in the passenger cabin. The recommendation by the aircrew was to place it in the overhead compartment or under the seat in front of me. However, during take-off and landing, the vibrations on the plane are quite strong and, as a result, it received minor damage.   Placing them in the overhead compartment might be equivalent to placing it on the floor under the seat, with the added issue of additional luggage in the compartment shifting.  I considered the alternative of holding the laptop by the handle while sitting, so it won't be any contact with the aircraft's floor. This is impracticable during cruise, but I thought it could be better during the take-off and landing segments. Another option I considered is to wrap it with completely with bubble wrap before boarding the plane.   Which is the safest way to transport a laptop during flight?