I am trying to practice calculating categorical quotients and I ran into this example. I am unable to get the answer and was wondering if someone can help?  Let $G = Z/3Z =$ $\{1, \omega, \omega^2\}$, where $\omega$ is a cube root of unity. Let $G$ act on $𝔸^{2}$ via $\omega(x, y) = (\omega x, \omega y)$. Find the categorical quotient of $𝔸^{2}$ by G.


Plural or singular verb for collective term

Should the verb, in the following sentence, be singular or plural?  A series of samples was produced.  In a  I found a . However the text in that reference seems to contradict itself.  Nouns that are “collective” take a singular verb when the group as a whole is meant. Commonly used collective nouns include “number,” “majority,” “series,” and “variety.” Note that when collective nouns refer to a singular group as a whole they are often preceded by the word “a”;  Based on these rules, I would expect that, since I am using an indefinite article a series, the singular form of the verb is to be used. However the reference uses plural in an example  A series of western blots were performed to assay protein expression.


Understanding the usage of "," before "which" in a sentence

I have difficulty in understanding which of the following is correct:     Team cannot be fully discussed without considering two   factors which are teams’ makeup and teams’ performance.   or     Team cannot be fully discussed without considering two   factors , which are teams’ makeup and teams’ performance.


A function satisfy $x\frac{\partial f(x,y)}{\partial x}+y\frac{\partial f(x,y)}{\partial y}=0$ in a convex domain implies it is a constant

Assume  $D \subset \mathbf{R}^2$ is a convex domain which contain original point. $f \in C^{(1)}(D)$,if $$x\frac{\partial f(x,y)}{\partial x}+y\frac{\partial f(x,y)}{\partial y}=0, \left((x,y)\in D\right)$$ show that $f(x,y)\equiv \text{constant}$


integral of rational trigonometric function involving arbitrary powers

$$\int_{0}^{\pi /2} \frac{\sin^{m}(x)}{\sin^{m}(x)+\cos^{m}(x)}\, dx$$  I've tried dividing by $\cos^{m}(x) $, and subbing out the $\ 1+\cot^{m}(x) $ with $\csc^{n}(x) $ for some $n$, but to no avail.  I've also tried adding and subtracting $\cos^{m}(x)$ to the numerator, and substituting $x$ by $\pi-y$, but these techniques haven't helped either.


What is the best Stack Exchange site to use for beginner/intermediate programming questions?

It seemed like I could go to Stack Overflow, but I'm fairly sure anything ending with "Overflow" was meant for professionals or at least people in the high end of that field, and didn't want to be downvoted to oblivion.  Is there another better suited Stack Exchange out there?


I am writing a bash script for installing django with postgresql database automatically. Now , I want to replace database name by command ,since it is using sqlite3 database file path.  I wrote this command:  sudo sed -i "s/ALLOWED_HOSTS = []/ALLOWED_HOSTS = ['*']/g"  $project_name/settings.py   But it shows me this error:     sed: -e expression #1, char 44: unterminated `s' command   How to change this , please help me.


I have a container that effectively, I want to compress the contents to their minimum width without scroll bars. fit-content is close, but allows the content to use more width than it actually needs. I could also explicitly set the container's width, but that requires me to know the min-width of the contents ahead of time.  So in the example below, the box width should default to compressing the inner item to 3 lines. How can the box reclaim this bit of space?    .box {   background-color: green;   resize: both;   overflow: auto;   padding: 1em;   min-width: 2em;   width: fit-content;   height: 10em; }  .el {   background-color: teal;   width: 100%;   min-width: 5em; }

     Lorem isa psalm ipsom


Is an answer consisting of "Please restart technology-in-question" not an answer?

The 10k queue is full of not an answer flags on answers containing only "Please restart xyz". It looks like someone did a search and went on a flagging rampage.   How should we be handling these flags? Are these really not an answer, even if accepted, up-voted, and worked for the OP?  EDIT: Here's an example: . There are tons like in the 10k queue right now.


What inspired Schrödinger to derive his equation?

I have almost no background in physics and I had a question related to Schrodinger's Equation. I think, it is not really research level so feel free to close it, but I would request you to kindly suggest some existing literature which can help me develop a better understanding for the same.   While reading up about it from an introductory text on Quantum Physics, I wondered for a little while how does one derive this equation. Very soon, the author () added the detail that he just took it on faith when he was himself a student. He goes on to say Schrodinger equation rightly predicts the behavior of atomic transitions etc and people believe that it is a fundamental law of nature for quantum systems.  Then he raises the question himself which I wanted to know the answer to. Namely     What made Schrodinger write such an equation which became a fundamental equation, not to be derived from more fundamental equations?   He then adds that it will be an interesting topic for students of history of science which does not answer my question. Could you please try answering this question (or is this question really useless) ?  Thanks for your time


Disable parenthesis in ieee style biblatex

MWE:  \documentclass{article} \usepackage[english]{babel} \usepackage{csquotes} \usepackage[style=ieee,backend=biber,sortcites]{biblatex} \addbibresource{ref.bib}  \begin{document} Refs. \cites{Yang10,Yang09}\\ \end{document}   The output is [(1),(2)]. How to remove parenthesis here? I see the output is [1, 2] in numeric-comp but I don't see in ieee.cbx where this parenthesis is added.


I want to dual boot my pc, currently I'm using windows 10 64-bit. I want to install Ubuntu 16.04 LTS Desktop. My pc consists of two hard disk drives 500 GB and 1 TB and its BIOS mode is Legacy. Please can anybody tell me the procedure in detail...


I want to install some VNC server on my ubuntu 12.04. which one is the best / recommended? how do i configure it?  all i want is to be able to connect my desktop computer through my laptop. i want something simple like connecting with RDP protocol between windows computers.


What is the equivalent of the following directories in relation to windows for ubuntu?

I'm still learning the linux file system and understanding where everything is installed. I'm coming from windows mindset and would like to wrap my head around the following directory equivalents:  What is the following directory equivalent in ubuntu or just linux in general as im assuming its the same:  c:\program files  --- Where all the programs are installed. c:\windows --- Main OS core files. c:\Users --- Where all the users data reside c:\ --- All the startup / bootup files (config.sys / autoexec.bat)   --- What other important directories should I know about to fully understand the ubuntu/linux file system structure?


Are we traveling through time at the speed of light?

In the image below the y axis represents time and x represent velocity. Point D represents velocity c, point E represents 1 second per stationary observers second. What this chart is showing is as you get closer to the speed of light your progression through time slows.    Formula for this chart is: $$T_1=299792458*Sqrt(1-(V^2/c^2))$$  The longer I examine this chart the more it looks like it depicts the progression through time for a stationary object to be at c. As you move through our spacial 3 dimensions you start to loose speed in the 4th time dimension.  What this chart also shows is that the sum of our 3 spacial vectors and the time vector always equal c.  First Question:  Am I correct with these assumptions, is the vector sum of time and 3 spacial dimensions c?  Second Question:  If so how would gravitational time dilation be represented in this chart? Would you start lower on the y axis and still be able to accelerate up to c on the x axis?


Kubuntu 16.04 failed upgrade (problem with xserver-xorg-video-all?)

I'm trying to upgrade my Kubuntu Wily 15.10 computer but it fails.  I'm doing this:  $ sudo do-release-upgrade -m desktop   This is what I get:  Calculating the changes  Could not calculate the upgrade   An unresolvable problem occurred while calculating the upgrade.   This can be caused by:  * Upgrading to a pre-release version of Ubuntu  * Running the current pre-release version of Ubuntu  * Unofficial software packages not provided by Ubuntu   If none of this applies, then please report this bug using the  command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal.    I found this on /var/log/dist-upgrade/main.log:  2016-04-29 10:29:09,024 DEBUG need_server_mode(): run in 'desktop' mode, (because of key deps for 'kubuntu-desktop') 2016-04-29 10:29:16,112 DEBUG Installing 'xserver-xorg-video-all' (Distro KeepInstalledPkgs rule) 2016-04-29 10:29:16,559 ERROR Dist-upgrade failed: 'E:Unable to correct problems, you have held broken packages.' 2016-04-29 10:29:16,560 DEBUG abort called 2016-04-29 10:29:16,576 DEBUG openCache() 2016-04-29 10:29:16,576 DEBUG failed to SystemUnLock() (E:Not locked)  2016-04-29 10:29:20,464 DEBUG /openCache(), new cache size 78719 2016-04-29 10:29:20,464 DEBUG enabling apt cron job   What can I do?


in continuity to the post  and as demanded by matthew this is a post explaining the data i have and the problem  in fact i have a data composed of 46274 values and 68 variables one y=(0=normal cell/1=abnormalcell) and 67 quantitative variables what i want is doing logistic regression y~ (other variables) but i have the following warnings  gg=glm(y~.,data=datf,family=binomial()) Warning messages: 1: glm.fit: algorithm did not converge  2: glm.fit: fitted probabilities numerically 0 or 1 occurred   and what surprises me is that all variables are significant according to summary in addition the accuracy of confusion matrix is equal to 0.99  Call: glm(formula = y ~ ., family = binomial(), data = datf)  Deviance Residuals:     Min      1Q  Median      3Q     Max    -8.49    0.00    0.00    0.00    8.49    Coefficients:               Estimate Std. Error    z value Pr(>|z|)    (Intercept) -1.795e+16  4.304e+07 -417170033   <2e-16 *** a1          -3.220e+13  6.216e+05  -51803034   <2e-16 *** a2           9.065e+13  5.924e+05  153010830   <2e-16 *** a3          -1.767e+13  5.232e+05  -33763208   <2e-16 *** p1          -1.223e+13  1.758e+05  -69542630   <2e-16 *** p2          -9.098e+12  1.752e+05  -51928139   <2e-16 *** p3           8.917e+12  1.564e+05   57009154   <2e-16 *** cont         1.867e+14  1.030e+07   18118056   <2e-16 *** eg           6.280e+14  7.219e+06   86983250   <2e-16 *** h            5.468e+15  3.476e+07  157292659   <2e-16 *** c1           6.532e+15  9.454e+07   69089908   <2e-16 *** c2          -1.284e+14  3.977e+05 -322837213   <2e-16 *** c3          -5.017e+13  1.775e+05 -282705283   <2e-16 *** c4          -4.230e+13  8.652e+04 -488886033   <2e-16 *** ....  Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  (Dispersion parameter for binomial family taken to be 1)      Null deviance: 64149.4  on 46273  degrees of freedom Residual deviance:  7497.1  on 46205  degrees of freedom AIC: 7635.1   then after doing stepwise regression all the variables(33 variables) of selected model were non significatives the warning messages persist and  accuracy was equal to 1                  Estimate   Std. Error  z value   Pr(>|z|) (Intercept)    3.945e+04  3.178e+04   1.241     0.215     a1            -2.499e+02  1.938e+02  -1.289     0.197     p3             2.908e+01  2.391e+01   1.216     0.224 cont           1.279e+04  1.016e+04   1.259     0.208     h              5.125e+04  3.948e+04   1.298     0.194     c1            -2.490e+05  1.871e+05  -1.331     0.183     c2            -3.996e+02  2.989e+02  -1.337     0.181 c7            -5.221e+01  3.932e+01  -1.328     0.184 ....  (Dispersion parameter for binomial family taken to be 1)  Null deviance: 6.4149e+04  on 46273  degrees of freedom Residual deviance: 2.4470e-02  on 46240  degrees of freedom AIC: 68.024 Number of Fisher Scoring iterations: 25   what conclusion should i put or what correction should i do  thanks a lot in advance for any help


