the text in file looks like this:  [homes]         comment = Home Directories         path =          browseable =          writable = yes         valid users = %S         valid users = MYDOMAIN\%S  [printers]         comment = All Printers         path = /var/spool/samba         browseable = no         guest ok = no         writable = no         printable = yes   i want output as:  [homes]         comment = Home Directories         path = /data         browseable = yes         writable = yes         valid users = %S         valid users = MYDOMAIN\%S  [printers]         comment = All Printers         path = /var/spool/samba         browseable = no         guest ok = no         writable = no         printable = yes   i am using this command:  sed -i "\#path# s#.*#& /data#" file   but it makes changes to everywhere in file where path is located  can anyone help me with this?


Is the “sum of all natural numbers” unique?

A while ago, there was a great hype about the “identity” $$\sum_{n=1}^{\infty} n = -\frac{1}{12}.$$  Apart from some series manipulations where the validity seems to be at least questionable, the derivation of this always goes through the zeta function:  Where the series converges, the zeta function is defined by $$\zeta(s) = \sum_{n=1}^{\infty}\frac{1}{n^s}$$ and outside that range by analytic continuation. And it turns out that inserting $s=-1$ formally results in $$\zeta(-1) = -\frac{1}{12} = \sum_{n=1}^\infty n$$  However looking at the series in isolation, there is no indication that the zeta function should be chosen.  An obvious way to get an analytic function that at one point gives the sum of all natural numbers is $$f(x) = \sum_{n=1}^{\infty} nx^n$$ at $x=1$, however (not surprisingly) that function diverges at $1$.  Therefore my question:     Is it possible to get another finite value for the series by analytic continuation of another series?   Concretely, do there exist continuous functions $f_1, f_2, f_3, \ldots$ such that   On some non-empty open subset $S$ of $\mathbb C$, $f(x)=\sum_{n=1}^\infty f_n(x)$ converges to an analytic function. At some point $x_0$, $f_n(x_0) = n$ for all positive integers $n$. The analytic continuation of $f$ is well defined and finite at $x_0$. $f(x_0) \ne -1/12$   What if we demand the functions $f_n$ to be analytic rather than just continuous?


Is it possible to get a rigid body to bounce off cloth?

I am doing something very basic: trying to simulate a rigid body (a sphere) falling onto a large cloth. Right now in my simulation, the object falls, the cloth deforms, and then the object just comes to rest on the cloth. It would look more realistic if the sphere were to bounce a little bit (and maybe roll around) before coming completely to rest. I have tried changing the physics properties of the cloth and the rigid body, with no success. I know rigid bodies can bounce off of each other: is there any way to get them to bounce off of a cloth before coming to a stop?


I am using STMP module for D7.  When i put test email abc@gmail.com, i have received the email but   When i check show original i am getting received from   Received: from usernem by myhost username with local (Exim 4.85)    Why it is so ?  Also i have enter wrong password and tried to send an email. i recieved the email  Seems SMTP is not working on my site    Below are my settings


How would you go about explaining i.i.d (independent and identically distributed) to non-technical people?


I am using Red Hat SunOS. The software I would like to execute is sqlplus  I have two scripts:   script A: contains export PATH=/opt/oracle/product/9.2.0/bin/sqlplus where sqlplus is installed. This script calls the script B script B: contains echo $PATH and right after which sqlplus.  The fist command print the content of PATH which contains       /opt/oracle/product/9.2.0/bin/sqlplus    The latter command does NOT found in which path sqlplus is installed.  I tried executing the commands directly in the bash shell: export PATH=/opt/oracle/product/9.2.0/bin/sqlplus  which sqlplus     /opt/oracle/product/9.2.0/bin/sqlplus   My question is:   Why the script B cannot found where sqlplus is installed?


How do I fix 404 error when updating package lists?

I'm running Ubuntu 18.04 LTS, and I can't install from new PPA's.  It gives me a 404 error every time I try to update the package lists.  curtice@linuxloverpc:~$ sudo apt update [sudo] password for curtice:  Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease                Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease        Hit:4 http://ppa.launchpad.net/bartbes/love-stable/ubuntu bionic InRelease Ign:5 http://ppa.launchpad.net/gnome-shell-extensions/ppa/ubuntu bionic InRelease Hit:6 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu bionic InRelease   Hit:7 http://ppa.launchpad.net/papirus/papirus/ubuntu bionic InRelease         Err:8 http://ppa.launchpad.net/gnome-shell-extensions/ppa/ubuntu bionic Release   404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done E: The repository 'http://ppa.launchpad.net/gnome-shell-extensions/ppa/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   I did not re-enable repositories after a distro upgrade, I did not incorrectly type the repo name, and the repository obviously exists at   How do I fix this?


Ubuntu 14.04.1 persistent on USB flash drive deleted Windows 7

I installed Ubuntu 14.04.1 persistent on a usb flash drive using Linux Live usb creator  and everything went fine. I gave it persistent memory for the flash drive to store changes. Once I booted up from the drive, it took a long time to boot up and after it booted, I clicked live mode so it wouldn't affect my computer. After that, I couldn't access windows files or anything so I then restarted it and went to BIOS settings and let it boot from windows. When it boots, it does NOTHING! Nothing works and not even the HP recovery manager that came with my computer doesn't boot up! I then decided to boot from the usb again to Ubuntu and I went to the hard drive and it says only "1 gig" of space used! I had a bunch of videos and files on windows that I NEED! PLEASE HELP! If there is no way to get windows back or my files, is there at least a way recover my files such as photos, music, and videos because it appears there is nothing on the HHD! Here goes a picture of my  Here is a picture of Gparted


includepdf into .tex file but crop each page's header off

I was hoping to find a way to insert several (many) pages of a pdf but crop off the header (with the date, filename, etc.). I'm using   \subsection{Notes} \includepdf[scale=0.8,pages=8-20,pagecommand=\subsection{blub}]{Notes.pdf}   but maybe I need to use pdftk somehow to do the batch cropping?   Thanks for any suggestions!


What do operations on single Qubits of Unfactorable Superpositions Do?

So suppose I have the following Quantum Circuit:  A ---- |Control| -----|Hadamard|----  B ---- |xxxxxxx|------------------------  Which is a 2 input Controlled Gate (applying some gate of two choices to Qubit B, depending on the value of Qubit A) followed by a single Hadamard Gate acting on Qubit A.  Initially the Qubits are in states  $$a_0\left| 0 \right> + a_1\left| 1 \right> $$ $$b_0\left| 0 \right> + b_1\left| 1 \right> $$ Respectively. So the combined system is in state  $$ a_0 b_0 \left| 00 \right> +a_0 b_1 \left| 01 \right>  + a_1 b_0 \left| 10 \right> + a_1 b_1 \left| 11 \right>$$  At the beginning.  After the application of the controlled Gate, the combined superposition can easily be in a state that CANNOT be factored into a tensor product of two states. Any superposition of the form  $$ q_0 \left| 00 \right> +q_1 \left| 01 \right>  + q_2 \left| 10 \right> + q_3 \left| 11 \right>$$  Where $q_0/q_1 \ne q_2/q_3$ for example couldn't be factored into a tensor product.  But now when we apply that Hadamard gate, it is applied onto a single Qubit. What is it doing then? Given that the "state" of a single qubit cannot be independently factored and considered, how does the hadamard gate now affect the state of system?  How this is different than:    In the linked question, we are dealing with a factorable state, that then is given a CNOT transform. That computation is obvious since the factorable state (post Hadamard) can be expressed as:  $$a_0\left| 0 \right> + a_1\left| 1 \right> $$ $$b_0\left| 0 \right> + b_1\left| 1 \right> $$  yielding superposition state:  $$ a_0 b_0 \left| 00 \right> +a_0 b_1 \left| 01 \right>  + a_1 b_0 \left| 10 \right> + a_1 b_1 \left| 11 \right>$$  Which can now be easily computed with the $4 \times 4$ CNOT operator.  In our question we go the other way. WE start off with teh application of a $4 \times 4$ controlled operator to generate an entangled superposition  $$ q_0 \left| 00 \right> +q_1 \left| 01 \right>  + q_2 \left| 10 \right> + q_3 \left| 11 \right>$$  And now am attempting to determine how the behavior of a gate acting on a SINGLE Qubit affects the whole superposition.   The link is irrelelvant here since our system is no longer factorable as a tensor product of independent superpositions.  What I'm asking can be summarized succinctly as: How can I write a single Qubit operator $O$ (given as a $2 \times 2$ matrix) as a multiQubit operator $O'$ (given as a $2^k \times 2^k$ matrix) that acts as the identity on all inputs except the first where it acts as $O$ traditionally would.   To that end, the question offers no hint of how to go about it.  Work so far  My intuition suggests given the system:  $$ q_0 \left| 00 \right> +q_1 \left| 01 \right>  + q_2 \left| 10 \right> + q_3 \left| 11 \right>$$  We can artificially believe that the first qubit is in the state  $$ (q_0 + q_1) \left| 0 \right> + (q_2 + q_3) \left| 1 \right> $$  And that the entire superposition is in:  $$ (q_0 + q_1) \frac{q_0}{q_0 + q_1}\left| 00 \right> +(q_0 + q_1) \frac{q_1}{q_0 + q_1} \left| 01 \right>  + (q_2 + q_3) \frac{q_2}{q_2 + q_3} \left| 10 \right> + (q_2 + q_3) \frac{q_3}{q_2 + q_3} \left| 11 \right>$$  So when we apply the Hadamard to the Qubit we send:  $$ (q_0 + q_1) \left| 0 \right> + (q_2 + q_3) \left| 1 \right> $$  To  $$ \frac{q_0 + q_1+q_2 + q_3}{\sqrt{2}} \left| 0 \right> + \frac{q_0 + q_1-q_2 - q_3}{\sqrt{2}} \left| 1 \right> $$  And thus the entire system now is in:   $$ \frac{q_0 + q_1+q_2 + q_3}{\sqrt{2}} \frac{q_0}{q_0 + q_1}\left| 00 \right> +\frac{q_0 + q_1+q_2 + q_3}{\sqrt{2}} \frac{q_1}{q_0 + q_1} \left| 01 \right>  +  \frac{q_0 + q_1-q_2 - q_3}{\sqrt{2}} \frac{q_2}{q_2 + q_3} \left| 10 \right> +  \frac{q_0 + q_1-q_2 - q_3}{\sqrt{2}} \frac{q_3}{q_2 + q_3} \left| 11 \right>$$  But I'm not sure why I would rigorously believe this.  (Renormalize where necessary)


What is the explanation for why a field cannot have certain values like e.g. 12?

Ok, as far as I understand a field has to look like $\mathbb{F}_{p^n}$. But why? What is the explanation?


I have a Schengen visa from Netherlands Embassy but I want to spent two days in Paris first before I go to the Netherlands is it allow

I have a Schengen visa from the Netherlands Embassy, but I want to visit Paris first before I move to the Netherlands; Is it allowed?


How to round up integer division and have int result in Java?