How to remove the empty lines in a file in linux

I have an output in a file with the blank spaces like  daily/A3D05180000052121001 30698  daily/A3D05180000052200001 30698  daily/A3D05180000052203001 30698   I need to remove the empty lines and my output should be like   daily/A3D05180000052121001 30698 daily/A3D05180000052200001 30698 daily/A3D05180000052203001 30698   I tried using sed  sed -i -e '/./,$!d' -e :a -e '/^\n*$/{$d;N;ba' -e '}' "$FILESIZE3"   But it did not work out... Can anyone pls help me out on this


How can a script run by a user logged-in over ssh, get the user's public key?

I need to get the users public key, that was used to authenticate the current ssh session.  Running env only shows:  SSH_CLIENT=192.168.1.2 35538 22 SSH_TTY=/dev/pts/0 SSH_CONNECTION=192.168.1.2 35538 192.168.1.3 22


Blender was working fine until recently (I can't pin point what happened). I have not knowingly changed any settings in Blender or on my PC in general. I've been working with Blender daily and hadn't noticed the change since most of what I was doing was in Cycles Render View, which does seem to work. Here's the problem. Doesn't matter if it's a file I open or a default object on a fresh file. In Object mode, if I add any object (example monkey), then switch to wire frame, I get an outline of the object only, no wire frame. Solid view seems to show correctly. Material Preview only shows a filled outline, the fill color is the same as the grid color, but applying a color does not make any difference. Render View EEVEE shows a filled outline, not a render, and the fill color disappears as I rotate the object. If I switch to Cycles, it seems to be ok. I was using Blender 2.90, and hoped that switching to 2.91 would resolve, but it's exactly the same. I also tried going back to 2.8 and got the same result. I then looked at my graphics card RX 580 which recently did an update...I reverted back to the previous version, but to no avail. I'm out of ideas, and cannot figure out if this a Blender issue, a hardware/software issue....or if I inadvertently clicked something. I've looked through Blender settings repeatedly but can't see what could be wrong. I did see a post here from another user who is having the exact same issue, and he/she uploaded a youtube video showing their issue. I would have preferred to comment on theirs, but this forum doesn't let me, so I had to load my own questions. [UPDATE Dec 4-2020] I did a system restore back 1 month (to ensure no new updates were present), tested and Blender was working fine (V2.90). I began re-installing updates one at a time and test after each. Summary of results - All Windows updates installed to current, Blender works fine. Radeon updates - v20.9.2 (driver v27.20.12031.1000), Blender works without issue. Radeon update 20.11.2 & 20.11.3, Blender is broken.


Word "REFERENCE" and "Reference" in ToC and bibliography page in Thesis

I am writing thesis using template "Easy thesis" from ShareLaTeX. Now I have a problem in writing the title "Reference" in the last page of thesis and in the table of contents.  I want the word "REFERENCE" to be appear in capital letters in the table of content page, while the same word appear as "Reference" in the bibliography page.  I have searched around to get some hint. I tried as explained . I also looked at  and  but I could make this changes.  Hope to get some help from experts.


Split python list and merge together with certain item size

this is my first question, so please be nice :-) I'm having a python list and want to merge the items to other list items in a certain size. For example: old_list = [1,2,3,4,5,6,7,8] item_size = 2 - some code - new_list = [[1,2],[3,4],[5,6],[7,8]]  Is there an easy way to do this? Thanks a lot in advance!


Searching for a Russian SF novel or short story

Can anybody help me to find an older Sci-Fi novel from Russia from the 70's or 80's?  It's about a group of astronauts exploring the galaxy (or even the whole universe) for new planets and life forms. In their expeditions, they use some kind of wormholes for traveling  to explore the universe and also return to Earth.  The story starts with the return of the astronauts from their first expedition. They insert their ships into Earth's orbit before getting the permission from mission control to enter the Earth's atmosphere. Everything seems normal until the astronauts notices that everything in their ship is mirror-inverted. Before their expedition, all the buttons which were right are now on the left side of the cockpit for example.   It's some kind of pole reversal and all the ships and the crew within become anti-matter itself, most likely because of the worm hole. So mission control forbid all ships involved to return to Earth and even orders them to leave the solar system and never to return, for the sake of all.  My father read this novel in his youth in the Russian language, so some information may be wrong. Nevertheless, I hope that you will be able to help me find the name of the author and the book.


Why is there a mass defect in nuclear fusion?

So I'm currently trying to wrap my head around nuclear fusion, but there is something that keeps bugging me: I've read in many places that when two hydrogen atoms combine, the resulting helium atom has a mass inferior to the sum of the mass of the two original atoms, because this mass has been given off as energy. But why? Why does some of the mass become energy? Is it something that we don't know yet? I've read about binding energy as well, but I cannot understand how it relates to energy being released during a fusion, or what it even is.


How can I open in Python a unix shell, type a command and some other inputs and close the unix shell?  Example commands and inputs:  telnet 127.0.0.1:6000 user pass save-all restart   Greets  miny


How is acceleration calculated when only the direction of velocity changes and the magnitude remains the same?

How is acceleration calculated when only the direction changes and the magnitude remains the same? Guys, I know that my previous examples didn’t make sense and I’m sorry because I’m totally new to this topic and also I don’t think ya’ll actually understand my question. Acceleration is change in velocity over change in time,right? So, if the magnitude of velocity changes and the direction is same, acceleration is obviously given a value (for e.g. 2 $m/s ^2$ etc) and the direction of acceleration is the direction of change of magnitude of velocity. My question is, what if only the direction changes? What if there’s this super advanced object that can change its direction without changing the magnitude of velocity? How will the acceleration be calculated in that case? How can the magnitude of acceleration have value since there is no change in speed ( magnitude of velocity)? I’m also aware about Uniform Circular Motion and how acceleration changes constantly even when the magnitude of velocity doesn’t change and how it can be calculated. But uniform circular motion is not an one dimensional direction change. It will be of huge help if you could explain how acceleration is calculated when magnitude of velocity remains same and only direction of velocity changes in 1D motion (I.e., it goes in the opposite direction and for simplicity let’s assume that this body/object needs very little time to change its velocity from positive to negative) I’m still yet to learn calculus so if these calculations include calculus please do explain it a little in detail. Also, if an object can not change direction without changing speed in 1D motion, then please explain giving an example where the object takes very little time to change direction/ go back. I just want to know how the direction change is shown in acceleration. Thank you for baring with me and for your time.


How can I retrieve the message-only from a fatal error message in php store it as a variable.  I'm running a script which I believe has some custom error reporting on it when it runs. When the function fails, I get this:  <b>Fatal error</b>:  Uncaught exception 'functionName' with message 'the was an error' in 'filepath.php line 10'   I have error reporting turned on like this:  <?php error_reporting( E_ALL ); ini_set( "display_errors", 1 ); ?>   However, I'd like to store the error message as variable that I can use in a more user-friendly way.  So far I've tried this:  $var = error_get_last(['message']); echo $var;   But it doesn't display anything.  Any help is much appreciated.


Canonical URLs in sortable paginated lists

How should one use rel="canonical" in sortable paginated lists?  An unsorted list of products is not the same as the same list sorted, nor are lists sorted in different ways equivalent. For example, compare:   http://www.example.com/desktops?sort=p.price&order=ASC&limit=5&page=2 with http://www.example.com/desktops?sort=p.price&order=DESC&limit=5&page=2   These are two very different pages, but they have the same canonical URL. Surely this is incorrect?


Creating polygons as % of original area using ArcGIS Desktop?

I have a polygon shapefile and need to create new polygons, within the originals, as % of original area.  I used buffer by field (Field= new area as %) but the buffers are created in circles around the polygons.  What am I doing wrong?  I am using ArcGIS Desktop 10.


Changing the background of a column cell value of an based on the Value (HTML Reported created by awk)

I have created an HTML Table (Data from the DB) using awk. I am stuck at creating the Background of a column, depending on the cell value. Not much idea about css. I am abble to change the ont bbased on the condition but not the background color. here is my code. If the status is less than 100 background should be red..else same bg as rest of the table..  BEGIN {   print "

The report provides overall Percentage Secured in the given subjects.

"   print "
" }  NR==1 {   # Header row   print "
"    for ( i = 1; i <= NF; i++ ) {     print ""$i"	"   }   print "
" }  NR>1 {   # Data rows   print "
"   if( $i < 100 ) {     color="RED"  \\ Background should be Red if the status is less tha 100\\ }   if( $i == 100 ) {     color="BLACK" \\Same background as rest o the table\\   }   print ""$1"	"$2"	"$3"	"$4"	"$5"	"   print "
" } END {   print "
" }


Current Host Server for Availability Groups

We have a 4 Node multi Subnet Availability Group. When i go to the Cluster Manager I could see the Current host server is the Node 4  whereas the AG Primary node is Node 1. Will the AG go down if Node 4 goes down ?  Please advice whether is this a normal behavior and will there be in any problem if i move all the cluster resources to the primary node during production.


How to get the derivative of a normal distribution w.r.t its parameters?

We normally calculate the derivative of normal density w.r.t its parameters, mean and variance. But can we calculate the derivative of normal distribution wrt the parameters(not the variable, I know the derivative wrt to the variable gives the density)? If yes, how do we calculate that?


Establishing a Security Bug Bounty Programme for Stack Exchange

Following on from a conversation with , it was suggested to raise this here.  At the moment SE has a  which details how to contact SE regarding security issues, but doesn't detail what actions are acceptable / unacceptable by a researcher when looking for potential security holes in SE sites.    Many companies, such as  and  have self-managed programmes and many others work via services like  or .  The advantage of having a defined programme is that SE would likely get reports from security researchers who find possible security issues.  Without a definition of what action is allowed / forbidden, many researchers won't risk probing a site for fear of legal issues.  Whilst this has been  on Meta.SE, I thought it was worth mentioning again as at the moment, the lack of defined guidance on acceptable actions likely means that SE is losing out valid contributions.  On the point of rewards that was raised on the previous question, most programmes have criteria for what is (not) considered a valid finding and these can be used to avoid "T-Shirt seekers".   If administrative overhead is considered an issue, using 3rd party services like Bugcrowd may help with that.


No java.lang.NoClassDefFoundError for com.google.common.base.Function

I am getting this error although I have added all the the libraries and dependencies as jar files.  Error shows like this : Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Function     at chrome_browsertest.main(chrome_browsertest.java:10) Caused by: java.lang.ClassNotFoundException: com.google.common.base.Function     at java.net.URLClassLoader.findClass(URLClassLoader.java:381)     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)     at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 1 more