I just wrote a tiny method to count the number of pages for cell phone SMS. I didn't have the option to round up using Math.ceil, and honestly it seems to be very ugly.  Here is my code:  public class Main {  /**  * @param args the command line arguments  */ public static void main(String[] args) {    String message = "today we stumbled upon a huge performance leak while optimizing a raycasting algorithm. Much to our surprise, the Math.floor() method took almost half of the calculation time: 3 floor operations took the same amount of time as one trilinear interpolation. Since we could not belive that the floor-method could produce such a enourmous overhead, we wrote a small test program that reproduce";     System.out.printf("COunt is %d ",(int)messagePageCount(message));    }  public static double messagePageCount(String message){     if(message.trim().isEmpty() || message.trim().length() == 0){         return 0;     } else{         if(message.length() <= 160){             return 1;         } else {             return Math.ceil((double)message.length()/153);         }     } }   I don't really like this piece of code and I'm looking for a more elegant way of doing this. With this, I'm expecting 3 and not 3.0000000. Any ideas?


New kitchen cabinets and floor, which first?

I plan to rebuild the kitchen, installing new cabinets as well as a new floor (either wood or laminate).  Should I lay the floor first and then mount the cabinets on top? Or should I mount cabinets to the subfloor first, and then lay the new floor around them?  Since I also intend to remove one wall from the kitchen, the actual positions of the cabinets will change, so I intend to fully remove both cabinets and floor before I do anything. Also, I intend to do as much as possible by myself, without contracting out.


What's the difference between `su -` and `su --login`?

From 's man page:  For  backward  compatibility, su defaults to not change the current directory and to only set the environment variables HOME and SHELL (plus USER and LOGNAME if the target user is not root).  It is recommended to always use the  --login option (instead of  its  shortcut -) to avoid side effects caused by mixing environments.  ...  -, -l, --login     Start the shell as a login shell with an environment similar to a real login:          o      clears all the environment variables except TERM          o      initializes the environment variables HOME, SHELL, USER, LOGNAME, and PATH          o      changes to the target user's home directory          o      sets argv[0] of the shell to '-' in order to make the shell a login shell   It's hard to tell if there's any difference between - and --login (or supposedly just -l). Namely, the man page says "instead of its shortcut -", but all these options are grouped together, and I don't see an explanation of the difference, if it exists at all.  UPD I checked the question, which is supposed to . The question is basically about difference between su and su -. And I'm asking about difference between su - and su --login. So no, it doesn't solve it at all.


I came to work today and I saw the transaction log with 441GB, using almost all disk space. I use SQL Server 2012 and have Full backup, but somehow I lost control of the t-log. So, I need to do 2 things: first, clear the log, so I have the disk space back and control it. I thought to control it doing daily backups. But I just can't figure how to reduce it. Shriking is not a good thing to do, and anyway will take AGES to do it. I've try to bakcup the log like this: Backup Log DB_1 TO DISK = 'Nul:' but nothing changed. So what exatcly can I do to fix this situation?  Thank you!


Create shapefile of bookmark extents and/or automatically print bookmark extents to PDF?

Is it possible to export the extents of all bookmarks in an active map document to a shapefile containing the polygons of the shape and/or to automate the print to PDF of all the bookmark extents?  The code for doing this with extents at


Error converting NVARCHAR to BIGINT when in SUBQUERY with WHERE clause after invalid records filtered

I have a table that has an NVARCHAR column that contains data that cannot be converted to BIGINT.  I'm well aware of that and have filtered it out using ISNUMERIC(BB.NVARCHARCOL) = 1.  Despite this, I still get an error when trying to query the data stating that Error converting data type nvarchar to bigint.  The following works fine (no errors reported by SQL):  SELECT * FROM myNormalTable AA INNER JOIN myBadTable BB ON BB.NVARCHARCOL = AA.MYBIGINTCOL WHERE ISNUMERIC(BB.NVARCHARCOL) = 1   The following throws the error:  SELECT * FROM (     SELECT *     FROM myNormalTable AA INNER JOIN myBadTable BB ON BB.NVARCHARCOL = AA.MYBIGINTCOL     WHERE ISNUMERIC(BB.NVARCHARCOL) = 1     ) ZZ  WHERE ZZ.MYBIGINTCOL = 1234   This variation also throws the error:  SELECT * FROM (     SELECT *     FROM myNormalTable AA INNER JOIN         (SELECT CAST(NVARCHARCOL AS BIGINT) NVARCHARCOL FROM myBadTable WHERE ISNUMERIC(NVARCHARCOL) = 1) BB       ON BB.NVARCHARCOL = AA.MYBIGINTCOL     ) ZZ  WHERE ZZ.MYBIGINTCOL = 1234   Keep in mind that this does not error and returns all the records successfully...  SELECT CAST(NVARCHARCOL AS BIGINT) NVARCHARCOL FROM myBadTable WHERE ISNUMERIC(NVARCHARCOL) = 1   I was able to find a solution, which was to convert my BIGINT to NVARCHAR in the subquery:  SELECT * FROM (     SELECT *     FROM myNormalTable AA INNER JOIN myBadTable BB ON BB.NVARCHARCOL = CAST(AA.MYBIGINTCOL AS NVARCHAR)     WHERE ISNUMERIC(BB.NVARCHARCOL) = 1     ) ZZ  WHERE ZZ.MYBIGINTCOL = 1234   If I insert the records into a temporary table:  SELECT CAST(NVARCHARCOL AS BIGINT) NVARCHARCOL INTO #TEMP FROM myBadTable WHERE ISNUMERIC(NVARCHARCOL) = 1   I can use that temporary table in a subquery successfully:  SELECT * FROM (     SELECT *     FROM myNormalTable AA INNER JOIN #TEMP BB ON BB.NVARCHARCOL = AA.MYBIGINTCOL     WHERE ISNUMERIC(BB.NVARCHARCOL) = 1     ) ZZ  WHERE ZZ.MYBIGINTCOL = 1234   What in the world is going on?  It seems like SQL refuses to use the subquery to get a smaller result set before running the outer query, it wants to use the whole table regardless of what I do.  SQL Server 2012 Developer Edition


What if my question is technically a duplicate, but the original question was never answered?

I'm wondering what the generally accepted/community-endorsed etiquette is in this situation. Ideally I would like to push the original question back onto the front page, as if it were a new question (because it is for me); but editing it seems strangely invasive (?). I believe I could post my own "answer" simply saying that I am having the same problem, and I think that would also make the question reappear on the front page; but that seems suboptimal since I wouldn't really be providing an answer.  Should I simply ask the question again, provide a link to the original question and accept the imminent "Closed as exact duplicate"? Perhaps that would be easiest.


Although the topic isn't quite new and relevant, I cannot figure out one thing.  When I use Python 2.7.8 (x86) IDLE on x64 Windows 7, Intel core i5 760, I found that my machine has odds in multiplying particular float/double numbers, but not all of them!  >>> print 0.01 == 0.1 * 0.1 False >>> print (1/10.0) ** 2 == 0.01 False >>> print 0.01 - 0.1 ** 2 -1.73472347598e-18  BUT: >>> print 1/10.0 * 1/10.0 == 0.01 True >>> print 0.015 == 0.05 * 0.3 True >>> print 0.0002 == 0.01 * 0.02 True >>> print 0.0001 == 0.01 * 0.01 True ... (and so on. Always true.)   (!) I am not talking about such difficult (for PC and... for me) operations like taking in power, log, exp. I'm talking about multiplying, divison, adding and substracting.  I read  and  to dive deeply. It says that actually using comparisons such like 1.1 == 1.1 can lead to false. In my case, it is not. Thus, my computer rounds this float representations into the same bits represetations.  Using Java 7 with Eclipse compiler gives me the same results. Thus, I can conclude that the result in my case depends only on my machine epsilone (register precision), which is less than 1.734723475976807e-18, but not on compiler and programming environment.  The question is why my machine fails to compare 0.01 == 0.1 * 0.1 whereas causing no disrepancy with other multiplying examples (I tried a lot to confuse my PC!) ?


In Visual Studio C++, what are the memory allocation representations?

In Visual Studio, we've all had "baadf00d", have seen seen "CC" and "CD" when inspecting variables in the debugger in C++ during run-time.  From what I understand, "CC" is in DEBUG mode only to indicate when a memory has been new() or alloc() and unitilialized.  While "CD" represents delete'd or free'd memory.  I've only seen "baadf00d" in RELEASE build (but I may be wrong).  Once in a while, we get into a situation of tacking memory leaks, buffer overflows, etc and these kind of information comes in handy.  Would somebody be kind enough to point out when and in what modes the memory are set to recognizable byte patterns for debugging purpose?


Internet doesn't work decently, I'm hardly regretting for chosing Ubuntu

The internet connects but it doesn't works decently, i can't download or update things using the terminal or the ubuntu program central because the server doesn't answers or because it asks for constant authentication and then doesn't downloads it.   At Firefox (I can't even download Chrome) websites don't load well, but when I download certain things, like a Windows 7 ISO the internet speed is completely normal. I guess it can be some kind of blocking, i don't know.   Thanks for the attention.


I am having a hard time grasping the concept of the P-value..  I've read some of the posts in here and on internet, but one thing seem to be missing for me.   Usually we look at the probability of values being higher than the sample mean, and if this probability is lower than 0.05($\alpha$) it would be rejected, which don't make sense.   The probability says that values above test-statstics the would occur less time, but why would that lead to rejection of null hypo?  as it is stated a lot of places     In technical terms, a P value is the probability of obtaining an   effect at least as extreme as the one in your sample data, assuming   the truth of the null hypothesis.   If the probability of getting extreme values are higher than 0.05, then the null hypo will be accepted?.. which makes no sense.


Showing $\mathbb{Q}$ is homeomorphic to $\mathbb{Q}^2$

Let $\mathbb{Q}$ be the set of rationals, as relative topology to $\mathbb{R}$.   How to show that $\mathbb{Q}$ is homeomorphic to $\mathbb{Q}^2$?  More general, if $T$ is a countable dense space(no isolated poiont) with every singleton closed, how to show that $T^2$ is homeomophic to $T$.


How to replace lubuntu for ubuntu desktop ?

I know this may sound stupid, but I was having a problem with my ubuntu, it wasn't loading.   So I was googling solutions and one of them was purging something and installing something   so I did it. The proccess took a couple hours, and it didn't work. It turns out it was something to do with my graphics card (which I fixed), but when I loaded it up, I had lubuntu.   Is there any way of reverting back to ubuntu?   Or is lubuntu better to keep? I have no idea, please help.


Why do Fred and George Weasley not discover Peter Pettigrew?

Fred and George come into possession of the Marauder's Map in their first year when they steal it from Filch's office. At this point, Peter Pettigrew is Percy's pet until he is given to Ron for his first year, two years later.  This gives Fred and George two full years to notice that an extra boy called Peter is sleeping in their older brother's room/bed at night. Given their propensity to prank Percy, and Percy's attempts to be an authority figure over them, I think it would be reasonable to assume that in two years they would have at least looked for him once at night on the Marauder's Map.  Even if they noticed this, thought it was strange but didn't report it, they then have a further two years of Pettigrew belonging to Ron. Even as a pair of teenage pranksters, I'm pretty sure seeing a man you've seen in your older brother's bed, sleeping in your 11-year old little brother's bed is going to set off alarm bells.  This is assuming they don't just immediately recognize Peter Pettigrew's name when they first see it. Harry Potter's story is well known by everyone in the Wizarding World, as McGonagall says, "There won't be a child in our world that doesn't know his name."  Peter is a hero of the Harry Potter story up until he is revealed as a traitor. He gave his life chasing down and confronting the betrayer of Harry's parents. I should imagine his name would also be well known to Fred and George, as they will have heard the story enough times.  Why don't Fred and George say anything?


Migration notice disappears when refreshing edited post

I think I just observed a glitch which I'm unable to reproduce.   I was watching  and the answer was edited. When I clicked the notification to reload the answer, the migration notice disappeared.


Electromagnetic radiation: Why lower energy radiation( like radio waves) penetrates walls and higher energy radiation(like visible light) doesn't?

How can microwaves pass through opaque objects in spite of having lesser energy than visible light(which doesn't pass through opaque surfaces)?? What makes an object "opaque" in the first place?


Compatible version of "Adobe Shockwave Player?"

Is there a Ubuntu compatible version of the "Adobe Shockwave Player?" I'm running Firefox and when I try to bring up one of my School's websites it says missing plugin. When I click on "Install missing plug-in" it says none found, so when I click on manually install plug-in it takes me to Adobe Shockwave Player installation, but there is no ubuntu version to install??? On the Firefox plug-in finder service it says "Unknown Plugin (application/x-director)


Two domains (when SSL) on same directory

My apache2 configuration is problematic: I've two website on a server:   domain1.tdl domain2.tdl   One of them (domain2.tdl) must be and is accessible on port 443 (with SSL). All domains must be and are accessible by port 80. But when we try to access to domain1.tdl on port 443 the domain2.tdl files are display. So, on port 443, domain2.tdl is accessible by domain1.tdl and domain2.tdl. I don't want it !  My configuration:  domain1.tdl:  <VirtualHost *:80>   DocumentRoot /home/sites/domain1.tdl/www   ServerName domain1.tdl   ServerAlias www.domain1.tdl   ServerAdmin xxx@mail.com   RewriteEngine on   <Directory "/home/sites/domain1.tdl/www">     AllowOverride All     allow from all     Options -Indexes   </Directory> </VirtualHost>  <VirtualHost *:443>   DocumentRoot /home/sites/domain1.tdl/www   ServerName domain1.tdl   ServerAlias www.domain1.tdl   ServerAdmin xxx@mail.com   RewriteEngine on   <Directory "/home/sites/domain1.tdl/www">     AllowOverride All     allow from all     Options -Indexes </Directory>   domain2.tdl:  <VirtualHost *:80>   DocumentRoot "/home/sites/domain2.tdl/web"   ServerName domain2.tdl   ErrorLog /var/log/apache2/site/error_domain2.tdl.log                 CustomLog /var/log/apache2/site/access_domain2.tdl.log combined   <Directory "/home/sites/domain2.tdl/web">     allow from all     Options -Indexes   </Directory>   ServerAlias www.domain2.tdl </VirtualHost>  <VirtualHost domain2.tdl:443>   DocumentRoot "/home/sites/domain2.tdl/web"   ServerName domain2.tdl   ErrorLog /var/log/apache2/site/error_domain2.tdl.log   CustomLog /var/log/apache2/site/access_domain2.tdl.log combined    SSLEngine on   SSLCertificateFile /etc/ssl/private/domain2.tdl/domain2.tdl.crt   SSLCertificateKeyFile /etc/ssl/private/domain2.tdl/domain2.tdl.key   SSLCACertificateFile /etc/ssl/private/domain2.tdl/GandiStandardSSLCA.pem   SSLVerifyClient None    <Directory "/home/sites/domain2.tdl/web">     allow from all     Options -Indexes   </Directory>   ServerAlias www.domain2.tdl </VirtualHost>


Random Forest: Predictors have more than 53 categories?

What is the solution when we want to apply the Random Forest function in R to a predictor with more than 53 categories?  > RandomForestPrediction=function(alpha){ +   d = sort(sample(nrow(MPS), nrow(MPS)*alpha)) +   train<-MPS[d,] +   test<-MPS[-d,] +   myNtree=1000 +   myMtry=5 +   myImportance=TRUE +   mod2 = randomForest(factor(m.Decision)~.,data=train,tree=myNtree,mtry=myMtry,importance=myImportance) +   fitted=predict(mod2,test,type="response") +   return(table(fitted,test$m.Decision)) + } > RandomForestPrediction(0.7) Error in randomForest.default(m, y, ...) :  Can not handle categorical predictors with more than 53 categories.


Can Cheek bone grow bigger and wider in adulthood when you gain weight?

From somewhere, I might have been heard that If you gain weight even in your adulthood when your growth has been finished, Facial bones can grow because obesity causes hormone balance problems(such as Growth hormone) or metabolic abnormalities  and although you lose my weight, grown facial bone don't change to its previous size so you have wider facial bones.   Many Celebrities who became obese and returned to normal weight when they're in adulthood seem like their facial bone has been bigger and wider.   So what I want to know is it possible that facial bones grows bigger and wider in width (espescially temporal bones besides eyes, zygomatic bones) because of hormonal or metabolic imbalance caused by obesity.


Linux processes - Too large for RAM usage. What is it?

This is what I see in my Linux Debian Server:     The values "Size" (1. image) or "VIRT" (2. image) are too big for "RAM usage". What are they?


Virtual function not overloading in derived class

class CommandRoot { protected:     string cmdString = "";     string title = "";     string tags = "";     string description = "";  public:     string getCmdString() {         return cmdString;     }     string getTitle() {         return title;     }     string getTags() {         return tags;     }     string getDescription() {         return description;     }      virtual bool onTrigger() {         return 1;     } };  class CmdFirst : public CommandRoot{     public:     CmdFirst() {         cmdString = "testing1";         title = "";         tags = "";         description = "";     }      bool onTrigger() {         cout << "C";         return 0;     } };  class Player {     NPC *target = NULL;     CommandRoot *cmdList[1];  public:     Player() {         cmdList[0] = new CmdFirst();     }      CommandRoot getCmdList(int n) {         return *cmdList[n];     }      NPC getTarget() {         return *target;     }      bool setTarget(NPC* t) {         target = t;         return 0;     }      string listen() {         string cmd = "";         cin >> cmd;         return cmd;     } };  int main() {     std::cout << "Hello World!\n";      Player* player = new Player();     NPC* firstNPC = new NPC();     player->setTarget(firstNPC);      bool exit = false;     do {         if (player->listen().compare(player->getCmdList(0).getCmdString()) == 0) {             cout << "A";             cout << player->getCmdList(0).onTrigger();         }         else         {             cout << "B";         }     } while (exit == false); }   The following line is calling the parent's virtual function instead of the derived class.  cout << player->getCmdList(0).onTrigger();   I have a feeling it's because the data type of the array is the parent class, but that shouldn't prevent the array element from being assigned the data type of the derived class, then calling that class's function.


Need a better recourse against frivolous moderator action

I asked  by a moderator who incorrectly thought that it was a duplicate of another question which was hardly even similar.  At this point I am stuck:   I cannot reopen the question. This requires 5 votes from 5 people who each have unreasonable amount of rep. I don't know that many people who are that active on an obscure meta-website. I cannot delete the question. I cannot contact the moderator, or indeed any moderator, to ask them to undo their error.


Have a look at the diagram above.  It shows an op-amp with negative feedback.  Ignoring the feedback loop for now, the voltage (pressure) coming from the 5V battery, acting on the inverting pin, should amount to 5V.  Now, I understand that the feedback loop is adjusting the voltage on the inverting pin to make it equal to the reference (non-inverting) pin or 3.3V and you can clearly see that the output is producing a negative voltage to achieve this.  I also understand that the input pins have a very high impedance.  What's confusing me is how it actually does this (considering my rudimentary knowledge of electronics).  I considered that the output was sinking some of the current produced (by the battery) to alleviate the pressure on the input pin and bring it down to 3.3V, but clearly that isn't the case (since the 1 ohm resistor is passing 5A).  So, I'm struggling to understand how 5V of pressure from the battery results in 3.3V on the input pin.  I'd appreciate it if somebody could explain this in an intuitive way.  Much Appreciated.  Edit:  Many thanks for your all your comments and insights.  The circuit itself is a distraction.  At the heart of this is my attempt to understand op-amp and negative feedback behaviour.  I wanted to understand the following:  a) if you could apply an input voltage to the op-amp that was different to the reference voltage (more specifically that you have voltage "pressure" acting on the input pin that is higher than the reference pin). This also assumes that you have some other input other than the feedback loop.  b) if a is true (and assuming that the op-amp adjusts its output to equalize the voltage on both pins) how is this achieved?  Clearly the feedback loop plays a part and the only thing I could think of was that the output was sinking current to take the pressure off the input pin and thus explain the voltage drop between the between the higher voltage source and the voltage appearing at the input pin.  Incidentally, the question would still stand even if you had a resistor between the source voltage and the feedback loop/input pin junction.  A better circuit example is shown below (taken from ):    But with V1 set to some voltage other than 0V.  Final Edit (Promise!):  From the electronics tutorial article linked above:  "This negative feedback results in the inverting input terminal having a different signal on it than the actual input voltage as it will be the sum of the input voltage plus the negative feedback voltage giving it the label or term of a Summing Point."  This is exactly where my confusion lies.  As I understand it voltage is simply pressure exerted measured with respect to some reference point (usually ground).  What the paragraph above is suggesting is that at the "summing point" there's a change in voltage (pressure) because of the addition of the feedback voltage.  Intuitively, I'm thinking that the output pin "sinks" some current to reduce the voltage at the summing point.  But that sinking of current would reduce Iin (since no current flows through the inverting pin).  The result would seem to be that Vin drops.  But is this the case?


What the LaTeX code is for this fancy 0?  I have been looking for the LaTeX code for this zero-like symbol and I can't seem to find it anywhere.


What does "ACPI PPC Probe failed Starting version 219 " mean exactly?

I've recently installed Xubuntu 15.04 on my desktop  The video playback was kinda slow and buggy so I installed the nvidia drivers (the gpu is an onboard 7025)  As some people, I get the "ACPI PPC Probe ..." message, but after 20 seconds or so, the system boots just fine, also the video playback is fine and there doesn't seem to be any graphic issues  My question is: Should I be worried about that message popping every time I boot? and what does it exactly means?  I didn't found any answers to that, just workarounds for people who can't pass the message


How to define math enviroment $[math things]$ to be always colored some way?

So, I was doing some math texting and I am one of those people that like to use color on texts; So I was wondering if there is a way to make latex always color the in between $$ text to be of a certain color.


I will first say, it has been a couple years since I have written Greasemonkey/Userscripts last and I am a bit rusty with my JavaScript, and this should be a simple question.  I am trying to detect if a specific textbox has focus. (I plan on running a script when a specific box has focus and the user presses the enter key.)  My issue is that the site does not have an ID tag for the textbox, only a name tag <input type="text" size="20" value="" name="Category_Product_Search"></input> and nearly all of the tutorials that I see requires the textbox to have an ID tag.  Thank you,  Charles


How does flatulence travel through the room when opening a window?