Calculate length of service automatically

How to make an automatically calculate of how many day from what user pick a date using datepicker and minus with the current date.   Let's say i have choosen my date using datepicker and automatically calculate for me how many days from date what i pick until todayDateTime = Now()

         Duration

         From	         To

     <input class="center" type="text" name="Dur_from" size="8"b required="yes">             	                     <input class="center" type="text" name="Dur_to" size="8" required="yes">


"homework"     What can be said about $\pi+e$ and $\pi e$? Are these numbers rational or irrational?   I know that both $\pi$ and $e$ are  irrational. What can be said about $\pi+e$, and $\pi e$?


An animated movie about a dwarf or gnome that seems to be good but turns evil by killing the bad guy with a gun at the end

When I was a kid I watched a movie on TV that I never knew its name, it was an old animated movie. I think it was an European very rare movie because of the style of the animation, drawings but above all the plot. The story as far as I remember something like this (it may be not accurate as I was pretty young in that time and I watched it only once so very few images remain in my memory):  The story lives inside a magical world of faeries and dwarves or gnomes, there is a very bad guy (Sauron like) that kidnaps the main character's girlfriend or wife or some important relative. Then this dwarf starts his journey to get to the bad guy's fortress and rescue his beloved one.  At some point the protagonist comes to the land of the fairies so they will help him to find the path to the bad guy's lair. He discovers that he is somehow related to the fairies, maybe one of his ancestors was a fairy or something like that.  Everything looks very linear and predictable until now, but the end of the story breaks the paradigms:  Finally the dwarf-gnome gets to the bad guy fortress or castle and when he meets him he suddenly and surprisingly takes out a gun and holding it in his hand shoots and kills the bad guy. This was not expected as the main goal of the character seemed to be just rescuing his relative but not take revenge in a violent fashion.   That part really impacted me as the cute, shy and naive character turns calculating and treacherous at the very last moment (something similar to when Frodo decides not to drop the ring at the very last time which is my favorite part of LOTR)  Another thing that is interesting in this last scene is the strange object "The gun" that appears in an environment that was supposed to be a magical D&D style without any man made powder-fire based device presence at all.  Does anyone has a clue or reference that can help me to find which movie is this?


While I'm searching for bash examples, I find the let command but I never understand it.  I saw the man bash, also I couldn't understand  what let expression does.  Some let usage that I saw:   let z=z+3 let "z += 3"   What is the usage of let?  Any explained example will be appreciated.


If $\mathbb f$ is analytic and bounded on the unit disc with zeros $a_n$ then $\sum_{n=1}^\infty \left(1-\lvert a_n\rvert\right) \lt \infty$

I'm going over old exam problems and I got stuck on this one. Suppose that $\mathbb{f}\colon \mathbb{D} \to \mathbb{C}$ is analytic and bounded. Let $\{a_n\}_{n=1}^\infty$ be the non-zero zeros of $\mathbb{f}$ in $\mathbb{D}$ counted according to multiplicity. Show that  $$ \sum_{n=1}^\infty \left( 1 - \left|a_n \right|\right)\lt\infty $$  I can understand that $\left|a_n \right|$ goes to $1$ since zeros are isolated, but it doesn't help showing the series is convergent. Any help will be appreciated!


Strange "There is a pending suggested edit" message while editing a post

I was editing a post this morning and when I tried to submit it I got the message below.      There is a pending suggested edit in the queue, try again in few minutes.   I'm not quite sure if this is so desired or just a logging output, where it should not be. For me it was quite strange, so I report it.


In my Drupal7, I have same piece of code in tpl.php files for two different nodes. My tpl.php files are following:  page--node--9.tpl.php page--node--11.tpl.php   Since code is same for both pages, it is possible to create a tpl.php file for both nodes? I mean something like   page--node--9and11.tpl.php


For two positive integer  sequences $x_1,x_2,\ldots,x_n$ and $y_1,y_2,\ldots,y_m$  satisfying  $x_i\neq x_j\quad  \text{and}\quad  y_i\neq y_j\quad \forall i,j, i \ne j$  $1<x_1<x_2<\cdots<x_n<y_1<\cdots<y_m.$  $x_1+x_2+\cdots+x_n>y_1+\cdots+y_m.$   Prove that: $x_1\cdot x_2\cdots x_n>y_1\cdot y_2\cdots y_m$.  (from internet) I don't have an idea for this problem. Thanks for your help.


Create new/Reuse an instance of an application (Windows, .NET, WPF)

I've been struggling with this for more than several hours and cannot think of a solution.  I have an application that can be started in this way:  TestApplication.exe ID={GUID} filename={filename}   If there is not an instance of the application with the same GUID, a new instance should be started with ID={GUID} and the specified file should be loaded in it.  If there is an instance of the application with the same GUID, the user should be asked if he wants to close the file he is working on and if he confirms it - then the new file specified should be opened in the running instance.  Any ideas how to implement this?


Prove that a set has cardinality continuum

The task is to prove that set of bijections between set of natural numbers is continuum(is equinumerous to the set of real numbers). I have some ideas, like proving that mentioned set is equinumerous  to the set of points in section from 0 to 1, however hasn’t really managed that


Let $k$ be a field of arbitrary characteristic. Suppose that $A$ and $B$ are finite dimensional $k$-algebras. Let $S$ be a finite dimensional simple $A$-module and let $T$ be a finite dimensional simple $B$-module. Is $S \otimes_k T$ simple as $A \otimes_k B$-module?


Smart phone factory reset, but forgot google account -- bricked now?