When the smell in my room seems to be full of flatulence(it wasn't me), what happens with the gases when I open a window? Detail: It is winter and the air outside is cold whereas the air in the room is warm. When I close the window the smell of flatulence comes back nearly right away. What does the process of diffusion look like here?  And would the smell be dispersed faster if I sprayed another odor into the room?


Why isn't an infinite, flat, nonexpanding universe filled with a uniform matter distribution a solution to Einstein's equation?

In Newtonian gravity, an infinite volume filled with a uniform distribution of mass would be in perfect equilibrium. At every point, the gravitational forces contributed by masses in one direction would be exactly counterbalanced by those in the opposite direction.  But when Einstein tried to apply General Relativity to possible cosmologies, he found it necessary to include the cosmological constant in order to get a static universe.  In qualitative terms, it seems to me that the gravitational stresses that the masses would impose on the spacetime should all cancel out, and likewise, that the resulting flat spacetime should have no effect on the motion of the masses.   However, the math of the situation is beyond my current skills, so I'm asking how it produces the nonequilibrium condition?  (I realize that such an equilibrium solution might not be stable, and that there are many other very good reasons to believe in an expanding universe, so I'm not trying to promote any alternative theories. I'm just curious about this particular point. )


Texture Painting - Paint Not Fully Applying (Not Brush Weight)

Good afternoon,  I have been working on creating some pieces of terrain in Blender 2.78 and have not had any issues with Texture Painting until today.  When I went to start painting, instead of the texture I want solidly covering the ground, it does nothing but draw my brush circle and then when I drag, it gives a dashed line from where I started to where the circle is.  If I drag far enough, it does paint, but it is always transparent and I can see the grid squares.   I am guessing it is some kind of setting that I accidentally hit a shortcut for, but it is driving me crazy and halted my progress last night.  Thank you for any assistance I can get.  EDIT:  Solved the question about the lag behind in the painting, but now I don't know why with even full weight I cannot cover the grid image...  And here are my brush settings.


Is it acceptable to ask how a professor would like to be addressed through email?

I am an undergraduate student working for a professor this summer. Up to this point, I have referred to the professor as Dr. LastName. I have met his research group; his graduate and PhD students refer to him by his first name. Moreover, he signs his emails to me with his first name.  Is it acceptable to ask, through email, how he would like to be addressed? Or is it proper etiquette to wait for him to correct me? I would prefer to ask him in person, but I will not be seeing him for several weeks.   For example, in an email: "I have noticed that you sign your emails as 'FirstName'. Would you prefer that I address you as 'FirstName'?"


If I encounter a situation where I suspect my machine's RAM might be going bad, I might need to launch memtest86+ to check it. How can I do this using Ubuntu? Are there different methods for launching it whether Ubuntu is already installed?  * (This is intended to be a canonical question easy for new users to follow.)


I want to leave my Mac awake overnight so it syncs 4GB of data from Dropbox. I need to prevent the machine from going to sleep because that pauses the Dropbox sync  I've been using  to keep the computer awake, but it also keeps the computer unlocked which is insecure.  I need a method to keep my Mac awake (so that Dropbox can sync overnight) but also locked (so no one can read my email). It'd be great if this method also turned off the screen (to preserve power), but honestly that's not even 100% necessary.


Show if $f(x+y)=f(x)+f(y)$ for all $x,y$ and $f$ is Lebesgue measurable, then $f$ is continuous.

I'm trying to solve this problem $(5.8)$ from Bass' Real Analysis for Graduate Students:     Show that if $f:\Bbb{R}\to\Bbb{R}$ is Lebesgue measurable and $$f(x+y)=f(x)+f(y)$$ for all $x,y\in\Bbb{R}$, then $f$ is continuous.   The first thing I note is that it suffices to show that $f$ is continuous at $0$, since if this is the case then for any $\epsilon>0$ and $x_0\in\Bbb R$, there exists $\delta>0$ such that $|x|<\delta$ implies $|f(x)|<\epsilon$; in particular, replacing $x$ with $x-x_0$, we see $|x-x_0|<\delta$ implies $|f(x)-f(x_0)|=|f(x-x_0)|<\epsilon$.  Now, what I need to show then is that $f^{-1}(-\epsilon,\epsilon)$ contains some interval at the origin. I know that this set is Lebesgue measurable because $(-\epsilon,\epsilon)$ is Borel measurable, and I know it contains $0$ since $f(0)=0$, but I'm not sure how to show it contains $(-\delta,\delta)$ for some $\delta$. I haven't used the fact that the set is Lebesgue measurable, so obviously theres some way I can use that but I'm not seeing it.  Any suggestions?  edit: because this has been tagged as a possible duplicate, I should point out that I'd prefer to figure out if the solution I am working on will work, rather than just copy a completely different solution outlined by some other user.


Cannot Find Parameter Estimation using Maximum Likelihood Estimation

Given probability density function  $$p(x|\phi)=\begin{cases}\dfrac{\phi}{x^2}&\phi<x<\infty\\0&\text{others}\end{cases}.$$  I want to find an estimation for the $\phi$ parameter with the maximum likelihood estimator.  First, I find the likelihood function as below $$L(\phi)=\dfrac{\phi}{{x_1}^2}\dfrac{\phi}{{x_2}^2}\ldots\dfrac{\phi}{{x_n}^2}=\dfrac{\phi^n}{\prod\limits_{i=1}^n{x_i}^2}.$$  Then I determine the log likelihood $\ln L(\phi)$,  $$\ln L(\phi)=n\ln \phi-2\ln\prod\limits_{i=1}^n{x_i}.$$  Now, I try to find the maximum of the log likelihood,  $$\dfrac{d}{d\phi} \ln L(\phi)=\dfrac{n}{\phi}=0.$$  Then I have $n=0$.     Problem: I can't find the $\hat\phi$. How to find the parameter   estimation of $\phi$ using maximum likelihood estimator?   Please help me. Thanks before.


On the equation $\left( x^2+100 \right)^2 = \left( x^3 -100 \right)^3$

Solve the equation $$\left( x^2+100 \right)^2 = \left( x^3 -100 \right)^3$$  I have no idea what to do. The equation is part of an exercise that goes as follows: Let $f:\mathbb{R} \rightarrow \mathbb{R}$ be a function such that $$f(f(x)) = x \quad \forall \; x \in \mathbb{R}$$  Prove that $f$ is $1-1$ or a bijection. ( done ) If $f$ is strictly increasing , then prove that $f(x)=x$. ( done ) Solve the equation $\left( x^2+100 \right)^2 = \left( x^3 -100 \right)^3$ using the above.  No idea how to combine the above to solve the equation. I'm interested in solutions that use high school methods preferably no derivatives; just pure functions (e.g composition or simple algebraic manipulations ) Wolfram Alpha gives $x=5$ as a solution.


Is it possible to freeze task order in htop?

In htop I would like to order processes by CPU utilization but the top processes bounce back and forth so it is difficult to view the details of each process. I would like to be able to sort in whatever preferred order then lock that order while each field continues to update.


Install Ubuntu on Second Internal Drive fully separate from Windows

Let's say I have Drive C:, and Drive D:.  Drive C: has Windows 7 on it, and Drive D: is currently completely empty.  I would like to install Ubuntu on Drive D: without adding a bootloader/GRUB to the regular startup of my computer. So If i restart it, or turn it on, it just normally boots to Windows 7, and once in Windows 7, it can't even access or detect Drive D:  But if I enter BIOS or advanced startup during a boot, and choose to boot from Drive D:, then I boot into Ubuntu.  Is this possible? Thanks for your time.


I want to find a file and goto his directory. I made a bash script : #!/bin/bash  FILE=$1 FILEPATH=`find . -name "$FILE"`  if [ -f "$FILEPATH" ] then     cd $(dirname "$FILEPATH") fi  But this script does not work. I saw on  that I have to add exec bash or $SHELL but it create a new bash prompt ans display my welcome message. How can I do ? I just want a script, alias or something to find a file and go to the directory containing that file.


Add watermark to bottom right with spectrum

The output image should look like this below:    My command is:  String[] command1211 = {"-i", inputPath_audio.mp3,                 "-preset", "ultrafast",                 "-filter_complex",                 "[0:a]showspectrum=s=1280x720,format=yuv420p[v]",                 "-map", "[v]", "-map", "0:a", "-c:v", "libx264", "-c:a",                 "copy", filePath.mp4};   I want to add watermark to the bottom right with this command.  And this is my command for the watermark:  "[1] scale=70:70 [tmp]; [0][tmp]overlay=main_w-overlay_w-10:main_h-   overlay_h-10"  I achieved it with the following query:  String[] command12111 = {     "-i", inputPath_audio,     "-i",imagepath.getAbsolutePath(),     "-preset", "ultrafast",     "-filter_complex",     "[0:a]showspectrum=s=1280x720[spec];      [1]scale=70:70[watermark];[spec][watermark]overlay=main_w-      overlay_w-10:main_h-overlay_h-10[output]",     "-map", "[output]", "-map", "0:a", "-c:v", "libx264",       "-c:a",     "copy", filePath };


A cardinal $\kappa$ such that $2^{\lambda}<\kappa$ for all $\lambda<\kappa$ is regular?  I would appreciate very much an answer


Modular Arithmetic: What is the solution in this case?

I can't find the multiplicative inverse of 3?  This is what I did.  6/3 * (MI of 3) (mod 6)  6/3 (mod 6)  A= 3  B= ?  M = 6  (A * B) % M = 1  (3 * B) % 6 =1   Some body please guide me how can I solve this?  Zulfi.


I would appreciate to understand the main steps giving the evaluation of this series: $$ S=\sum_{n=1}^{\infty} (-1)^{n-1}\frac{H_{2n}}{n}$$ where $H_n$ is the harmonic number. I've tried with no success to obtain this sum with the help of Wolfram Alpha.


How long will the status "awaiting decision" after minor revisions last?

I submit my manuscript to IEEE WCL on 4/14/2019 (Minor revision). On 4/26, the status on ScholarOne changed to awaiting decision. But until now, 5/17, the status are still "awaiting decision". I want to know how long will this status last. Can I send a email to AE?


Why can't friends or family members write recommendation letters for graduate admissions?

When browsing their web sites, I noticed that apart from those listed academic requirements by different universities, they all require at least two reference letters from applicants, but they did not officially state that who should write those recommendation letters.Although I have collected several recommendation letters from my former teachers, I found it was quite hard to reach my former teachers whom I had not contacted for many years.It almost took me two months from the day I sent out my first email to the day I got enough recommendation letters from my former teachers. It has been puzzling me why the recommendation letters should be written by school lecturers or professors.The people who know you best are business partners, your close friends, family members like your parents, siblings, why they are not qualified to write the recommendation letters for me?


Are Java 8 streams slower than hand written loops?

I am trying to benchmark two different implementations of a Java function that checks whether a number contains at least one even digit. The first implementation uses hand written loop, while the second uses a stream.  public class StreamTest {  public boolean containsEvenDigit(int n) {     char [] digits = String.valueOf(n).toCharArray();     for(char d : digits) {         if(d % 2 == 0) {             return true;         }     }     return false; }  public boolean containsEvenDigitStreams(int n) {     return String.valueOf(n).chars().anyMatch(i -> i % 2 == 0); }  public static void main(String[] args) {     System.out.println("============WITHOUT STREAM============");     long start1 = System.nanoTime();     for(int i = 0 ; i < 1_000_000; i++) {         (new StreamTest()).containsEvenDigit(11215 + i);     }     long duration1 = (long)(System.nanoTime() - start1)/1_000_000;     System.out.println("Duration : " + duration1 + " milliseconds.");     System.out.println();      System.out.println("============USING STREAM============");     long start2 = System.nanoTime();     for(int i = 0 ; i < 1_000_000; i++) {         (new StreamTest()).containsEvenDigitStreams(11215 + i);     }     long duration2 = (long)(System.nanoTime() - start2)/1_000_000;     System.out.println("Duration : " + duration2 + " milliseconds.");     System.out.println();  }   }  In the main function, I am not outputting the return values of the functions being tested to eliminate I/O overhead. The outcome shows that the implementation using streams performs much slower than the ones using loop.  ============WITHOUT STREAM============ Duration : 119 milliseconds.  ============USING STREAM============ Duration : 771 milliseconds.   Does this mean that Java 8 streams are slower than hand written loops?   Update: I am now using JMH to benchmark the two functions.   public class MyBenchmark {  private boolean containsEvenDigit(int n) {     char [] digits = String.valueOf(n).toCharArray();     for(char d : digits) {         if(d % 2 == 0) {             return true;         }     }     return false; }  private boolean containsEvenDigitStream(int n) {     return String.valueOf(n).chars().anyMatch(i -> i % 2 == 0); }  @State(Scope.Thread) public static class MyState{     public int x = 1_357_997_531; }  @Benchmark public void testLoop(MyState state, Blackhole blackhole) {     boolean retVal = containsEvenDigit(state.x);     blackhole.consume(retVal); }  @Benchmark public void testStream(MyState state, Blackhole blackhole) {     boolean retVal = containsEvenDigitStream(state.x);     blackhole.consume(retVal); }  public static void main(String[] args) throws RunnerException {     Options opt = new OptionsBuilder()             .include(MyBenchmark.class.getSimpleName())             .forks(1)             .build();      new Runner(opt).run(); }   }  This time too the hand written loop beats the stream by an order of about 8. Here is the result summary.  Benchmark                Mode  Cnt        Score        Error  Units MyBenchmark.testLoop    thrpt  200  3578620.170 ± 207106.919  ops/s MyBenchmark.testStream  thrpt  200   433884.589 ±  23993.270  ops/s


Fix a java.lang.NullPointerException error in a queue

So I implemented a queue in Java and I was Trying to implement a procedure that inserts an element at the end of the queue.But I get an error message "java.lang.NullPointerException".I am new at this and I don't know what this means or how to fix it.  class Node {  public int ielement; public String selement; public Node next;     public Node(int iel, String sel) {      ielement = iel;     selement = sel; } class Implement {   private Node head; private Node tail;   public Implement() {     head = null;     tail=null; } public void InsertAtTheEnd(int iel, String sel){     Node newNode=new Node(iel,sel);     if(!Empty())//if the queue is empty{     tail.next=newNode;     tail=newNode;}     else{     newNode.next=head;     head=newNode;         }  }     public static void main(String[] args) {     Implement k = new Implement();    k.InsertAtTheEnd(1, "b");    k.InsertAtTheEnd(3, "bes");    k.InsertAtTheEnd(4, "kes");}


How can I include value of sharepoint's version column in a word document?

I'm trying to work out a way to display the contents of the version column from SharePoint (i.e. the value that changes every time a file is checked in) as a field (or something similar) inside of a Word document.  Ideally, I'd like to know how to configure SharePoint so I could click something like "Insert > Quick Parts > Document Property > Version", and it would include the version in the document.  The goal is to make it easier for someone to correlate a printed version of a document with the version history of SharePoint.  I have been able to add editable text columns to the Document content-type and have them show up as document property quick parts.  I've also been able to add a calculated column which gets the version as a text string... however this calculated column isn't showing up in Word as a document property.  (Perhaps I'm missing a setting on the calculated column)


How do I recover delete files with just with just the .jpg extension in Ubuntu?  I already tried "photorec", but it recovered all the files.


Given inner parabola curve $y=0.1x^2$ and thickness $d$, find outer curve

As illustrated in the picture, the thickness $d$ is known and the parabolic formula of the inner (red) curve is given, say $y = 0.1x^2$. Then, how to obtain the formula for the outer (green) curve? I think the formula should be in this form: $y_2 = kx^2 - d$ but I have no idea how to derive the value of $k$. Can anyone give me some hint? Thank you!


I was doing the problem $$ A+B=AB\implies AB=BA. $$  $AB=BA$ means they're invertible, but I can't figure out how to show that $A+B=AB$ implies invertibility.


Trying to find a tall tale about dirt so fertile that someone steals it

I'm looking for an old tall tale - perhaps a Paul Bunyan story? - in which our hero has dirt so fertile that it will grow anything.  One of our hero's unscrupulous neighbors comes over to visit wearing spiky high-heeled shoes and leaning heavily on a cane, which annoys our hero because it puts holes in his lawn, and if he doesn't stamp the holes out quickly they'll grow larger - everything grows in this dirt.  The neighbor is later seen to be stealing the dirt - he scrapes the dirt off his shoes into a bucket, and his cane is hollow.


What are the consequences of using a smaller power brick on a laptop?

I have found many similar questions, but no one fully satisfying.   Please correct me if wrong, but from what I understand the Voltage of the power supply should match closely the specs, while the Power (Amperes or Watts, which for a fixed voltage are proportional to each other) supplied is referred to the maximum possible output the brick is capable of and should "enough", as the laptop will drain at any moment the power it needs.  What I would like to understand is what are the scenarios if I used a brick, for example a 60W one while the official one is 120W: - I guess most of the time the laptop would use less than 60W, thus working correctly - at times the laptop will require more than 60W     - Do most modern brick self-limit the output or do they risk to burn?      - Given the the brick does not deliver enough power, will the laptop start to drain the battery or malfunction? (And if draining the battery, just for the missing power, or will ignore the power brick and start running completely on battery?)  And finally: Can I use a smaller power brick (easier to carry around) given that MOST of the time will provide enough power, counting on the fact that the battery will make up for those short moments of high drain, without malfunctions or hardware breaking?  Thanks :)


Which meaning does "Mad" have in the title "Mad Max"?

It might well be the fact that I come from a non-English speaking background, so please bare with me on this one. However, it makes me wonder, what meaning does "Mad" carry in the title of Mad Max: Fury Road? Based on Google's built-in dictionary, first meaning is "Insane or ill" yet Max doesn't look like one. Does it just mean "angry"?


Why are plane lights dimmed before landing at night?

When landing at night on most planes they say that due to safety regulations the lights will be dimmed and if you want to continue reading you can use your overhead lamp(it could be that this only happens in Europe I am not sure). I wonder what is the reason for this? What safety does dimming the lights add?


What is an appropriate encounter in Deathwatch

I am wondering how to judge what kind of encounter will be right for my group. I would like to design challenging encounters, but not ones which will be impossible or far too easy.  How will I know if I can present them with a demon, for example, without killing them outright or whether a horde of chaos heretics is far too easy for them?  I've read  to a similar question, which says:     EG: PC's average Toughness is 40... so T=4. Average torso armor was 4.   Weapon damage was averaging 8 (1d10+2), with Pen 4.      NPC side had T6 and AV8, average damage 7 (1d10+3), pen 0...      PC Side was 8+4 vs 6+8, for -2 NPC side was 7+0 vs 8, for -1.   Now, it has to be shifted to positives; move both up the same amount   so the lower is +1. In this case, PCs 1, NPC's 2. Now multiply by the   numbers. I had 7 PC's, and used 4 NPC's... for 7 and 8. Then multiply   by average skill as a percentage... PC average was 45, NPC was 33, for   7*0.45=3.15 and 8*0.33= 2.64. It's clear the PC's have an advantage,   but a very weak one... and since in the initial stage, both were   negatives, it's going to involve a lot of armor staging.   But I don't understand why he's multiplied the PCs' WS with the NPC damage (or at least that is what it looks like for me). Can anyone explain this more clearly?


The Android app does not have obvious access to the help center

I just had that rare case of a newbie who barges in with off-topic content, it gets closed, and instead of starting to spew invective, politely asks "what are the rules". Currently, his or her  is on Cooking meta. The question text mentioned a curious thing:  Admittedly I only use the app so maybe that is where I am going wrong but I can't seem to find any rules about what can be asked, what sort of answers are allowed and what format it all has to be in.  The whole network already has a problem with getting new users to accept our high-moderation and strict-rules culture, especially when their expectations are set by general discussion forums which don't restrict themselves to objective non-poll questions. I think that the rules might be even harder for the users of sites outside of the trilogy, because the interested population is not made up of geeks who automatically value the information-content-aspect of information  above the other aspects. Even for users who have easy access to the help center, there is lots of friction to get accustomed to our rules (and many leave in anger instead). So, for the people who are willing to RTFM, I think that we should make the access easy. I admit that I hadn't expected somebody who hasn't used the site to start using the app, but now we have observed it happening. So, I think that it is important to include a link to the help center in an easily accessible place in the app. Even if at the beginning, it cannot be brought into the app format and has to be a link which opens in the mobile browser, it will be useful for the poor confused new users.


What is the correct plural of "octopus"?

What is the correct plural of octopus:   Octopi? Octopodes? Octopuses? Something else?


How can I fix this apt-get update error?

I'm using Ubuntu 15.04. I was not able to update so I followed the instructions from  answer. Now I'm getting these error messages when I run sudo apt-get update:  E: Type '<!DOCTYPE' is not known on line 1 in source list sud/etc/apt/sources.list  E: The list of sources could not be read.   How can I fix this?


I'm on Windows 8.1 and I'm having a strange problem with my home network (I'm connected via ethernet to an Sitecom ADSL+ router).   Since yesterday morning, it's very difficult to reach every Google website (Google Search, Google News, YouTube, Blogspot, ...), while I can browse every other website, from Facebook to the most hidden website of the net (well, not literally).  If I try to open Google.com, most of the times (like 9 over 10) the browser stays on the "waiting for google.com" status.  Browsers   Tested on IE11, Firefox, Chrome. Same results. Tried to wipe all the caches, cookies and so on Tried to reset all the browser's settings to default   Network   ping google.com returns "good" results! (ping works with latency around 60ms) Tried to change the DNS, from the default given by my ISP to Google's and also OpenDNS. Nothing changes. Tried to flush the DNS cache with ipconfig /flushdns Tried to reboot the router (but I have not reset the configuration yet) I'm on IPv6 (10/10 on test-ipv6.com)   PC and other devices   All the PCs in this network have the same issue Instead, my mobile phone (that uses a totally different network) can browser Google and every other website without problems (so...well... Google works!).   What could be the cause? Could it be an ISP fault?  EDIT: This is a tracert google.com test:  C:\Users\Alessandro>tracert google.com  Traccia instradamento verso google.com [2a00:1450:4002:803::1003] su un massimo di 30 punti di passaggio:    1    <1 ms    <1 ms    <1 ms  2a01:2000:2001:fb07:66d1:a3ff:fe07:de81   2     *        *        *     Richiesta scaduta.   3    58 ms    60 ms    60 ms  2a01:20f0:2005::4   4     *        *        *     Richiesta scaduta.   5     *        *        *     Richiesta scaduta.   6     *        *        *     Richiesta scaduta.   7    63 ms    70 ms    71 ms  ibs-resid.milano30.mil.seabone.net [2001:41a8:20 :2::5]   8     *        *        *     Richiesta scaduta.   9    77 ms    78 ms    78 ms  2001:4860:1:1:0:1a6a:0:18  10    66 ms    63 ms    64 ms  2001:4860::1:0:458d  11    64 ms    63 ms    63 ms  2001:4860:0:1::207  12    66 ms    63 ms    62 ms  mil02s05-in-x03.1e100.net [2a00:1450:4002:803::1 003]  Traccia completata.


Books like word power suggest "Ramu and I are going to theatre today" may be wrong. Does "Ramu and me are going to ..." a right structure.


JSON datetime between Python and JavaScript

I want to send a datetime.datetime object in serialized form from Python using  and de-serialize in JavaScript using JSON. What is the best way to do this?


Why would the command "ls *" generate an error about invalid options?

There is a thread that talks about ls "*" not showing any files, but I actually wonder why the simple  ls *   command doesn't output anything in my terminal other than  ls: invalid option -- '|' Try 'ls --help' for more information.   while   ls   will list all the files in the current directories as    1                  ferol                      readme.txt  2                  fichier                    sarku  2018               GameShell                  Templates  22223333          '-|h4k3r|-'                 test  3                  hs_err_pid2301.log         test2  CA.txt             important.top.secret.txt   toto.text  CA.zip             JavaBlueJProject           tp1_inf1070  countryInfo.txt    liendur                   'tp1_inf1070_A19(2) (1)'  currency           liensymbolique             tp1_inf1070_A19.tar  curreny            LOL                        Videos  Desktop            Longueuil                 'VirtualBox VMs'  Documents          Music                      words  douffos            numbers                    Zip.zip  Downloads          Pictures  examples.desktop   Public   Any ideas as to why the globbing doesn't take effect here? I'm on Ubuntu, working in the terminal, I don't know if it makes a difference.  Thanks.


Upright bold greek symbols without upgreek or globally changing font

I'd like to typeset vectors as bold letters; I've tried \mathbf and then \bm, but I don't like the italicization of \bm and \mathbf doesn't work on Greek. I also really like the default, Computer Modern font.  I've read the  on the subject, but the upgreek commands clash with Computer Modern. The package textgreek doesn't seem to fit the bill, because it complains if I try to put its commands in math mode. There are very many solutions  and , but all of the ones I've checked change the font of the entire document, or demand I change my LaTeX compiler. (I see one comment exchange: "But won't this change the font?" "Yes, of course.")  All I want is a few decent looking letters with as few changes or extra packages as possible. Is there a short or ideally one-line solution?


Suppose the function $f$ has the property that   $$|f(x)-f(t)|\leq|x-t|$$   for each pair of points $(x,t)$ in the interval   $(a,b)$. Prove that $f$ is continuous on $(a,b)$   I tried to divide both sides by $|x-t|$, obtaining $$\frac {|f(x)-f(t)|}{|x-t|}\leq1$$  Then I have no idea how to choose the $\epsilon$ to complete the proof with the definition of continuity.  Thanks for answering.


I need to get the full page url on my Cloud page. When I try to do it through window.location.href then I get null. Is there any way using SSJS or AMPScript to get the full page url?


How does the Time Stop spell interact with the duration of a Bead of Force?

Early in a dangerous encounter we were able to save our bacon by trapping an Archmage with a Bead of Force, effectively removing him from the fight for 1 minute.  We managed to eliminate his allies several rounds later and then started to gather around the sphere that the Archmage was trapped in so that we could cut him to pieces as soon as the sphere disappeared. There were two rounds left before the sphere was gone.   DM decided to have him cast Time Stop and ruled that doing so would give him time to wait out the sphere and then cast Teleport in order to escape, all while we were frozen in time.   We all disagreed, saying that, because the passage of time is stopped for all but the Archmage, we and the sphere would proceed normally from our perspective and the Archmage would just have more time to write his last will and testament before the sphere disappeared and we dog piled him.   If water kept flowing, if sand dials kept pouring, if spheres of force marched closer to expiration, then time didn’t stop, did it? In that scenario, sentient life was frozen while time kept passing, and that’s not what the spell says. It’s Time Stop, not Life Freeze.  What do you think? Was the DM correct in his ruling, or should the Archmage have been ripped apart by ravenous adventurers?


Where I can find a guide in Peru to take me safely to the Jivaro headhunting tribe?

I'm a psychology major and I would love to barter for a shrunken head if I could still come back with my own.


Prove that $\{id, (12)(34), (13)(24), (14)(23)\}$ is a normal subgroup of $A_4$. I see that it's possible to prove this with the following theorem: $$N \trianglelefteq G \text{ if } N\leq G \text{ and } \forall n\in N, g\in G: g^{-1}ng \in N.$$  But is there an easier way to do this? This way isn't hard but it takes quite some time to work through.


Distorted mesh when I use a bevel object on Nurbs curve vs. Bezier curve

I have a series of objects that I have procedurally generated use Bezier or Nurbs curves for which I then attached a Bevel and Taper object.  When I use a Bezier curve the objects come out correctly. See below (ignore the color)   However, when I use a Nurbs curve, with the same exact Bevel and Taper object, they come out very distorted. See below:   Even when I reduce the size of the bevel object the mesh is still very inconsistent. However, ideally, I shouldn't need to adjust the size at all.  One other point that may be important. When I generated the objects using Bezier curves I would insert a curve and then randomize things like curvature and size to get the final object. Then I would apply the bevel and tapers. However, I created the nurbs curves from a list of 3D coordinates (5994 points) loaded from a CSV(doing something similar to this thread: ).  Does anyone know what the cause of the distortion is? Ideally, the objects created from the nurbs curves would look exactly the same as the bezier curve.  Here I've uploaded the files with the Nurbs curves that I'm having trouble with:   And this is the file with Bezier curves that works as it should.    These files are exactly the same except one uses a Nurbs curve and the other uses the Bezier curve.


I used replace keyword to replace string or char, and i can replace successfully here is my code   string keywoord = "Emerika"; var result = keywoord.Replace(keywoord[0], 'A');   the result : Amerika  but i get strange behaviour when replace thing and the next thing is same    string keywoord = "xxxxx";     var result = keywoord.Replace(keywoord[0], 'A');   I will get result : AAAAA  It should return Axxxx  string keywoord = "aaakaaa";       var result = keywoord.Replace(keywoord[0], 'z');   I will get result : zzzkzzz  It should return zaakaaa  so what happened with this,  i just need to replace one thing not multiple thing, any error or do u have another solution?


Position games: how to fill a matrix with dominos?

Dominos of size $2 × 1$ can be placed on a $m × n$ board so as to cover two squares exactly. Two players alternate placing dominos. The first one who is unable to place a domino is the loser.  I can show that if $n$ and $m$ are even, then player 2 can secure winning by replicating any movement from player 1 with respect to the center of the board. Moreover, I can show that if one is even and one is odd, then the roles reverse and player 1 can secure a win by blocking the center in the first move (if the board is $4×5$, he places his first domino covering (2,3),(3,3)) and then he replicates any move by player 2.  The question I face is: who wins when $m=1$? I have tried and showed that:   1 is L, 2 is W, 3 is W, 4 is W, 5 is L, 6 is W, 7 is W, 8 is W, 9 is L. Here W means a winning position: if when you are going to play there are 2 contiguous spaces on the board, you win (or 3,4,6,7,8,...). A partition of the board into two non-contiguous sets of size ($x,1$) is W if and only if $x$ is W. A partition of the board into two non-contiguous sets of size ($x,x$) is L for the second player can copy the moves of the first one. The partition ($x,2$) is W for any $x$ that is L.   I have the feeling that the losing positions are 1,5,9, and so on; in general you will lose if $n-1$ can be divided by 4. Can anybody prove it?


Using regular expressions via `re-search-forward` in elisp

I want to search for an regular expression with the function re-search-forward  When I tried using the examples from the page here:   specifically the regular expression \w\{20,\} used to search for a word with 20 letters or more, I get an error.   Here I am placing my cursor after the closing parenthesis in my Lisp buffer and pressing C-x C-e for evaluating it.   However, when I use the Regexp I-search via,  C-M-s it highlights the correct word as expected.   Why is this?


Evaluation of $\lim_{n\rightarrow \infty}\sum^{n}_{r=1}\frac{r}{n^2+n+r}$

Evaluation of $$\lim_{n\rightarrow \infty}\sum^{n}_{r=1}\frac{r}{n^2+n+r}$$   $\bf{My\; Try::}$ Let $$L = \lim_{n\rightarrow \infty}\sum^{n}_{r=1}\frac{r}{n^2+n+r} = \lim_{n\rightarrow \infty}\sum^{n}_{r=1}\frac{\frac{r}{n}}{\frac{r^2}{n^2}+\frac{1}{n}+\frac{r}{n^2}}\cdot \frac{1}{n}$$  I want to convert into Reinmann Integral, But it is not possible here.  So How can I solve it  Help me  Thanks


How do I print the elements of a C++ vector in GDB?

I want to examine the contents of a std::vector in GDB, how do I do it?  Let's say it's a std::vector<int> for the sake of simplicity.


Any way to remove black borders around video?

I have used both Openshot and Kdenlive to render a 1018x712 video and upscale it to 1920x1080 resolution but the rendered video has black borders around it. Is there a way I can fix this, i thought it could be as simple as just stretching the video to the size I'd like. Heres an example   I have seen discussions on this question but I haven't been able to resolve this. Any help would be appreciated. - Thanks


I want to add one day to a particular date. How can I do that?  Date dt = new Date();   Now I want to add one day to this date.


I already know the concept of SVD applyed on an mxn matrix. Eigen vectors can't exist for a non-square matrix, but singular-vectors can. My question is: does SVD on a square matrix relate to eigendecomposition in a way?  SVD:  $M=UEV^*$, where M is mxn, $U$ is mxm, $E$ is mxn and $V^*$ is nxn  Now if M is mxm, then: $U$ is mxm, $E$ is mxm and $V^*$ is also mxm, which resembles a lot the eigendecomposition (case where U=V).


Let $\mathcal{C}$ and $\mathcal{D}$ be categories, $\mathcal{F}\colon\mathcal{C}\to\mathcal{D}$ be a functor. There is a notion of  of $\mathcal{F}$, namely a pair $(\ell,\varphi)$, where $\ell\in\text{Obj}(\mathcal{D})$ is an object and $\varphi\colon\Delta_{\ell}\to\mathcal{F}$ is a natural transformation from the constant functor to $\mathcal{F}$, such that for any other pair $(d,\alpha)$ of the same type (which is called a cone) there exists a unique morphism $f\colon d\to\ell$, such that $\varphi\circ\Delta_f=\alpha$.  Obviously the concept of limit is a conjunction of the two properties:   1). for every cone $(d,\alpha)$ there exists a morphism $f\colon d\to\ell$, such that $\varphi\circ\Delta_f=\alpha$;  2). if such a morphism exists, then it is unique.  One may be interested what happens if we reject one of these requirements. For instance, if we reject the uniqueness condition, then we come to the concept of .     Question: What concept do we get if we reject the existence condition?   Of course, we may define it and call it a soft limit. We also may find some examples (empty set is a soft terminal object of $\mathbf{Set}$). My question is whether it was studied anywhere or if this is a special case of another known category-theoreric concept.