Motorola Moto E LTE XT1528 (Verizon) running Android 5.1  I bought this phone in Aug, 2015.  I have the box, the receipts and a copy of the transaction from Best Buy via ebay. (EDIT: the boatloader for this model can't be unlocked)  I pulled my phone out of my pocket this morning and was greeted with a "Select Language" screen.  Somehow it had preformed a factory reset.  To my chagrin, it required my google account to use the phone.  I set this up long ago and I never use the google account. I couldn't remember anything but a few letters of the account.  I tried all the recovery options on  but nothing worked.  It seems that now my only choice is to buy a new phone. Does anyone know if anything can be done?  Edit: In regards to the moderators suggested solution: With 5.1 you can no longer wipe the data and return to factory settings with the bootloader.  Edit 2: Verizon, Best Buy, Google were unable to assist.  Motorola at first told me the "phone is now bricked" (their words).  After talking with Google again they conferenced in Motorola who agreed since it was still under warranty they would service it.  So I am sending it back to them.  As a curiosity I tried all of the suggested solutions in the answers that were suggested in the duplicate question.  Specifically for the XT1528 there is no menu options in the pull down that allows you to try to bypass the boot loader block.  In other words at 0:41 in this video  that button does not exist in the upper right. I added a screen shot showing the option that is not available so you don't have to watch a video:    This is unfortunate because when I bought this product I had no idea how significant that spontaneously made up google account would become over time.  The phone just said to create one, there was never any implication to how important it would be because there was no "Kill Switch" feature at the time that depended on it.  I'm well versed in the android tools, so if someone has an idea, I would be willing to see if it works before I send it back.  So far nothing has.


Sanitizing query, escape characters, query mysqli_real_escape_string

I have recently begun learning and practicing PHP/MySQL and wrote a comment/note system. I am having trouble sanitizing the input, escape characters.      <?php include($_SERVER['DOCUMENT_ROOT'].'/includes/dbh.php'); $newNote = mysqli_real_escape_string($conn, $_POST['note']);  if (empty($newNote)){         header("Location: /admin/notes.php?error=empty");         exit(); } else {         $dt = date('M d, Y ');         $sql = "INSERT INTO notes (dt, note) VALUES ('$dt', '$newNote')";         $result = mysqli_query($conn, $sql);         header("Location: /admin/notes.php?success");     } ?>   Do I want to be sanitizing the $result variable or the $sql variable? I had this working properly earlier before changed were made and I am somewhat certain the $newNote variable is still sanitizing properly. I'd like to be certain.  $sql is just setting the stage, not doing anything and when $result is run that is when the query happens. So I would want to sanitize before the query.  Should I research PDO and drop mysqli?


Problem: Find the centroid of the part of the large loop of the limacon $r=1+2\cos(\theta)$ that does not include the small loop.   I know that in order to compute the centroid one needs to use following equations $$x=\frac{\iint_D xdydx}{m}$$ and $$y=\frac{\iint_D ydydx}{m},$$ where $$m=\iint_D dydx.$$ Note that we are assuming $\rho=1,$ which should work for this problem since I got the correct answer for a similar problem. The real issue that I am facing is that I am unable to set up the bounds on the integral because I do not what values of $r,\theta$ do I have to exclude in order to avoid the loop. Any help in this regard would be much appreciated.


Can I get into a US CSE PhD if I don't have a good CGPA?

I am currently pursuing Masters (M.Tech) in CSE from IIT Madras. But my Master's CGPA is not so good. It is around 6.1 in out of 10 scale. Scoring here in  is really really difficult. I have an interest in research though my final year thesis is not yet published and chances of it being published in a Top Tier conference is very less according to my advisor. So is there any chance that I can get into at least top 100 US schools for PhD in CSE and even in interdisciplinary fields if possible? I have a very good Bachelor's CGPA of around 9.2 out of 10 scale. Instead of USA what other options do I have? And what about the funding? Any help will be GREAT as I am eager to do a PhD, rather than joining a job. And last of all, does IIT tag matter?


Scanner class doesn't work how I expected.  Scanner in = new Scanner(System.in); // input: total  String str = in.nextLine();          // total System.out.println(str);             // total System.out.println(str == "total");  // false System.out.println(str != "total");  // true   I expected line 5 being true, but the above code is what i got.  How should I do for (str == "total") becomes true?


How to manage a global VM startup order across the whole datacenter?

Suppose you have a fully virtualized VMware infrastructure: ESXi, vCenter, vMotion, HA, DRS, the whole package.  Inside, you have lots of VMs, which at any given time may reside on one host or another (that's the whole point of clustering, isn't it?).  You experience a power loss, and, one way or another, you manage to shut down gracefully all VMs and all hosts; let's not delve into this for now, let's just assume your UPS software can handle it. Or, at least, let's assume the shutdown was not so graceful, but everything is still able to come up again once power is restored.  Power comes back, and your hosts restart.  Your environment is quite complex, and it has natural dependencies between VMs: domain controllers should start first, an application server can't start unless its back-end DB server is already up and running, and so on.  We all know (or should hopefully know) how to configure automatic VM startup and how to specificy a VM startup order and delay on a single ESX/i host.  But how to do this across a whole datacenter?  Is there any way to tell vSphere "start these VMs in this global order, regardless of the physical host they are running on"?  Bonus points: if vCenter itself is running on a virtual machine, how does this change things?


If heard two explanations for this. One explanation is that the gravity is so strong that space is being stretched inward faster than the speed of light and thus no photons could possibly escape. The other explanation I have heard is that photons can escape but that they become "red shifted into oblivion". Can someone explain this to me? Are these actually the same explanation?


How is Leibniz Integral rule derived?  $$\frac {\mathrm{d}}{\mathrm{d}x}\left(\int_{a(x)}^{b(x)}f(x, t) \,\mathrm{d}t\right)= f(x,b(x))\frac{\mathrm{d}}{\mathrm{d}x}b(x)- f(x, a(x))\dfrac{\mathrm{d}}{\mathrm{d}x}a(x)+ \displaystyle\int_{a(x)}^{b(x)}\dfrac{\partial f(x,t)}{\partial x} \,\mathrm{d}t.$$  Also, what is the intuition behind this formula?


Python: function that adds all the values in a list and prints the total

I m new to python and based on what I learnt so far this code should be correct,but it doesn't run.Can any of you help out list_x=[4,5,6,7]  total1=0  def total(list_1):     for values in list_1:         total1 += values               print(total1)      total(list_x)


I have the following  regex and want to access the capturing groups only. I don't care about the whole matches. That is, I want ONLY the labels (16 in the example) without the label tags.  My code is very simple, and it's the following, but in the console.log I get an array with the whole <label for="blah blah">label</label> records.  var exp_code = $('#exp_iframe').contents().find('body').html(); exp_matches = exp_code.match(/<label for=".*">(.*)<\/label>/g); console.log(exp_matches);   What am I doing wrong?  TIA.


Questions with ignored tags still visible in iOS app

I have set to ignore [php] tag and chose to hide questions in preferences:        But I still see questions tagged [php] in the iOS app.         Seems the app can't distinguish options for ignored tags.   App Version: 1.6.5.3 Device: iPad Air 2 (Wi-Fi) OS Version: Version 10.3.1 (Build 14E304)


How to get business visa extension in Spain

I am from India and I came to Spain for business meetings. My plan was to stay for one month [but found out the business will be closed for one week for Christmas]. My visa is valid from 2nd December 2016 to 15 January 2017; the duration of stay is 30 days. I arrived in Barcelona on the 4th of December, per the visa, and I planned to leave by the 4th of January. I want to extend the stay until the 14th of January.   How do I apply for a visa extension? Is it actually necessary to apply for an extension since I am leaving before the expiry date on the visa (15 January)?


Will I be allowed to board if my Schengen visa won't be valid when my flight departs?

My Schengen visa will be valid on 01 July but I have a flight on 30 June at 22:00. Technically, my visa is not valid when I get on my flight but will be valid when I get to the country. My arrival will be at 00:30. Is that okay or will it be a problem? I'm flying to Poland on WizzAir.


Python scripts that run inside ArcMap vs ones that run outside?

I'm just starting to get into Python scripting for work.  I'm currently creating a script to automate a process.  Basically, it asks the user the client name, gets a projection if available, creates directory on C: drive for client, creates file geodatabase specific to client, creates required dataset, and creates feature classes specific to clients data. Eventually, it will also add the required fields to each feature class and probably some other things.  I started this not really knowing the proper etiquette of Python scripting for ArcMap. But what I've created so far will only run outside ArcMap I believe.   Is this acceptable?   Instead of getting user input through arcpy.getparamaterastext(), which I just found out about, I'm using raw_input().   Is this okay?   It does work, I'm just not sure if this is a proper way to do scripting.  Here's the code I have so far.  import sys import arcpy import os  #Records name of the client client = raw_input("Enter the name of the client: (letters and underscores only) \n")  #Records filepath of client to be created clientpath = "C:/" + client  #Inquires if projection file exists projection = raw_input("Is there a .prj or .shp available with correct projection? Y or N \n")  #Records the projection location if available if projection.upper() == "Y":     spatialr = raw_input("Drag the .prj or .shp here to record the filepath \n")     nspatialr = spatialr.replace('"', "") elif projection.upper() == "N":     alert = raw_input("You must add the spatial reference manually, hit enter to continue. \n") elif projection.upper() != "N" or "Y":     exit = raw_input("That is not a valid response. Try again. \n")     sys.exit()  #Checks if client folder exists; if not, creates one if not os.path.exists(clientpath):     os.makedirs(clientpath)  #Variable for file geodatabase location FGBpath = clientpath + "/" + client + ".gdb"  #Checks if client file geodatabase exists; if not, creates one if not arcpy.Exists(FGBpath):     arcpy.CreateFileGDB_management(clientpath, client)  #Variable for dataset location FDatasetpath = clientpath + "/" + client + ".gdb" + "/Network"  #Checks if dataset exists; if not, creates one if not arcpy.Exists(FDatasetpath):     if projection.upper() == "Y":         arcpy.CreateFeatureDataset_management(FGBpath, "Network", nspatialr)     elif projection.upper() == "N":         arcpy.CreateFeatureDataset_management(FGBpath, "Network")  #Variable for cable feature class location FCcablepath = clientpath + "/" + client + ".gdb" + "/Network" + "/cable"  #Checks if cable feature class exists; if not, creates one if not arcpy.Exists(FCcablepath):     if projection.upper() == "Y":         arcpy.CreateFeatureclass_management (FDatasetpath, "cable", "POLYLINE", "", "", "", nspatialr)     elif projection.upper() == "N":         arcpy.CreateFeatureclass_management (FDatasetpath, "cable", "POLYLINE")  #Variable for splice point feature class location FCsplicepath = clientpath + "/" + client + ".gdb" + "/Network" + "/splice_point"  #Checks if splice point feature class exists; if not, creates one if not arcpy.Exists(FCsplicepath):     if projection == 'Y' or projection == 'y':         arcpy.CreateFeatureclass_management (FDatasetpath, "splice_point", "POINT", "", "", "", nspatialr)     elif projection == 'N' or projection == 'n':         arcpy.CreateFeatureclass_management (FDatasetpath, "splice_point", "POINT")  exit = raw_input("\n\n File geodatabase, dataset, and the cable \n and splice point feature classes successfully created. \n\n Hit enter to exit.")   I still have some work to do, like adding the needed fields.


How do I know which build of Chrome I'm running, 32bit or 64bit? How do I change it

Recently, Google has provided a 64bit build for Windows. How do I know which build I'm running and how do I change it? I want to try it and be able to go back if I need to. Thanks in advance.


What is so special about merging duplicates that need locking for the merge source?

In the  there's no indication why the stub should be locked, since the only difference between a merged question and a duplicate is that answers in one were moved to another question, why is locking needed? This puts us on situations where we can't delete bad signposts or a off topic question which was the merging target. It's possible that this behavior is altered so that it no longer locks the source?


How should i send / pass the two dimensional array to a function using static memory allocation?

Here in the code written below, when I am passing the two dimensional matrix( in this case it is nMatrix[][]) , and in the function i\I am storing that into a double pointer. Then a problem is being created in accepting the elements of the array.   If I perform the same task using dynamic memory allocation and I keep the function syntax same, then it works perfectly. I want to know the reason, if anyone can help I will be thankful to him/her.  #include<stdio.h>  int inputMatrix(int **matrix , int row, int column) {     int i, j, nonZero  = 0;     printf("\n Enter the elements of the matrix : \n");     for(i=0; i<row; i++)     {         for(j=0; j<column; j++)         {             scanf("%d",&matrix[i][j]);             if(matrix[i][j]!=0)                 nonZero++;         }     }     return nonZero; } int main() {     int nMatrix[10][10], sMatrix[10][3], nr, nc, i, j, ch, nonZero;  // input the matrix in normal form                 printf("\n Enter the number of rows : ");                 scanf("%d",& nr);                 printf("\n Enter the number of columns : ");                 scanf("%d",&nc);                 nonZero = inputMatrix(nMatrix,nr,nc); return 0; }   In eclipse it does not show an error, and in Code::Blocks it shows note which is    note: expected ‘int **’ but argument is of type ‘int (*)[10]’


How to determine if a question has ever been a "hot network question"?

I've had at least one question featured as a "hot network question" and during that time it got thousands of views in the course of a few days. But if you look at that question now you won't have any way of knowing that that's where the bulk of its view count came from.  Is there a way to find out if an arbitrary question has been a "hot network question" or not?


Does one need to put a space between initials of the first and the second names. Which one is correct: "Sincerely, J. D." (where J. D. means John Doe) or "Sincerely, J.D."?


Prove (or disprove) that $3^{2n+3}+40n-27$ is divisible by $64$ for any $n$ integer

So I want to prove that is in title. I'm working with modular arithmetic, so if any of you can show me a hint, it will be perfect.


How to install Intel CedarView drivers on Ubuntu 12.10 or higher?

I am looking for instructions on how to install cedarview graphics drivers on Ubuntu 13.04 32bit.  My graphics hardware is a GMA3600 aka Power VR SGX545.  EDIT: It seems that they are not in Raring yet, but only Precise:   EDIT2: they seem to be closed source.


After disabling and uninstalling memcached module, I get this PDOException and WSOD?

I´ve cloned my production site in a local Xampp installation. My site has Memcached installed (in the server and I´ve got the drupal memcache module installed).  But I´ve got this error at my local site:     You must enable the PECL memcached or memcache extension to use   memcache.inc   (this is repeated at least 30 times, so that line is printed about 30 times at the top of every page).  Now, I´ve disable and unninstalled memcache at my local installation, and the error is still there.  I´ve tried after that deleting the additional settings added to my settings config file:     $conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';   $conf['cache_default_class'] = 'MemCacheDrupal';   $conf['memcache_key_prefix'] = 'memcache_sitio';   $conf['cache_class_cache_form'] = 'DrupalDatabaseCache';   But if I do eliminate those lines (after I´ve uninstalled -not only disabled- memcached module), I get WSOD and this error:     Fatal error: Uncaught exception 'PDOException' with message   'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away' in   C:\Users\Vic\Desktop\XAMPP\htdocs\drupal\includes\database\database.inc:2139   Stack trace: #0   C:\Users\Vic\Desktop\XAMPP\htdocs\drupal\includes\database\database.inc(2139):   PDOStatement->execute(Array) #1   C:\Users\Vic\Desktop\XAMPP\htdocs\drupal\includes\database\database.inc(664):   DatabaseStatementBase->execute(Array, Array) #2   C:\Users\Vic\Desktop\XAMPP\htdocs\drupal\includes\database\database.inc(2318):   DatabaseConnection->query('SELECT expire, ...', Array, Array) #3   C:\Users\Vic\Desktop\XAMPP\htdocs\drupal\includes\lock.inc(167):   db_query('SELECT expire, ...', Array) #4   C:\Users\Vic\Desktop\XAMPP\htdocs\drupal\includes\lock.inc(146):   lock_may_be_available('schema:runtime:...') #5   C:\Users\Vic\Desktop\XAMPP\htdocs\drupal\includes\bootstrap.inc(405):   lock_acquire('schema:runtime:...') #6 C:\Users\Victoria in   C:\Users\Vic\Desktop\XAMPP\htdocs\drupal\includes\database\database.inc   on line 2139   Please note that I´ve deleted all cache, tried disabling (and enabling) all performance options, and I´ve run run cron more than once.  What should I do? Thanks!


I would like to know if it's possible to win in Don't Starve? Or is it just the matter of how long until you die?


Backup without free space in not recognized partition

I am trying to make a complete backup of an HDD partition to /dev/sdd (100gb), but I want to only take the contained data (50gb).  I can't access the internal data in the HDD for putting zeros with dd because Linux will not recognize it. Neither can I see the partition (but I know that only one partition exists).  The objective is: to take data (50gb) without free space and take  the tables and partition "form" because I want to clone it onto other HDD with a limit of 70GB, then it should be recognized by Xbox console  About my question: I've search in multiple forums but always uses the classic methods for cloning and surely I need advanced options for solved it  Add about CLONEZILLA: The clonezilla not works for me, because he can't recognized partitions of my hdd (maybe reason why is a xbox360 partition), therefore only can clone all partition..  How could I do it?  Thank you


How to add a Timeout to Console.ReadLine()?

I have a console app in which I want to give the user x seconds to respond to the prompt.  If no input is made after a certain period of time, program logic should continue.  We assume a timeout means empty response.  What is the most straightforward way of approaching this?


Double scrollbar bug in a code sample within lists

In  for the following question, two sets of scrollbars appear in the code sample.  The code sample appears within a list.  The bug can be reproduced both in Chrome, IE and Firefox.


How to force Illustrator CS6 to work in whole pixels and fix fractional points?

I've been using Illustrator to make a UI and as I learn how to use this software, the points of the shapes I made keep getting to fractions of a pixel. I have a great many points now and I'd rather not stop working every now and then to make sure every pixel is aligned to a whole value.  Is there a way to force Illustrator to only place points on whole values? Is there a way to clean up existing points to round them to a whole value?


Non-https links to other StackExchange sites in User profile when using https

The links to other StackExchange sites in User profile -> Summary -> Accounts don't use https when the User profile was accessed using https.


I know following expression is true:  [1, 2] instanceof Array   And that's a correct approach to distinct an Array from Object. But why following expression is false?  0 instanceof Number


Is this just a consequence of Publication bias or has a name of its own?

Scenario:  In our world, only statistically significant ($p<0.05$) results are published, everything else is rejected or not even handed in.  Let's now assume an experiment is $100$ times conducted and in truth $H_0$ holds. Since the $p$-value is uniformly distributed under $H_0$ (let's assume all conditions are satisfied) this would mean that on average $5$-paper could be handed in which all claim that they have found a statistically significant effect ($p<0.05$) and the academic world might actually believe in the alternative hypothesis $H_1$ although $H_0$ is actually true (of course no one would actually know that).  Question: Is this reasoning correct? I wonder how this reporting bias is called, it's different from the  (or just a consequence and that's why it has name of its own?).