Rubber band stretched produces heat and when released absorbs heat.. Why?

I  always used to wonder why this happens..   when one stretches a rubberband to nearly it snapping point holding it close to your skin - preferably cheek(helps feel the heat), it emits heat. While releasing the stretched rubberband holding it close to the skin produces a cooling effect on the skin. Can some one explain the physics behind this pls?


Integration User and Oauth Connected Apps

Just want to get clarification on something we're noticing in our org. Its regarding a new integration user we've created for an external application to connect to Salesforce. We also created a Connected App for this application to authenticate using OAuth. All of this is setup and working up to this point.   But one thing that we don't understand is there is a related list on the integration user detail page named "OAuth Connected Apps". We're concerned because although we are connecting fine and data is getting return to the external application no records are showing up in this "OAuth Connected Apps" related list. Should we expect to see Authorization or Access tokens in this list?   We just want to make sure we aren't bypassing the connected app in anyway, which we assume not, but just want to run it by the community and see. All comments are appreciated. Thanks ahead of time for the support.


Does it make sense for the professor to write a recommendation letter that is directly readable by the student?

It seems that US universities usually provide a link to the professor of the applicant, and let him/her directly upload the recommendation letter to that link, meaning that the student would have no access to it. However, when applying to Masters programs offered by German universities, I am surprised to see that they all ask the student to upload the recommendation letter in PDF format/to a text area directly, by his/her own, which seems to make little sense to me.  I'm afraid that some professors will just outright reject writing a letter which is to be handed to and viewed by the student. Or are such worries unnecessary? Is this a cultural difference between continental European and British/American system (My current university mostly follows the British/American system)? What should I do in this case. Should I ask the professors to write and hand me recommendation letters directly, or should I try to communicate with the university and let the professors email them the letter/give me a physical letter sealed within an envelop, which I will send to the university by mail later on?


I found some misspelling in my Ubuntu calendar

My name is Mahdi Vojoudi and Im from Iran .When I choosed persian calendar for my Ubuntu I found some misspelling .I will be so happy if I can help Ubuntu developers  to correct this .I can translate the words from english to persian for making Ubuntu better .


How to loop through all sample paths in list of lists: [[1,2,3,],[1,2,3],...]

I require the capability to do nested loops over various lists, for example:  A = [1,2,3] B = [1,2,3] C = [1,2,3]  for a in A:    for b in B:       for c in C:          #do something   What I want to have some code that can take the list of lists given by [A]+[B]+[C] and loop over every sample path (i.e. the same thing as the above nested loops is doing).  It is okay if this code takes up 2 or 3 lines, since in my real world example I have not just A,B,C but also D,E,F,G,... so doing a nested loop as above is way too tedious.


How can I scale a PNG so it takes the height of the page?

I want a PNG to be as big as possible on a page without to be cut. Is it a way such as the [width=\textwidth] to do the same with the height ?  \begin{figure}[htbp!]   \centering   \includegraphics[width=\textwidth]{../figs/Image} \end{figure}   With this example, if the height of the picture is bigger than the height of the page then the image is cut to fit in the page. How can I do to scale the picture so that it just fit in the page with the caption?  Maybe something like [height=\textheight] ?