list of list value assignment incorrectly

When I try to copy a value stored in a list of list to another list of list, Spyder in Anaconda mistakenly assign the value to all lists of the first dimension.  Please see the code below.  I tried to print the value A[0][2] and self.image[2][0] before doing the assignment, they show the correct answer of 0 and 1. But when completing the task of assignment, the address of A[0][2] seems to be read in correctly as A[i][2] for all i.  class BImage(object):      def __init__(self, image):         self.image = image         self.d1 = len(image)         self.d2 = len(image[0]) if len(image) > 0 else 0      # with a strange bug     def transp_image(self):         A = [[0]*self.d1] * self.d2         for i in range(self.d2):             for j in range(self.d1):                 # error:                 # when i == 0, j == 2, self.image[2][0] == 1                 # assign the value 1 to A[][2], instead of just A[0][2]                 A[i][j] = self.image[j][i]          self.image = A         k = self.d2         self.d2 = self.d1         self.d1 = k


I want to see in the search results only pages with the phrase "cross fade". Here's what I tried and some results I got:  "cross fade" (surrounded by quotes): received pages with: Crossfade (no space).  "cross fade" - crossfade (i.e. same as above, minus crossfade: cross-fade, 'cross, fade'.  I want to get only the exact phrase.


Easy explanation of "IND-" security notions?

There are many schemes that can advertise themselves with certain security notions, usually IND-CPA or IND-CCA2, for example plain ElGamal has IND-CPA security but doesn't provide IND-CCA security.  The most common ones are the "IND-" ones, advertising security against specific classes of attackers. Now these notion may not be that well-understood by many people so I ask hereby for a canonical answer, that explains what the following security notions mean. A (simple) description of the formal attack scenario is preferred. Please don't restrict the answer to "you can chose this and if you can break it with this it isn't IND-CCA2". Please at least outline the formal attack (like f.ex. real-or-random). Relations between the "IND-" are explained (f.ex. IND-CCA implies IND-CPA). The notions in question are:   IND-CPA IND-CCA IND-CCA1 IND-CCA2 IND-CCA3


When does "nature" require an article and why?

I was wondering about a sentence like this:   If nature were to design a bicycle, how would it look?   Is nature missing an article? Should it be a nature or the nature, or is it correct as is?    If a nature were to design a bicycle, how would it look? If the nature were to design a bicycle, how would it look?   Could you also explain why?


Is umount $mountpoint always enough to safely remove a single-partition USB drive on a modern GNU/Linux system? Or should I use sync && umount $mountpoint && sync, or perhaps umount $mountpoint && udisks --detach $device? I'd like to use the safest way possible, but on the other hand I don't want to introduce superfluous dependencies or delays into my program.  EDIT:  indeed answers a part of this question (whether sync && umount $mountpoint && sync provides any benefit over umount $mountpoint), but not the whole question (whether udisks --detach $device or some other command provides improved safety), so it's not an exact duplicate.


user is not in the sudoers file. tried to solve it, same result

I tried  and   with the same result:  root@avilellaM710t:/home/avilella# sudo adduser avilella sudo          The user `avilella' is already a member of `sudo'. root@avilellaM710t:/home/avilella# exit a vilella@avilellaM710t:~$ sudo ls [sudo] password for avilella:  avilella is not in the sudoers file. This incident will be reported.  avilella@avilellaM710t:~$ whoami avilella   Also, see:  root@avilellaM710t:/home/avilella# cat /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults        env_reset Defaults        mail_badpass Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"  # Host alias specification  # User alias specification  # Cmnd alias specification  # User privilege specification root    ALL=(ALL:ALL) ALL  # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL  # Allow members of group sudo to execute any command %sudo   ALL=(ALL:ALL) ALL  # See sudoers(5) for more information on "#include" directives:  #includedir /etc/sudoers.d   Any ideas?


Seeking administrative boundaries for various countries?

After learning about the  datasets I've working with the following layers, from the USA data   Country boundaries State boundaries County boundaries City boundaries ZipCode/Postcode boundaries   What I am trying to find is the equivalent (where appropriate) of the same data for various countries.  Is there any free administrative boundaries available as shapefiles for other countries?


It's possible to offer and award bounties of reputation on questions.   What is a bounty? How can I find questions that have a bounty attached? How do I start a bounty? When can I start a bounty? Why is the system requiring me to choose a bounty amount that's higher than the minimum? Can I use Markdown formatting in the bounty remarks? Can I edit the remark? How long is the bounty period? How do I award a bounty? Can I award a bounty to my own answer? Can I award a bounty to an old answer? If I offer a bounty on someone else's question, can I award the bounty to their answer? After awarding the bounty, can I remove it or move it to another answer at a later time? What happens if there's no answer after the bounty period? What happens if I feel my question is still unanswered? What is automatic awarding? Are bounty awards exempt from the 200 points/day reputation limit? How does Community Wiki mode affect bounties? How does user deletion or post dissociation affect bounties? Can I award a bounty to an answer from a deleted user or one where the author was dissociated? Can I offer a second bounty after the first one has expired? Can I raise my bounty? What happens if a bounty question is closed or deleted? Why can't I vote to close or migrate a bounty question? What happens if I delete my account while I have an active bounty? Do I keep an awarded bounty when I delete my answer? What happens if a question where I awarded a bounty later gets deleted or migrated? Can I cancel my bounty? Can I affect / divide / share part of my bounty to two (or more) users? How many outstanding bounties can a single user have?      See also:  in the Help Center


How did Lore come into a relationship with the Crystalline Entity?

Does anything speak to how a lone android could have made an alliance with the Crystalline Entity? The Entity was apparently brought to Omicron Theta by Lore, but how did Lore even know of the Entity to do this?   Presumably they met at some point, or perhaps the Entity was known to have been in that system in the past, and so Lore figured out a way to attract it to the planet.