Applescript to click green (zoom) button with Option down

Based on , I wrote the following Applescript which would allow me to click the green (zoom) button at the top-left corner of an window. I want to apply the script to MacVim and others which have the green button as "AXFullScreenButton". But, running the script makes the window to FULL SCREEN rather than a "maximized" window. Can anyone tell what is wrong?  tell application "System Events"     key down option     click (first button whose subrole is "AXFullScreenButton") of ¬              (first window whose subrole is "AXStandardWindow") of ¬             (first process whose frontmost is true)     key up option     set frontApp to (name of first application process whose ¬             frontmost is true) as string end tell tell application frontApp to activate


My 21 year old son has chicken pox and has been home for a few days now. The spots are just starting to crust over.  I work with elderly people but have had chicken pox as a child - should I carry on working while he is here (hes usually away at Uni) and infectious?


How can I route SSH traffic based on a subdomain?

I have a home server running ubuntu 10.04 that is running two services:   an SSH service a dockerized gogs service   I would like to essentially reverse-proxy incoming SSH connections based on the subdomain.  For instance, I'd like for ssh connections made via ssh user@mydomain.com to be forwarded to port 2222 and those made via ssh user@gogs.mydomain.com to be forwarded to port 10022.  In essence, I'd like something analogous to nginx for SSH traffic.  How can this be achieved?


In Batman's first appearance in Detective Comics No. 27, he is referred to as "The Bat(-)Man" exclusively.      In the issue, characters say "It's the Bat-Man" rather than "It's Batman".  For example:     It's the Bat-Man — get him!   In which issue does a character refer to him as just "Batman" for the first time? In particular, when is "It's Batman" (with no definite article) used for the first time?  For the purpose of this question, hyphenation ("Bat-Man" vs. "Batman") is unimportant.


Proving that $f(x,y) = \frac{xy^2}{x^2 + y^2}$ with $f(0,0)=0$ is a continuous function using epsilon-delta.

THE QUESTION:  Use the metric $(x,y)$ = $\rho(x,y)=|x-y|$ for the reals and use the metric $\rho((x_1,y_1),(x_2,y_2)) = \sqrt{(x_1-x_2)^2 + (y_1-y_2)^2}$ for the plane.  Define $f:R\times R \to R$ as $f(x,y)=\frac{xy^2}{(x^2 + y^2)}$ for $f(x,y)$ $\neq$ $(0,0)$ and set $f(0,0) = 0$. Determine whether $f$ is continuous using $\epsilon$-$\delta$ proof.    WHAT I'VE DONE:  I've tried using a direct approach by using the definition of a continuous function:  $f:R\times R \to R$ is continuous at $(x_1,y_1) \in R \times R$, $\forall \epsilon>0, \exists  \delta >0$ such that $\forall (x_2,y_2) \in R \times R$ if $\sqrt{(x_1-x_2)^2 + (y_1 - y_2)^2 } <\delta$, then $|f(x_1,y_1)-f(x_2,y_2)|<\epsilon$  However, with the $f(x,y)$ as defined above, it seems impossible with the messy algebra since I want to find a $\delta$ that satisfies $|\frac{x_1y_1^2}{(x_1^2 + y_1^2)}-\frac{x_2y_2^2}{(x_2^2 + y_2^2)}| < \epsilon$ using the metrics defined above.  Is there a trick I am supposed to be seeing? Would really appreciate if anyone could show me the proof for this question. Thank you!


Send item to Sketchup with brushed metal material

I'm new at this stuff, so I'm trying to send stuff to sketchup with a brushed metal detail. But the brushed material doesn't show on the preview. What is it I'm doing wrong? Do I have to bake it? How do I bake brushed metal, which I'm trying to do?


How to translate the standard mathematical mantra "By an abuse of terminology, …" into German? E.g.  An environment is a family of partial maps $\eta_M\colon X_M\dashrightarrow\dots$ for $M\in S$ such that … By an abuse of terminology, if the sets $X_M$ for $M\in S$ are pairwise disjoint, an environment is a partial map $\eta\colon\bigcup_{M\in S}X_M\dashrightarrow\dots$ such that …  I'm sure German has a standard phrase for that, but it simply won't occur to me now!


I have this program that changes a number into words, but the problem is that when you have more than 16 digits in the number, it starts changing the numbers. This is done in Python 3 and we are wondering why this is happening and if there is a simple workaround? (We suspect that Python only handles 16 significant digits)  Of course it could be a silly bug and in which case, I apologise... But we've had 3 sets of eyes on this and can't spot anything.  Any help is much appreciated.  digit1 = ["","one","two","three","four","five","six","seven","eight","nine"] digit2 = ["","twenty","thirty","fourty","fifty","sixty","seventy","eighty","ninety"] other = ["","thousand","million","billion","trillion","quadrillion","quintillion","sextillion","septillion","octillion","nonillion","decillion","undecillion","duodecillion","tredecillion","quattuordecillion","quindecillion","sexdecillion","septendecillion","octodecillion","novemdecillion","vigintillion","centillion"] teens = ["","eleven","twelve","thirteen","fourteen","fifteen","sixteen","eighteen","nineteen"] text = ""   number = input("Enter number: ") try:     number = float(number) except ValueError:     print ("That's not a number")     exit() decimal = number number = int(number)   def Num2Text(num):     out = ""     if len(num) >= 3:         out += digit1[int(num[0])] + " hundred "     if len(num) >= 2 and num[-2] != "1":         out += digit2[int(num[-2])-1] + " "     if len(num) >= 1 and num[-2] != "1":         out += digit1[int(num[-1])] + " "     if num[-2] == "1":         out += teens[int(num[-1])] + " "     return out   number = str(number) cycles = len(number)/3 cycles = round(cycles+0.49)  for i in range(cycles,0,-1):     cnumber = str(int(decimal/1000**(i-1)))     cnumber = cnumber[-3:]     text += Num2Text(cnumber)     text += other[i-1]  + " "   print(text)


Is there any quality difference between PNG vs BMP image formats?

I have just learned that PNG is a lossless image format while BMP can be both uncompressed or lossless format. Should there be a quality difference between these two? If not, does it mean that other lossless formats like TIFF, JPEG2000 and PNG offer the same quality as BMP?


How to show that $L^2([0,1])$ is a set of first category in $L^1([0,1])$?   Thank you.


Prove $\sqrt[3]{3} \notin \mathbb{Q}(\sqrt[3]{2})$

I've tried solving $\sqrt[3]{3} =a + b* \sqrt[3]{2}+c* \sqrt[3]{4}$, but there is no obvious contradiction, even when taking the norms/traces of both sides. I can't think of another approach.  This is part of a proof, it seems obvious, but it's really bothersome I can't prove it.


I work with the Java FileSystem and i will know is the File a Directory, but i get every time a NullPointerException.  Path path = Paths.get("C:/dev"); System.out.println(Files.isDirecory(path, null);


Coin flipping probability game ; 7 flips vs 8 flips

Your friend flips a coin 7 times and you flip a coin 8 times; the person who got the most tails wins. If you get an equal amount, your friend wins.  There is a 50% chance of you winning the game and a 50% chance of your friend winning.  How can I prove this? The way I see it, you get one more flip than your friend so you have a 50% chance of winning if there is a 50% chance of getting a tails.  I even wrote a little script to confirm this suspicion:  from random import choice  coin = ['H', 'T']  def flipCoin(count, side):     num = 0     for i in range(0, count):         if choice(coin) == side:             num += 1     return num   games = 0 wins = 0 plays = 88888  for i in range(0, plays):     you = flipCoin(8, 'T')     friend = flipCoin(7, 'T')     games += 1     if you > friend:         wins += 1  print('Games: ' + str(games) + ' Wins: ' + str(wins)) probability = wins/games * 100.0 print('Probability: ' + str(probability) + ' from ' + str(plays) + ' games.')   and as expected,  Games: 88888 Wins: 44603 Probability: 50.17887678876789 from 88888 games.   But how can I prove this?


Will Crontab reload it's configuration just be editing the crontab file?

Will Crontab reload it's configuration just be editing the Crontab file? will the crontab just change After I edit the crontab file or I will have  to run some command in order to reload configuration?


In ArcGIS and QGIS you can add data on your map and it aligns perfectly even when the Coordinate Reference System (CRS) is not set. Both softwares inform the user that the CRS is not set and it should be done.   How the added data can align itself perfectly even if the CRS is not set?  After setting the correct CRS the data stays in exactly the same position and seemingly nothing changes. For me it seems that the CRS is originally correctly set in some unknown way.   Why does the user have to set the CRS manually again in both mentioned softwares, even the software knows the correct CRS already?


I'm preparing some marketing materials for my boss, and one section contains the phrase "Here are a few examples:". The list that follows contains two items, which strikes me as being incorrect, though I can't find much evidence of this.  Is it semantically correct to refer to two items as "a few"? Is there a solid rule for this, or is it just personal preference?  Edit - As Armen correctly pointed out, this question is about semantics rather than grammar. I changed my phrasing to reflect this.


I'm trying to create a new list by changing the other in for loop, using append method. But I a have a trouble with it.  My simple code:  l1=[] l2=[0,0] for i in range(4):     l2[0]+=1     l1.append(l2)     print l2 print l1   Return:  [1, 0] [2, 0] [3, 0] [4, 0] [[4, 0], [4, 0], [4, 0], [4, 0]]   But I expected that list l1 would be like this: [[1,0], [2,0], [3,0], [4,0]] Where I made a mistake?


I went through this thread on degrees of freedom: , and the great answers in it, but then I read  on Wikipedia on the article about regression:     Statistical assumptions      When the number of measurements, N, is larger than the number of   unknown parameters, k, and the measurement errors εi are normally   distributed then the excess of information contained in (N − k)   measurements is used to make statistical predictions about the unknown   parameters. This excess of information is referred to as the degrees   of freedom of the regression.   Given this definition, if $N$ increases, the degrees of freedom increase as well, but intuitively that would make the problem more constrained (we have more information per parameter). Why is N-k then called degrees of freedom, and it isn't the other way around e.g. (k-N)?


Proof $\prod_{i = 1}^n \frac{n + i}{2i-3} = 2^n(1-2n)$ using inducction

i'm trying to solve this, using induction. The base step is easy, there's no difficult there.  The problem comes in the inductive step, I got to demonstrate that:  $$\prod_{i = 1}^{n+1} \frac{n+ 1 + i}{2i-3} = 2^{n+1}(1-2n -2)$$  Now, starting from the left side of the equation I quickly run into a problem. The extra $+1$ in $\frac{n+ 1 + i}{2i-3}$ won't let me use the inductive hypothesis. How can i solve this?


my 5 yo acer laptop came with windows vista which was just ok. I loaded win7 and it is now extremely sluggish. I'm going to wipe it completely and install an older ubuntu version* I need it for surfing and video streaming only so I don't need a fully packed version. Which older ubuntu should I download and use? intel 585 @ 2.16GHz processor. 1.00 RAM


Mexican visa requirements for US citizens

I'm planning a family trip to Mexico in the summer. I'm a US citizen and so are my two kids. My wife was born in Mexico, but recently became a US citizen as well.    Traveling to Cancun, Mexico our flight will be making a stop in Guadalajara, Mexico  continuing it's way to Cancun on a different plane (flight). We will be in Cancun for nine days.  Should I be aware of something? Mexican visas, or anything else?


How do I remove microsoft windows on an asus desktop

I installed Ubuntu but Windows is still there. My old Ubuntu CD won't work on the ASUS Desktop as there's no CD drive. How do I completely remove Windows?


Placing finger twice on Finger Scanner on iPhone 6 plus changes view

I was fooling around with iPhone 6 plus and found that when you place finger twice on finger scanner or rotate your finger on the scanner the currently running app or the menu views move down to half for the screen.     I'm not worried of this behavior but I am curious why such thing is happening.


I am struggling a bit with power series at the moment, and I don't quite understand what this question is asking me to do? Am I meant to form a power series from these, or simply evaluate that series? Any explanation/working is appreciated.  Using power series representation, calculate  $$\sum_{n=1}^\infty \frac{n2^n}{3^n}.$$


Is there any software (with a graphical user interface) for creating Style Layer Descriptors?

Is there any software that can easily create a Styled Layer Descriptor (SLD) without using a  script?


I'm trying to solve question 2.2.9(b) in Hatcher's Algebraic Topology.   Question: Calculate the homology groups of $X=S^1 \times (S^1 \vee S^1)$.  My attempt: I try to use the Mayer-Vietoris sequence.   Let $A=S^1 \times (S^1 \vee \text{small bit}) =S^1\times S^1$ and $B=S^1 \times ( \text{small bit} \vee S^1)=S^1 \times S^1$. (Unsure how to express this, but hopefully this is clear enough.)   Then $A\cap B=S^1\times \{\text{point}\}=S^1$ and $A\cup B=X$.  The Mayer-Vietoris sequence then gives us an exact sequence in reduced homology as follows:  $$0 \to \mathbb{Z}^2 \to \tilde{H}_2(X) \to \mathbb{Z} \to \mathbb{Z}^2 \to \tilde{H}_1(X) \to 0.$$  Is it possible from this exact sequence to determine the homology groups, in some algebraic fashion? Or do I need to determine what the maps are? How do I determine the maps?


What creates the physical difference in ageing when travelling close to the speed of light?

I probably have a fundamental misunderstanding, so correct me if I'm wrong.  When travelling close to the speed of light, movers experience time dilation, which is what results in the phenomenon of slower ageing in various thought experiments. If someone travels close to the speed of light, they will age slower than others, and will physically manifest itself in differing appearances. (Is this correct?)  This is down to relativistic effects, where everything boils down to frames of reference. So I'm confused as to why these ageing effects are observed:  Consider two people, $A$ and $B$. Person $A$ actually travels close to the speed of light, whilst person $B$ remains stationary. However, from person $A$'s reference frame, they are stationary whilst person $B$ travels at the speed of light, and vice versa. So why do they not both observe the other person ageing slowly, and thus observe no difference in experiencing time?  Please could you explain where I am misunderstanding?


Putting Cross-references in the PDF Outline

Sometimes when writing maths documents, I want to have the name of a theorem in a section heading. This works fine in the text of the document, but it runs into trouble in the PDF outline. Specifically, the name of the section in the outline contains the label of the theorem, rather than its actual printed number in the text. How can I get around this? In the MWE below, the offending section heading will print as "Proof of Theorem 1.1" in the text, but as "Proof of thmName" in the outline. I want it to also say "Proof of Theorem 1.1" in the outline. \documentclass{amsart}  \usepackage{hyperref} \usepackage{cleveref}  \newtheorem{thm}{Theorem}[section]  \begin{document}  \section{Introduction}  In this paper we prove the following result, which requires a bunch of lemmas to be given first.  \begin{thm}\label{thmName}     Some result. \end{thm}  \section{Required Results}  Here we give a bunch of lemmas.  \section{Proof of \cref{thmName}} % The offending section heading  We draw the lemmas together into a proof of \cref{thmName}.  \end{document}  I compile this with PDFLaTeX, and it seems this is a problem with hyperref. The warning I get from it is Token not allowed in a PDF string (PDFDocEncoding):(hyperref) removing `\new@ifnextchar' on input line 22   Update By following Jakob's answer , I've been able to get this working as follows: \documentclass{amsart} \usepackage{hyperref} \usepackage{cleveref} \newtheorem{theorem}{Theorem}[section] % Note that the environment is now named 'theorem' rather than 'thm'. \usepackage{crossreftools}  \pdfstringdefDisableCommands{%     \let\Cref\crtCref     \let\cref\crtcref } \begin{document}  \section{Introduction}  In this paper we prove the following result, which requires a bunch of lemmas to be given first.  \begin{theorem}\label{thmName}     Some result. \end{theorem}  \section{Required Results}  Here we give a bunch of lemmas.  \section{Proof of \cref{thmName}}  We draw the lemmas together into a proof of \cref{thmName}.  \end{document}  However, it absolutely requires me to name the theorem environment 'theorem' rather than 'thm'. If I do the above with \newtheorem{thm}{Theorem}[section] instead, all sorts of errors are thrown. Why would this be?


How to find limit of   $$\lim_{n\rightarrow \infty} n(x^{1/n}-1)$$  Via L'Hopital's rule   $$\lim_{n\rightarrow \infty} n(x^{1/n}-1) =  \lim_{n\rightarrow \infty} \frac{1}{n} x^{\frac{1}{n}-1} / \frac{-1}{n^2} =\lim_{n\rightarrow \infty} x^{\frac{1}{n}-1} / \frac{-1}{n}$$  but that doesn't help.


Stock price down on xetra and up on Nasdaq

I just checked the price of the stock I bought and is is down on Xetra -0,88 % ( where I bought it, as I wanted it in Euro) and up +0,38% on the nasdaq. Can the same stock actually go further this way and how far: up in one exchange and down in the other? I hope my question is clear enough. Thanks anyone for some insight. I am a beginner. Be kind :)


My variable is unused and I don't understand why?

I am working on an assignment and it would be unfair if I post the question up here, so I will just post the problem I have that I can't find the solution to it.   I have created these two methods:  public static void checkValue(String x, int y){     String p1 = "p1";     String p2 = "p2";     String p3 = "p3";     String p4 = "p4";     String p5 = "p5";     String p6 = "p6";     String p7 = "p7";     String p8 = "p8";     String p9 = "p9";     String p10 = "p10";     if(p1.equals(x)){         y = 1;     }     else if(p2.equals(x)){         y=2;     }     else if(p3.equals(x)){         y=3;     }     else if(p4.equals(x)){         y=4;     }     else if(p5.equals(x)){         y=5;     }     else if(p6.equals(x)){         y=6;     }     else if(p7.equals(x)){         y=7;     }     else if(p8.equals(x)){         y=8;     }     else if(p9.equals(x)){         y=9;     }     else if(p10.equals(x)){         y=10;     } }   the Second one:  public static void transferValue(String[] x, int[] y){     for(int i=0; i < x.length; i++){         checkValue(x[i],y[i]);         System.out.print("x: " + x[i]);         System.out.print(" y: " + y[i]);         System.out.println();     } }   When I tried to use them in the main method like this:  public static void main(String[] args) throws Exception{      graph Graph = new graph(maxNode);      String [] x = new String [] {"p1", "p2", "p3"};     int [] y = new int[3];      Graph.transferValue(x,y);     }   The results they printed out are:   x: p1 y: 0 x: p2 y: 0 x: p3 y: 0   Which are very different of what I have in mind:  x: p1 y: 1 x: p2 y: 2     x: p3 y: 3   I would appreciate if you guys can help me with a solution for this problem since I can't solve it.   Thank you,  Vinh


I used the following command: sudo apt install libexpect-perl qemu-system-x86 qemu-utils  But, I received the following errors: Err:1 http://deb.debian.org/debian buster/main amd64 ovmf all 0~20181115.85588389-3+deb10u2   404  Not Found [IP: 151.101.210.132 80] E: Failed to fetch http://deb.debian.org/debian/pool/main/e/edk2/ovmf_0~20181115.85588389-3+deb10u2_all.deb  404  Not Found [IP: 151.101.210.132 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?  I tried running apt-get update, but I received the following errors: E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied) W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)


In the movie Gimli breaks his axe when he tries to destroy the Ring. Did he use another axe after that or did he reforge the axe (which sounds implausible considering the amount of damage it took)?


Visiting  shows that there have never been any questions asked, where have they gone?