So I'm fairly new and ended up being the Cleric in my also fairly new group. I haven't played a caster before and the book says that at level 1 I have Bless and Cure Wounds. Do I need to assign these to a spell slot or do I have them inherently (not to be confused with a cantrip; I know I'd have to use a slot to cast them)?


How many flags to you need to reach each rank in your secret base?

In secret bases you can collect a flag of each new secret base you find. I've noticed some bases have different color flags, which I assume means a different rank. How many flags to you need to get a new rank (silver rank, etc.)?


Why two operators for deleting dynamically allocated memory?

This question may sound a bit weird, but I never entirely got why do we need to have 2 different syntax for deleting dynamically allocated memory in C++?  For example,  int *p = new int[10]; delete[] p; // why not just delete p;?   In plain old C, you just use the free function to release the memory allocated for a pointer, regardless of the number of elements allocated. Of course, C++ is a bit more complicated, as it allows for class types, which invoke their destructor etc. However, I see no impediment in using a single syntax for deleting dynamically allocated memory in C++.  Is there any fundamental reason why it was decided to use 2 versions, delete and delete[]?  More than that, most compilers do not even warn you if you use delete instead of delete[], and this creates undefined behaviour.


entire function with ist imaginary part positive

$f$ is an entire function, and it satisfies $f(\mathbb{C}) \subseteq \{z \in \mathbb{C} \mid \operatorname{Im} z > 0\}$. Show that $f$ is constant.   I want to take advantage of the Liouville's Theorem, but I just can't figure out the relationship between its image part with its module.


Why does the complex equation $z=Ae^{it}+Be^{-it}$ represent an ellipse?, with $A,B \in \mathbb C$  How can it be described?


How does the tension in the clamp of a atwood machine equal twice the tension in the string?

This says that the tension acts downwards. But then what about the weight of the bodies?


How can I update everything installed through Homebrew after OSX upgrade?

After updating to 10.8 ‘Mountain Lion’ I’m wondering how I can rebuild everything I have installed through the packaging system Homebrew (similar to MacPorts) to ensure all dependencies are installed optimally for the new system. How can it easily be achieved? The help file offers no hints as to how I can accomplish this.


Subscription on numbers does not raise syntax error?

Why is the following program print -7 instead of throwing syntax error? Code: #include <stdio.h>  int main (int argc , char **argv) {     int arr[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};     int *b = arr + 6;     printf("%d\n", -1[b]);     return 0; }


What is the history of the front end modification to the Millennium Falcon?

A  shows at 1:28 the Millennium Falcon having quite the streamlined front end:  When it is seen in Star Wars: Episode IV - A New Hope, it clearly has a more distinctive gap in its front:  When and why is this modification made?


Setting up an application in QT Creator that uses QGIS API

I am a 15 year veteran of Java making my first entry in to C++ applications.  I have a specific need to develop a desktop application that produces graphics type output as well as displaying embedded maps.  It looks like Qt and QGIS API are exactly what I need to get this going.  I have been playing around with Qt Creator and generated several of the tutorials without too much problems.  Now I am trying my first Qt project that incorporates the QGIS API.  I am really stuck.  I can't figure out where the libraries are that contains the QGIS modules.  I think I have an idea how to configure the Qt project if I could find QGIS.  I found all the .h files but some of what I need just aren't there.  There are some good examples of code that shows how to code with QGIS classes.  But I can't find anything that explains how to set the project up.  Could someone please help guide me through setting up a project in Qt Creator that will allow me to incorporate the QGIS modules?  I have been searching everywhere.  Google can be a strange beast.  Sometimes you find what you need on the first search.  Other times it just never happens.


A wise guy who goes by the name of NickN maintains a lenghty  on his views about building a powerful computer (directed towards playing Microsoft's Flight Simulator X, a very demanding piece of software).  He sums up points about SSD drives somewhere, and he concludes the list as follows:     DO NOT PARTITION SSD    He doesn't elaborate on this unfortunately, but I wonder why he says this. What are the drawbacks of partitioning an SSD? (Partitioning in this context meaning >= 2 partitions)


The derivative of $\int_0^xxf(t)dt$ and why we cannot treat $xf$ as continuous.

This comes from Calculus by Michael Spivak, 3rd ed., chapter 14, Problem 11.   Find $F'(x)$ if $F(x) = \int_0^x xf(t)dt$. The answer is not $xf(x)$; you should perform an obvious manipulation on the integral before trying to find $F'$.)   Here, Spivak fails to include the assumption that $f$ is continuous. With this assumption, the answer is $\int_0^xf(t)dt + xf(x)$, and is solved , , and . I understand the solution. I was able to do it myself. It makes sense to me. I also solved it using the $\lim_{h\to 0}$ approach, and that worked too. Yet, naively, it seems like the answer should be $xf(x)$. It seems like since $x$ "behaves like a constant" in that integration, and because $f$ is continuous, then $xf$ must also be continuous, and so $F'(c) = cf(c)$. I'm hoping to build better intuition about why this is wrong. I was thinking perhaps one way of looking at it is that $xf$ cannot be assumed to be continuous because we are free to change the value of $x$ somewhat arbitrarily. In fact, at any fixed point $c$, $xf(c)$ varies with $x$, so certainly we cannot guarantee anything about the value of $xf(t)$ simply by restricting $t$ to certain values. Does this make any sense? I'm sorry to use such sloppy reasoning/language/arguments. There's a good chance I just don't yet have the tools to fully "get it" yet, but I appreciate any insight you might be able to share. Edit Ian's answer helps explain something that confused me in Spivak's solution to a later problem. The next two problems are:   Prove that if $f$ is continuous, then $$\int_0^xf(u)(x-u)du = \int_0^x\left(\int_0^uf(t)dt\right)du.$$ Hint: Differentiate both sides, making use of Problem 11.     Use Problem 12 to prove that $$\int_0^xf(u)(x-u)^2du = 2\int_0^x\left(\int_0^{u_2}\left(\int_0^{u_1}f(t)dt\right)du_1\right)du_2.$$   These each require fairly straightforward calculations, the details of which we can skip here. However, in the published Answer Book solution for the latter, problem 13, Spivak does something that initially I found baffling. He begins:  Applying Problem 12 to $g(u) = f(u)(x-u)$, we obtain $$\int_0^xf(u)(x-u)^2du =\int_0^x[f(u)(x-u)](x-u)du$$ $$=\int_0^x\left(\int_0^uf(t)(x-t)dt\right)du$$  This substitution is misleading. The result he's using from problem 12. applies only to functions that do not depend on $x$, while Spivak's $g$ here clearly does depend on $x$. I think he gets away with it here only because $\frac{\partial}{\partial x}[f(u)(x-u)] = f(u).$


How to set a DIV block with dynamic size with header DIV block above it at center of the page horizontally and vertically?

I have a DIV block where there are a title and an image into the him. The image is setted by mouse click, so I don't know the size of image and DIV block. It's a structure:    .view-image .header { text-align: center; border: 1px solid black; } .view-image .image { max-width: 100%; }  .view-image {     position: absolute;     margin: auto;     left: 0;     right: 0;     top: 0;     bottom: 0;     width: fit-content;     height: fit-content;     max-width: 100%;     text-align: center; }

View of image

     I need that view-image block will take place in the centre of page horizontally and vertically. And, it's very important, the width of header and image blocks must be same.  Later I saw that Firefox doesn't support height: fit-content, in the IE and Edge also width: fit-content doesn't work.   How to make this? Of course, I can set a view-image sizes by JavaScript after image selecting, but if is it possible, it will be better do it without JS.  P.S. I want to write why my question isn't a duplicate in my opinion. The main complexity is the width of header block. If I use the flexbox as you suggest, the width of header will be count by width of the its inner text, and header width doesn't equal to image width. But if I use the fit-content as in my code, the header width and the image width are idential. It's very important for me, because in my site the header has a borders and background color, and if these blocks have different width, it won't be good. Maybe I wrote my question incorrect, then I'm sorry and I have edited my question. I have changed the title and added the border for header block in my code  Added: I found the solution by changing the structure to this:

View of image

   I'm very sorry for incorrect question


I get these errors when I try to compile. I tried fixing them, but I'm not getting anywhere. I don't know what's wrong

/tmp/cc8VVSeG.o(.text+0x122): In function `main': : undefined reference to `TemperatureList<double>::TemperatureList(int)' /tmp/cc8VVSeG.o(.text+0x13d): In function `main': : undefined reference to `TemperatureList<double>::add_temperature(double)' /tmp/cc8VVSeG.o(.text+0x158): In function `main': : undefined reference to `TemperatureList<double>::add_temperature(double)' /tmp/cc8VVSeG.o(.text+0x173): In function `main': : undefined reference to `TemperatureList<double>::add_temperature(double)' /tmp/cc8VVSeG.o(.text+0x18e): In function `main': : undefined reference to `TemperatureList<double>::add_temperature(double)' /tmp/cc8VVSeG.o(.text+0x1a8): In function `main': : undefined reference to `TemperatureList<double>::get_last() const' collect2: ld returned 1 exit status   This is the code:  templist.h:  #ifndef TEMPLIST_H_ #define TEMPLIST_H_  #include <iostream>  using namespace std;  template <class T> class TemperatureList{ public: T* list; long size; long MAX_SIZE; TemperatureList(int n); void add_temperature(T temperature); bool full() const; long get_size() const; T get_temperature(long position) const; void output(ostream &outs) const; T get_last() const; void detele_last(); };  #endif   templist.cpp:  #include "templist.h"  template <class T> TemperatureList<T>::TemperatureList(int n){ list = new T[n]; MAX_SIZE = n; size = 0; }  template <class T> void TemperatureList<T>::add_temperature(T temperature){ if (full() == false){ list[size] = temperature; size += 1; } }  template <class T> bool TemperatureList<T>::full() const{ if (size == MAX_SIZE) return true; return false; }  template <class T> long TemperatureList<T>::get_size() const{ return size; }  template <class T> T TemperatureList<T>::get_temperature(long position) const{ if (position >= size || position < 0) return 0.0; return list[position]; }  template <class T> void TemperatureList<T>::output(ostream &outs) const{ for (long i = 0; i < size; i++) outs << list[i] << endl; }  template <class T> T TemperatureList<T>::get_last() const{ if (size == 0) return 0.0; return list[size-1]; }  template <class T> void TemperatureList<T>::detele_last(){ if (size > 0); size -= 1; }   main.cpp:  #include "templist.h"  int main(){ TemperatureList<double> temp(50); temp.add_temperature(4.0); temp.add_temperature(7.0); temp.add_temperature(8.0); temp.add_temperature(9.6);  cout << "Last element is : " << temp.get_last() << endl; return 0; }


How can I make the board render correctly (Sharelatex)?

I'm trying to use the psgo package to insert some go diagrams into a sharelatex file, but the boards are failing to render. Here's a minimal example:  \documentclass{article} \usepackage{psgo} \begin{document} \begin{psgoboard} \end{psgoboard} \end{document}   This results in the bad jumble of letters and numbers below:    How can I fix this? I feel like I'm missing something obvious, but I'm not sure what.


“Sorry, ubuntu 13.04 has experienced an internal error”

I am not sure what is causing this problem occurs every time at the start after booting.  Bug reported


how do we share files from Mac to Windows?

Is there anyway we can read the files in a Mac laptop using a Windows laptop?  Like I have a movies folder in Mac and I want to view those movies in my Windows laptop (without having to transfer those files through my USB thumb drive of course)


Why the current decreases with increase in voltage in transmission lines? But according to Ohm's law current should increase with Voltage

Is the Ohm's law violated here? And also why is electricity generated at 11,000 V in India?


Newest tab on mobile shows last editor, instead of OP

There is a minor inconsistency in the newest tab, between the mobile and the full site.   In the mobile site it shows the person that did the last edit (or who posted the last answer) - just like in the "active" tab    but in the full site is shows the OP.    This seems like an (admittedly really minor) bug to me...


recent l3kernel package and TikZ library calligraphy are not compatible

Today I update my MikTeX installation. Among updated packages is l3kernel which doesn't work with calligraphy library, even if it is not used in TikZ picture:  \documentclass[border=1mm, tikz]{standalone} \usetikzlibrary{decorations.pathreplacing,%                     calligraphy                 } \begin{document}     \begin{tikzpicture} \draw[->] (0,0) --(3,0) node [right] {$t$};     \end{tikzpicture} \end{document}   which gives error:  ! LaTeX3 Error: Variant form 'nnV' deprecated for base form '\spath_get:nnN'. (LaTeX3)        One should not change an argument from type 'N' to type 'V': (LaTeX3)        base form only accepts a single token argument.  Type <return> to continue.   After abandoning of compilation editor open file spath3.sty and indicate that error has source in line 197:  \cs_generate_variant:Nn \spath_get:nnN {nnV,VnN,VnV}   Since I frequently use the calligraphy I stuck with my temporary LaTeX project. It had problem with l3... packages before, but it had been managed with temporary fix provided in :   \usepackage{expl3} \ExplSyntaxOn \int_zero_new:N \g__prg_map_int \ExplSyntaxOff   but this temporary fix is not sufficient anymore :-(.  addendum: meanwhile i had private correspondence wit author of the package spath3 and tikz libraries calligraphy and knots (among others). I had privilege to test new version of the package and libraries. The tests has been successful, so we can expect that new version of spath3 bundle (package, libraries) will be on the way to CTAN soon.   Thank you to all who with their comments help me, special thanks is going to Andrew Stacey, the authors of the package and libraries, who respond so quickly and provide new version of package and libraries.


I am having Problems converting user rights. I want to assign the following rights to certain files/folders but dont know hat to translate them into a format which chmod will work with like chmod 755.  -rwxrwxrwx    will be?  And  drwxr-xr-x   will be?  And finally  -rw-r--r--   will be?


Why I am getting java.lang.NullPointerException at jButton1MouseClicked and access$300?

I'm trying to make a login screen by fetching Card No and PIN from database using xampp for ATM app by giving input as Card No and PIN then it is showing error as:  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at Atmcardno.jButton1MouseClicked(Atmcardno.java:228) at Atmcardno.access$300(Atmcardno.java:15) at Atmcardno$4.mouseClicked(Atmcardno.java:128)   My jButton1 code for login and fetching the Card No and Pin is shown below. I've been programming in java swing and need help.      System.out.println("Starting...");            if(((cardno.getText()).equals("")) && (pwd.getPassword().equals("")))           {            JOptionPane.showMessageDialog(this,"Please enter ATM Card No and PIN No.","Warning!!!",JOptionPane.WARNING_MESSAGE);        }           try{               System.out.print("Starting1...");                 int foundrec=0;                 Class.forName("com.mysql.jdbc.Driver");                 Connection con= DriverManager.getConnection("jdbc:mysql://localhost:3306/atmdb","root","");                 System.out.println("Connected to database.");       PreparedStatement ps= con.prepareStatement("select* from accountdetail where atmno='"+cardno.getText()+"' and pinno='"+pwd.getPassword()+"'");                 ResultSet rs= ps.executeQuery();                 while(rs.next())                 {                     atno=rs.getInt(1);                     System.out.println(atno);                     acno=rs.getInt(2);                     System.out.println(acno);                     pno= rs.getInt(3);                     System.out.println(pno);                     String cardname= rs.getString(5);                     System.out.println(cardname);                     String expdate= rs.getString(7);                      try                     {                         SimpleDateFormat sdf= new SimpleDateFormat("yyyy-mm-dd");                         Date d1= sdf.parse(curdate);                         Date d2= sdf.parse(expdate);                          System.out.println("Expiry date of ATM card is "+sdf.format(d2));                         System.out.println("Today's date is "+sdf.format(d1));                          if(d1.compareTo(d2)>=0)                         {                             JOptionPane.showMessageDialog(null, "Hello "+cardname);                       //      new AccountType().setVisible(true);                         }                         else if(d1.compareTo(d2)<0)                         {                             JOptionPane.showMessageDialog(this, "Your ATM card is out of expiry date, please visit nearest branch for more information.","Warning",JOptionPane.WARNING_MESSAGE);                             new Welcome().setVisible(true);                           this.setVisible(false);                           }                      }                     catch(ParseException pe)                          {                               System.out.println("Exception in date format. "+pe);                               pe.printStackTrace();                          }                     foundrec=1;                 }                  if(foundrec==0)                 {                     JOptionPane.showMessageDialog(null, "Invalid ATM card no. or PIN no. ","Warning",JOptionPane.WARNING_MESSAGE);                  }              }             catch(Exception e) {                 e.printStackTrace();             }


Transform LMI problem into different SDP form

I am trying to transform a LMI problem of the following form:  $ min_x \quad c^Tx \\ s.t. \quad x_1A_1+\dots+x_nA_n \preceq R$  into another SDP formulation:  $ min_x \quad c^Tx \\ s.t. \quad Ax = b, \quad X \preceq 0$  where x=vec(X) obtained by stacking the columns of X. Thank you!  Initial Idea:   Introduce slack variable S. Replace LMI constraint by:    $ x_1A_1+\dots+x_nA_n - R = S, \quad S \preceq 0$   Augment the decision variable x --> $\tilde{x}=[x,s]^T$.  Replace c by $\tilde{c}=[c,0]^T$.   But then I dont know how to continue.


I would like to know if there's a way - without installing a third party program - to view a graphical item, such as a photo, inside terminal.  I'm running Ubuntu 17.04  Thank you!


Can I cook chicken in the over after leaving them sitting in the oven all night?

I put some wings in the oven last night and then forgot about them and my roommate turned the oven off. They weren't fully cooked but is it still okay to fully cook them now and eat them or would it be better to throw them out?


Does an impossible value on a Confidence Interval for a probability distribution contain information?

Suppose I analyze a distribution and determine that a 95% CI for some measure is [-1, 1] (bearing in mind the actual value in this case cannot be < 0). And suppose another 95% CI for some other measure is [0,1]. Can I, based on the CI, conclude anything different for these two CIs? What if the first CI was [-100,1]? My intuition says that, eg, the [-100,1] example i should expect a lot more values near zero than in the [0,1] example. The question boils down to: Does a CI that contains 'impossible' values contain information above the tradition interpretation of that CI, that conducting after the experiment a lot of times, 95% pf the results will be in [0,1]?


Windows 8.1 Connecting to Wrong Wireless Network

I have a Windows 8.1 laptop (Lenovo Y510p, if it matters) which I have configured to connect to my home wireless network. The network works mostly fine, and Windows is set up to remember it correctly.   However, when I start the computer or resume it from sleep mode, it will sometimes decide to connect to a nearby, unseccured wireless network instead. This is not a network I've ever told it to connect to, and it has a random uncommon SID "Apple Network a89b9c" which I'm sure I've never used anywhere else. Despite that, it will frequently connect to that network in preference to my own home network, and despite the fact that I can't get any actual connectivity through that network.   Ideally I would like to stop Windows from promiscuously connecting to any unsecured WiFi that happens to be in the area. Failing that, I would at least like to block that particular network. I have Googled for this but with no luck. Any help would be appreciated!


I didn't phone Peter this morning / I haven't phoned Peter this morning

Example:  I'm calling Peter at work at 9:00 this morning. He isn't answering, and the only way for me to call him is at work.   At 10:00 in the morning, I finish my work, as usual. I leave my business phone at the desk.  At 11:00 in the morning, I'm meeting my friend and tell him:     I didn't call Peter this morning.   or     I haven't called Peter this morning.   Considering it's still "this morning", the present perfect should be used, but since I'm not going to call Peter this morning again, as I left my phone at the office, there is no chance for me to call Peter again, so which tense should be used? The past simple or present perfect?  This is what books say:     If we think of this morning (etc.) as a past completed time period, then we use the past simple; if we think of this morning (etc), as a time period which includes the present moment, then we use the present perfect.      I didn’t shave this morning. ( = The morning is over and I didn’t   shave)      I haven’t shaved this morning. ( = It is still the morning and I might   shave later).


Use Roth IRA to pay portion of federal student loans?

I'm a graduating medical student, and have ~$220,000 in student loans.  The majority of this (~$180,000) is in federal student loans at 6.8%, with the rest being at a lower rate (4-5%).  I also have ~$20,000 in a Roth IRA which I've been contributing to for about 15 years.  Should I close out the Roth IRA to pay down my student loans?  I'm starting residency in a few months which pays ~$55,000/yr, and after cost of living I won't be able to contribute much over the minimum payments to my loans until after residency.


Excel - Filling images using a reference image

I have a spreadsheet that I use to create baseball cards for a tabletop baseball game.  There are about 20 cards on my sheet, and I'd like to add a spot where I can set the logo and have it reflect that logo in each card without having to update 20 different images each time I create cards for a new team (and thus, a new logo).  Is there a way to automate this process similar to setting one cell equal to the value of another (=A4, for instance)?   I think the images aren't part of a cell and they float on top of the sheet, but I had hoped there was a way either with a macro or other VBA function (or maybe something built-in) that would accomplish this.


undefined reference to `sqrt' and using -lm and math.h

I'm using gcc and running the following command   cc -Wall -Wextra -pedantic -lm    secondDegreeFormula.c   -o secondDegreeFormula.  I have included math.h and have put the flag -lm. Why does it happen?


How to dynamically look up shell variable name

I have this situation:  zmx_stderr='\033[1;35m' zmx_stdout='\033[1;36m'   tag='foobar'  tailing(){   echo "tailing logs for ${tag} ...";   while read line; do    echo -e "$zmx_${1} $tag $1${zmx_no_color}: $line"   done; }   someone calls tailing() with:  tailing stderr tailing stdout   how can I look up the zmx_stdout and zmx_stderr dynamically?  This doesn't work:  $zmx_${1}   I just get this:  stdout foobar stdout:   but I am looking for:  foobar stdout:   with control chars being generated.


Manually Place a Figure in LaTeX (here: End of Chapter/Section)

I have a little problem with the placement of my picture. I want to insert it at the end of the introduction chapter but its place is not where I want.   I think the problem become from the:  \begin{figure} ... \end{figure}   Because when I insert the picture without using \begin{figure}... the picture is at the end of the chapter as I want.   Look the picture below.


How do I right-align a specific table column sitewide?

I am making a Wordpress site that will have side-by-side song lyrics in English and Arabic.    Example page:    You see that the English side is left-justified and the Arabic side is right justified.I have done this manually in the Wordpress CMS by adding the right align HTML tag to each row in the html table.   Is there any way to set up site-wide CSS that will automatically right-justify the right-hand column of all tables on the site?   I have googled around this query and have not found a way to auto-right justify CSS tables but not found anything that does this.  The current code I'm using to right-justify the right column is:   <td style="text-align: right;">


Asimov short story with several encounters to further the human race, ends with the Big Bang

I'm looking for a short story that I believe was written by Asimov back in the 50's or 60's.  I read it in an anthology I checked out of the library back in the 80's or 90's.    The story is like a stone skipping across time.  At each point in time two characters play out the same situation of asking what is going to happen in the future.  In each instance one person leaves the encounter to further the human race.   In the last encounter as the last star in the universe is about to burn out the characters wonder what will happen next and then there is a big bang.


How can I locate what's causing postgres to consume so much cpu on ubuntu

I ran top on my VM droplet and saw my postgres consuming a ridiculous amount of CPU in the background. I'm currently not running any queries.  How can I locate, given the information from the picture above, what's causing my postgres to act up. I see the PID and Command id's, wonderinf if I can use those to help me out.


What's some safe advice for a beginner for making sushi?

I suddenly felt like making sushi. I thought about going to the fish market and buying so tuna and salmon.  Then I figured out that I have to kill the bacteria first. So far, I know that you have to freeze the fish under 20 Celsius.  Is there anything else I have to put into account?


How to tag more than 20 people in Facebook 1

Nowadays I'm able to tag only 19 members . I want to increase my tagging list up to 50 members in single post . And I've promoted as page admin for one page, in that I'm unable to tag even single person. kindly try to help me and solve the problem .


Keyboard shortcut for enabling margins' gridlines in Word 2013?

Weird lines appeared in my .docx documents, when I open them in Word 2013:    I know what  and .  Here I am asking, how did I get them in the first place? Because I am million percent sure that I haven't visited  neither in my Word 2010 nor Word 2013 for ages.  So, how it is possible that I see them now and haven't seen them yesterday or the day before yesterday? Is there some magic keyboard shortcut that I accidentally pressed that enabled them?


I ran a few jobs with at command and, if possible, I want to see which commands I ran in what directories. I work with Linux Mint 16 if this is relevant.


Render Preview is fine, but a plane is missing on the final render

Render preview looks like this   But when I hit render, I get this image   Does anyone know why? I'm using filmic blender color management if that makes a difference.


I recently started learning java and I am kinda stumped by this---  the below program determines the speed of the for loop--  public class ForLoopExample {     public static void main(String[] args) {         long startTime = System.nanoTime();         for(int a = 0; a < 10; a++) {             System.out.println(a);         }          long endTime = System.nanoTime();         System.out.println("for loop timing =  " + (endTime - startTime) + " ns");         System.out.println("loop completed");     } }   and the output timing is:          for loop timing = 853716 ns      The program determining the speed of the while loop:  public class WhileLoopExample {     public static void main(String[] args) {        int a=0;        long startTime = System.nanoTime();        while(a < 10) {             System.out.println(a);             a++;        }        long endTime = System.nanoTime();        System.out.println("while loop timing = " + (endTime - startTime) + " ns");      } }           while loop timing=928358 ns      Why does this happen a detailed explanation would be appreciated.


In our home network, with continuous network IO happening latencies get ridiculous. It's fine with light loads but quickly becomes unusable if I'm, say, rsyncing a large number of small files, --other transfers essentially stop. Pings get through just barely.  Simple topology -- a broadband modem / WIFI router in a single box, with some wireless and some wired clients.   I've tried setting ifconfig wlan0/eth0 txqueuelen 1 on all clients, this seems to help a bit but not by much.  Tips welcome: how should I go about diagnosing and eliminating latency problems? Are there more configuration settings I can set on clients, or maybe a better WIFI routers could help?


Is Christmas equally Likely to fall on any day of the week?

Assuming Christmas day falls on the 25th of December every year, and using the Gregorian calendar, is it equally likely to fall on any day of the week? (With no prior knowledge about last year's Christmas day, or the year before, or the year before that...)   It would appear from a linked question, and a helpful answer that this is not true for 400 years (since it is not divisible by seven). But it is true for 2800 years (since it is divisible by seven). Is there a flaw in this thought process, or does this question inherently depend on the time period you consider?


How to retrieve last character of string?

I am trying to find something similar to JAvascripts charAt() to get the last character of a String. I am trying using indexof and I just can't. I get the first value returned. Thus, I tried doing it with a loop but I cannot manipulate the looping variables. :(  How could I do something like:   SET @char = lastIndexOf(@myString, @whatIamlookingfor)  OR SET @char = charAt(@myString, Length(@myString))   Please help!!


$\{x_n\}$ be a bounded sequence of distinct real numbers , $|x_{n+1}-x_n|<|x_n-x_{n-1}|,\forall n\in \mathbb N$ , then is $\{x_n\}$ convergent?

Let $\{x_n\}$ be a bounded sequence of distinct real numbers such that $|x_{n+1}-x_n|<|x_n-x_{n-1}|,\forall n\in \mathbb N$ , then is it true that $\{x_n\}$ converges ?  The motivation for this comes from the fixed point theorem that if $X$ is compact metric space and $f:X\to X$ is a function such that $d(f(x),f(y))<d(x,y),\forall x,y \in X , x\ne y$ then $f$ has a fixed point.


Cannot login to server after file permissions change

I am using Ubuntu server. I ran:  chmod -R 700 /   when I was logged in as root. Now when I try to login as my normal user I immediately get kicked out. Is there anyway to log back in to the server whether it is root or whoever so that I can change the permissions? or am I totally screwed? I dont think I have root access enabled in the /etc/ssh/sshd_config file. I do have physical access to the server. I really need some help here.


I have the following code:  View.OnClickListener calcu = new View.OnClickListener() {     public void onClick(View v) {         double q;         String d = "";         double factor = cpi[to] / cpi [from];         DecimalFormat decimalFormat = new DecimalFormat("0.##");         if (eNum.getText().toString().length() <= 0 || bFrom.getText() == "- Select a Year -" || bTo.getText() == "- Select a Year -") {             if (eNum.getText().toString().length() <= 0) {                 d += "Enter Dollar Amount";                 eNum.setTextColor(Color.RED);             }             if (bFrom.getText() == "- Select a Year -") {                 d += "Select a Year";                 bFrom.setTextColor(Color.RED);             }             if (bTo.getText() == "- Select a Year -") {                 d += "Select a Year";                 bTo.setTextColor(Color.RED);             }         }         else {             dollarAmount = factor * Double.parseDouble(eNum.getText().toString());             String value = Double.toString(dollarAmount);             if (value.charAt(value.length() - 2) == '.') {                 value += "0";             }             displayToast("Dollar: " + value);              if (cpi[to] != cpi[from]) {                 double f, y;                 if (cpi[to] > cpi[from]) {                     f = cpi[to] / cpi [from];                     y = to - from;                 }                 else {                     f = cpi[from] / cpi[to];                     y = from - to;                 }                 q = Math.pow(f, 1/y);                 q = (q-1)*100.0;                 q = Math.round(q*100.0)/100.0;                 displayToast("Inflation: " + String.valueOf(decimalFormat.format(q)));             }         }     } };   displayToast() is a function which displays the Toast message to the user.  eNum is an EditText  bFrom and bTo are Buttons  What I want to happen when the onClick method is activated:   If the eNum is empty, I want to make the text color RED. If the bFrom and bTo buttons text is - Select a Year -, I want to make the text color RED. If #1 and #2 is not true than display the Toasts.   Right now when I click, nothing is happening. How do I fix the above code to work correctly?


I'm trying to unwrap some new faces after fixing some topology on a model that is already textured (in particular at the edge of the mouth).  For some reason a number of faces just won't seem to unwrap or show up in the UV editor after I select and unwrap them. I've tried pinning vertices around them, messing with seams, and checked the normals, but no luck.  In the viewport, they seem to take the texture. But the faces/verts just aren't showing in the UV editor, so I can't get them in the right place.  The picture shows the gap in the UV where the new faces need to be and on the right are the faces I'm trying to unwrap.


HTML, CSS - Align child element of div at bottom of div

I have a "position: fixed" for one of my elements, therefore, causing my component to not render the way I want it to. So basically I'm creating a Twitter clone right now. I'm doing the navbar but I'm stuck:

   I need to be able to position the elements in the ".bottom" class at the bottom of the page. I had learned a trick that allowed me to set the margin-top property of the ".bottom" class to auto in order to achieve my goal, however, it's not working anymore since under the ".nav" class I have a ".sub-nav" class in order to give it a position of fixed. Could someone please provide a viable solution? Thanks.


My Laptop is slowed down to freezing and taskkiller.exe is doing it by eating up memory

I don't know how I may be got attacked with malware, but my laptop is slowed down to hell. I checked the Task Manager, there I found that a command line "C:/Windows/system32/taskkiller.exe" is taking up all my memory. It pops up one after another after another, my PC is so slow that I can't even take the offline version of Antivirus (Bitdefender, Avira) from my Android to PC.   I tried switching off Windows Defender for good, no results. I know, all I need is to get the Antivirus in my Laptop. I even tried to kill "taskkiller.exe" by deleting from Command Prompt (Admin) by trying "del taskkiller.exe". It said,"Access Denied".   I have Windows 10,


Quick question about ideals of field $F$ in $F[x]$ are principal.

Just got a question about ideals of $F[x]$ being principal with $F$ being a field.  The proof basically starts assuming $g(x) \in N \subset F[x]$ where $N$ is an ideal and $g(x)$ is a minimal degree element. The rest is just deducing the what the division algorithm says.  But my question is that shouldn't we let $g(x)$ be arbitrary? Why are we choosing the minimal element?


Given sequence {$a_{n}$} and supposing its set of cluster points $S_{p}$ is non-empty and bounded above, prove that $\limsup\limits_{n\rightarrow\infty}a_{n} = \inf_{n \geq 1}\sup_{m \geq n}a_{m}$.  I started by setting $x=\inf_{n \geq 1}\sup_{m \geq n}a_{m}$ and $y=\limsup\limits_{n\rightarrow\infty}a_{n}$. This then means I would have to show that $y \leq x$ and $y \geq x$, but I'm not really sure how to do this.


MacBook Pro 2016 with Touch Bar - Dual-Booting Ubuntu

I bought the new MBP 2016 with Touch Bar. So far I know that Touch Bar is not available for Ubuntu users, but it is fine. I think this technology will be available in a couple of months. Does anyone tried to install Ubuntu on dual-booting on this computer? If so, does this technology work fine or not (and why)?  EDIT :   Knowing that I'm not talking about the Touch Bar directly. My question is rather related to the compatibility of Ubuntu with this new device. I'd like someone could explicit his/her experience so far. So, if a person has succeeded to install it, I'd like how he did it and if it works well.  Thanks in advance!