starting a terminal in desktop (ubuntu 14.04)

Anyone know how to start a (Linux) terminal in Ubuntu 14.04 desktop? I could not find an icon for it on the task menu bar along the side of the desktop. :(  Thanks ahead!!!


"The Bachelorette Problem" (slightly adapted from Tao's Google+ account)

The following puzzle being very much recreational for me, I couldn't resist myself from sharing it with my fellow MSE user friends. Let's have a look at it.  You are the most eligible bachelorette in the kingdom, and as such the King has invited you to his castle so that you may choose one of his three sons to marry. The eldest prince is honest and always tells the truth. The youngest prince is dishonest and always lies. The middle prince is mischievous and tells the truth sometimes and lies the rest of the time. As you will be forever married to one of the princes, you want to marry the eldest (truth-teller) or the youngest (liar) because at least you know where you stand with them. The problem is that you cannot tell which brother is which just by their appearance, and the King will only grant you ONE yes or no question which you may only address to ONE of the brothers. What yes or no question can you ask which will ensure you do not marry the middle brother?  Though it wasn't given in the original problem let's impose the condition that "No answer" isn't a possible answer. Note: this problem is also called the Bachelor Problem, with genders reversed (explicitly mentioned so that (SE) searches on either name will succeed).


Cartoon series from the 90's with a Star Wars feel and a toy that allowed you to 'take part' in the fight on screen

I watched a few episodes of this series in the 90's or 2000's, I'm in France so I'm quite certain the series aired earlier on US channels.   The main character was some sort of ship captain battling against some villain on a mostly destroyed planet. I remember the fighting scenes on screen being very reminiscent of Star Wars IV and VI when they fight in and around the Death Stars,  ships zooming all around and firing while manoeuvring through half-destroyed scaffolding with turrets everywhere. It usually looked like a mix between the famous trench run and the half constructed second space station.  I think they used early CGI for the cartoon, not only the fight scene but for the characters and maybe even the landscape of the planet, but I could be mistaken.  I also remember that they sold a toy ship, that must have been the ship of the main protagonist, but I'm not completely sure, that was advertised as allowing you to take part in the battle. I believe it had some sort of sensor built-in and would react to shots fired on screen by making the figure of the pilot pop out of the cockpit.


Intersection of Ideals of coprime elements in a UFD

Let $D$ be a UFD and let $a,b,c \in D$ be pairwise coprime, i.e. $\gcd(a,b)=\gcd(b,c)=\gcd(a,c)=1$. I would like to prove that then $(a,b) \cap (c) = (a,b) \cdot (c) = (ac,bc)$. Note that $(a,b)$ and $(c)$ are not necessarily comaximal ideals, so this does not follow immediately.  Here is my approach: $(ac,bc) = (a,b) \cdot (c)  \subseteq (a,b) \cap (c)$ as this holds for all ideals. Now let $x \in (a,b) \cap (c)$. Since $x \in (a,b)$ there exist $d_1, d_2 \in D$ with $x=d_1a + d_2b$. As $x \in (c)$ we know that $c|x$, but how can I use that the elements being coprime of means that $c$ divides $d_1$ and $d_2$?


Is it possible to make a command that makes "LRA" a shortcut for \Leftrightarrow?

I have to write \Leftrightarrow quite often, and i am currently using a macro for it, but it isn't working too well. Is it possible to make it so that when i type LRA in a math field, that it then outputs it as a \Leftrightarrow? Thanks a lot for any and all help!


I am flagging posts on SO which do not appear to be helpful to the site. If the flag i raise is helpful then why is my flag marked as disputed/not-helpful.   Most of the questions I have flagged have been put on hold. How does this happen?  Check the following screen shot:


What will be the best mysql settings for 3gb server?

I have a 3GB server with the below settings. The issue I am facing is when I pull some records through the admin panel of my site, sometimes it works well, but most of the times it process very slow.   Can you please suggest the settings?  [mysqld] max_connections=500 join_buffer_size = 2M tmp_table_size = 24M max_heap_table_size = 24M query_cache_size = 256M key_buffer=128M key_buffer_size = 512M thread_cache_size = 4 table_cache = 500 table_open_cache = 96 innodb_buffer_pool_size = 27M slow_query_log local-infile=0


What is the significance of return 0 in C and C++?

I need the simplest possible answer to this. I have looked up in various sites for the answer. If the inputs to a programme is such that the output is 10, will command return 0 force the programme to return the value 0 instead of 10? I have written simple C programmes on Borland IDE without return 0 and they work fine.


Merging multiple vector layers to one layer using QGIS

I've imported several shapefiles which where exported from a Mapinfo .tab. Several  .tab-files are imported resulting in 20+ layers. Afterwards I want to export it to GeoJSON; but I'm reluctant to select each layer and export it manually. Is there a way to merge all the layers into one using QGIS?


How do I get rid of "U3 System" on my USB drive?

I have a USB drive (SanDisk SDCZ40-016G) that mounts in a way I've never seen before. When inserted, two items appear in Places -> Computer:    "SanDisk Ultra Backup: 16GB" contains my data, and "CD Drive: U3 System" contains a Windows executable. The part with the Windows executable doesn't look useful to me so I'd like to remove it. I used GParted to delete the only partition listed on the device and then I created and formatted a new partition:    Strangely, the "CD Drive" containing the Windows executable was perfectly intact after this operation.  What's going on?


How to simplify $\int \frac{-3}{2x^2-x-1} dx$ using log properties?

How can I rewrite the expression $\int \frac{-3}{2x^2-x-1} dx$ using log properties before solving for the integral?  I tried ln(-3)-ln(2x^2-x-1) but this doesn't seem to help. What do I do from here?


I need to know the opposite of sin, other than virtue which I don't think is right.


I just got started messing around with motion tracking and the largest issue I seem to have is getting the tracking points to the correct location in 3D space. For example, I could get a dozen tracking points on one wall tracked for an entire shot, for which Blender will return a low error report (e.g. 0.6) after solving for camera motion. But, after I throw in the film as a background and start throwing in objects (e.g. a table that is supposed to overlay an actual table in the recording) it's obvious that the camera isn't properly tracked and although the real camera may just have some slight movement from hand instability, Blender is acting as if I'm bouncing my camera up and down at ridiculous speeds. Sometimes I can almost account for this by trying different combinations of setting points as the Wall and Floor, but since I can only set three points at once for this, all other points which may be on the wall or the floor end up being 100 meters away in 3D space (this sometimes is and isn't an exaggeration).  Is there a way to greater control tracked points after they've been added to the 3D scene? Or another solution which may help? (I also have the proper focal length and sensor size set up for my camera).


How to change decimal places when using graduated renderer?

The classifications given when I use the graduated renderer on QGIS under 'Layer Properties' are to 4 decimal places, and I would like none. I know I can use the rule based style and create my own classifications, but I have many of these to create.


Will the Linnorm death curse affect the synthesist's eidolon?

"Neither the synthesist nor his eidolon can be targeted separately, as they are fused into one creature." Does things that buff allies or give abilties like a raging song give the lonorm death cure to both the summoner and the eidolon or just the summoner. Cuz it if i did itd feel like a fireball would then deal 1d6 per level to eidolon and also 1d6 per eidiolon.


Do i still lose flag weight if i got a declined flag, yet the question gets closed?

Lets say i flagged a question for moderator attention, the moderator declines my flag.  The question gets lots of downvotes, gets numerous edits for poor content and ends up getting closed.  Do i still suffer a loss in flag weight because of this?


$(a,b)R(x,y) \iff ay=bx$ is an equivalence on $\Bbb Z \times (\Bbb Z\setminus\{0\})$

Define a relation $R$ on $\mathbb{Z}\times(\mathbb{Z}\setminus\{0\})$ by $(a,b)R(x,y)\iff ay=bx.$ $a)$ Prove that $R$ is an equivalence relation. $b)$ Describe the equivalence classes corresponding to $R$.  I know that an equivalence relation satisfies transitivity, reflexivity, and symmetry. Also, I know that the Cartesian Product is $A\times B=\{(a,b):a\in A$ and $b\in B\}. $If I could get a hint for $a)$, that would be appreciated. For part $b)$, could someone explain what an equivalence class is? Please refrain from complete solutions. Thank you.


Is there an apostrophe in a master's degree?

The question asks it all really. When referring to a master's degree, do you use an apostrophe or not? That is, is it "a master's" or "a masters"?


How do you launch a Windows 10 app at startup?

Some programs (for example, Outlook) you can launch at startup by creating a shortcut. You press Win+R, type in "shell:startup" to open the Startup folder, then you right-click Outlook, Open File Location, and right-click-and-drag to create a shortcut in the startup folder.  But with other apps (for example, Mail), it seems like you can't do that. (See ).  So for apps like Mail, how can you make them launch automatically at startup?  Edit: An answer was found in the above referenced question. To create a shortcut for a Metro app like Mail, People, or Calendar, just drag it (normal left-click and drag). It works if you drag from Start Menu/All Apps, but does not work if you typed a search into the start menu. This works in Windows 10. I don't know if it works in Windows 8 or earlier.


\documentclass[12pt,halfparskip]{scrartcl}  \usepackage[style=authoryear, citestyle=authoryear, sortcites=true,sorting=nyt,backend=biber,pagetracker=true,ibidtracker=constrict, maxcitenames=2]{biblatex}  \DefineBibliographyStrings{german}{urlseen = {zuletzt abgerufen am}, } \DeclareDelimFormat{finalnamedelim}{\addspace\&\space}    \begin{document}  \footcite[53\psq]{Klett2015}  \end{document}   .bib file          @Book{Klett2015,    title =     {Lambacher Schweizer -- Mathematik Qualifikationsphase Grundkurs},    publisher = {Ernst Klett Verlag},    year =      {2015},    author =    {Baum, Manfred AND Bellsted, Martin AND Brandt, Dr. Dieter AND Buck, Heidi AND Dürr, Prof. Rolf AND Freudigmann, Prof. Hans AND Greulich, Dieter AND Haug, Dr. Frieder AND Jörgens, Thomas AND Jürgensen-Engl, Thorsten AND Riemer, Dr. Wolfgang AND Sandmann, Rüdiger AND Schmitt-Hartmann, Reinhard AND Sonntag, Raphaela AND Spielmans, Heike AND Wollmann, Alexander AND Zimmermann, Dr. Peter AND Zinser, Prof. Manfred},    address =   {Stuttgart}}   I've tried to make a MWE (I don't how to input only one reference without an extra file). Unfortunately only the book 'Klett2015' doesn't work with \footcite. I get this:   maxcitenames doesn't seem to be considered. Any ideas? Appreciate your help!


I received an e-mail from a person thanking me for my help when I had traveled to Germany. I would like to start my answer with the following phrase. Is it correct?     I'm glad I was of any help!   I do not need to be extremely formal, that's why I put the exclamation mark.


Should there be a hyphen in expressions such as "currently-available X"?

My natural instinct is to hyphenate expressions such as "currently-available", "currently-implemented", etc., when they modify a noun.  Example: "the currently-available version of X". It seems to me that the words function as a compound adjective, and I was taught to hyphenate compound adjectives that occur before a noun.  However, to my surprise, I find this expression often left unhyphenated.  Now I'm confused.  Is it considered appropriate or inappropriate to hyphenate the words in this situation?  EDIT: I only now noticed this is essentially a duplicate of this , which is apparently itself a duplicate of others. My apologies.


How to create list of lists after every nth item


I cannot seem to figure this out. It's frustrating, as there is no information in the help file, control settings, or even their guide.  How do you holster weapons? I would like to stop scaring civilians away.  I am playing on Xbox One.


How do I move my current Windows from an ssd to a bigger ssd?

So for months, I have been struggling to live with a 128 GB SSD. The available space of the drive is getting smaller and I had to uninstall some programs over time.  I currently have this SSD as my C drive and a 2TB HDD as my second drive where I try to save everything less important.   I am planning on getting a 250GB or even 500 GB SSD. I then would like to move my current Windows 10 image over to the bigger SSD and use the old one as a dual boot drive for Ubuntu.   Is this feasible? And if, how would one proceed in doing this?


What is the difference and relationship between the binomial and Bernoulli distributions?

How should I understand the difference or relationship between binomial and Bernoulli distribution?


Saving progress while Cycles is rendering

Let's say, I am rendering an animation and I am half-way in (frame-wise). I would like to save what has been computed so far and resume the rendering later. I can see that the generated .avi file is updating as the rendering goes, but I am not sure if Blender is smart enough to bootstrap from this file and concatenate more frames later.  Is it possible to save the progress of rendering using Cycles engine? If so, how?  Cheers  Edit: Running on Blender 2.82


browse git commit history for a single file in a GUI

Edit: Not cool to site command line questions and mark as duplicate when this question was specifically concerning GUI solutions. Original question below.  I'm looking for a GUI that can help me view the commit history for a single file in a git repo. Something roughly equivalent to git log --follow filename but with more features.  Does there exist a software GUI for this purpose? Like a diff viewer with a forward/back button to explore the history of a file? I'm currently using GitHub.com code history section for this, but it's not super convenient and requires opening links then going back to the previous page to find the next/previous commit for a file.


Vote count missing in Close votes "off-topic because" dialog

The vote count for the off-topic reasons is missing in the close votes queue. Example:    But after clicking on "off-topic because...":    The count(s) for the off-topic votes should show on the second dialog. They did until at least yesterday sometime, so this appears to be broken by the "fuzzing" of the close votes queue that just took place.


How do I plot points as graduated/proportional circles in R?

I'm back again with more R mapping questions! This one is concerning symbolizing points by a certain attribute with graduated/proportional circles.   DATA: My full code can be found  if you're interested. My CSV of interest is . Ethiopia shapefile   I've plotted points from the CSV over a shapefile. For the sake of brevity, here's the heavily abridged version of my code:   library(raster) library(rgdal)  #set your working directory  #read in eth shapefile eth <- readOGR(dsn = "D:/Mapping-R/Ethiopia", layer = "ETH_adm0")  #read in total branch location csv branches <- read.csv("Branches_Africa.csv", header = TRUE)  #transform branches data frame to spdf for mapping coordinates(branches) <- ~Lon + Lat  #plot shapefile with point overlay plot(eth) points(branches$Lon, branches$Lat, col = "blue", pch = 16, cex = .5)   As you can see in the branches CSV, there are several different attributes. In my case, I would like to symbolize the "share" attribute with graduated/proportional circles, as seen here:   Ideally I would also like to change the colors of each point as well to match the QGIS symbology as closely as possible.   If you look at my full code, you'll notice that I've not used ggplot to map, so I would prefer the solution not come from that package (or would ggplot make things easier once I've transformed all the data to fit the package?).  I tried using spplot as per  post with:  spplot(branches, "share", col.regions = brewer.pal(9, "Reds"), cuts = 8, scales = list(draw = T))   but the code gave me the following error: Error in fill.call.groups(args.xyplot, z = z, edge.col = edge.col, colorkey = colorkey,  : number of colors smaller than number of factor levels  I also tried to work with mapCircles from the rCarto package, but I had no luck there either.  SO, how can I change the symbology of branches$share so that graduated/proportional (and preferably differently colored) circles are displayed instead of just one size/color?


$n$ is prime $\Leftrightarrow [a][b]=0\Rightarrow [a]=[b]=0 $

I'm stuck on the following exercise from Herstein's "Topics in Algebra":  "show that ($n$ is prime) $\Leftrightarrow ([a][b]=[0]\Rightarrow [a]=[b]=[0]) $ in $J_n$".    for the rightward implication I have:  $[a][b]=[ab]=[0]\Rightarrow n|ab\Rightarrow n|a$ or $n|b$ (or both) $\Rightarrow [a]=[0]$ or $[b]=[0]$  and I'm stuck on the leftward implication.  Why do I get $[a]=[0]$ OR $[b]=[0]$ and not $[a]=[0]$ AND $[b]=[0]$ in the leftward implication? Where is it that I go wrong?   I'd also appreciate any comment/hint about how to prove the remaining left implication.


Getting response from json - how to use in javascript

Should be quite an easy one - I'm getting a dictionary in a .cs file and sending it back to .js as a json, using the following:  //return our value return Response.AsJson(MyDictionary);   The .js file picks it up here:  App.Server.postJSON("/api/stuff/getmyresponse/" + self.id() + "/" + WhatToGet)     .then(function (r) {         console.log(r);     });   This returns the following response, which is expected:  Object {3214368: 939000, 3214369: 701000, 3214370: 581000, $id: "100"}   (though the id isn't really necessary)  Now, what I'm wondering is, in the .js file, how do I start messing around with this data, or at least setting another variable to it and doing stuff like looping through and running some calculations?


Proof for Irreducible Error statement in ISLR page 19

This section of Introduction to Statistical Learning in R (page 19 in v6, statement 2.3) is motivating the difference between reducible and irreducible error (that is noted by $\epsilon$ and has mean zero).  Consider a given estimate $\hat{f}$ and a set of predictors $X$, which yields the prediction $\hat{Y} = \hat{f}(X)$. Assume for a moment that both $\hat{f}$ and $\hat{X}$ are fixed. Then, it is easy to show that $E(Y - \hat{Y})^2 = E[f(X) + \epsilon - \hat{f}(X)]^2$ $= [f(X) - \hat{f}(X)]^2 + Var(\epsilon)$  I'm having trouble getting the intermediate steps here. I understand that the expectation of the error in prediction should involve the variance of $\epsilon$ but I'd like to understand the proof. I expanded to $E(Y - \hat{Y})^2 = E[f(X) - \hat{f}(X)]^2 + 2E(\epsilon)E[f(X) - \hat{f}(X)] + E(\epsilon)^2$ and I see that I have $E(\epsilon)$ and $E(\epsilon)^2$ terms that could lead to $Var(\epsilon)$, but I'm stuck trying to fit some of the basic expected value and variance manipulations to it.


Counting number of elements in array (C)

I would like to pass array as an argument to function Blink and print out each element; however variable count from Blink function returns 1 as a number of elements in array H   int main(){ int H[] = {1,2,3,4,5,6,7,8,9}; Blink(H);}  void Blink(int myArray[]){ int count = sizeof(myArray)/sizeof(myArray[0]); printf("Size of the array is %d\n", count); for(int x=0; x<count; x++){     printf("%d ", myArray[x]); } printf("\n");   }  Please, suggest where is a mistake and how can i fix it?


How to prove that $\sup \left( {{A_1} \cup {A_2}} \right) = \max \left( {\sup {A_1},\sup {A_2}} \right)$?

Suppose ${{A_1}}$=[1,3] and ${{A_2}}$=[2,4], then ${{A_1} \cup {A_2}}$=[1,4] now $\sup \left( {{A_1} \cup {A_2}} \right)$ is clearly 4. so, $\sup \left( {{A_1} \cup {A_2}} \right) = \max \left( {\sup {A_1},\sup {A_2}} \right)$ is true.  Confusion with definition:  s is least upper bound for a set $A \subseteq R$ if two criterion are met  (1) s is an upper bound for A (2) if b is any upper bound for A, then $s \le b$  In the proof if I take ${s_1}$ to be ${\sup {A_1}}$ and ${s_2}$ to be ${\sup {A_2}}$, then if I apply definition then least of ${s_1}$ and ${s_2}$ is $\sup \left( {{A_1} \cup {A_2}} \right)$, which is certainly not true. What is exactly am I missing here?  Then once proved how can I extend it to $\sup \left( { \cup _{k = 1}^n{A_k}} \right)$ ? May be if i get clear with the base case then it will not be required. Edit: ${{A_1}}$ and ${{A_2}}$ are nonempty sets which are bounded above.


I've tried the cmd command and Windows cleaner with elevated privileges, but neither has cleaned the WinSxS folder. It says that the task has been completed in the CMD, but WinSxS is still 14 GB. I'm using Windows 7 Home Premium x64.


$\sum a_n$ converges $\implies\ \sum a_n^2$ converges?

If $\sum a_n$ with $a_n>0$ is convergent, then is $\sum {a_n}^2$ always convergent? Either prove it or give a counter example.  Im trying in this way, Suppose $a_n \in [0,1] \ \forall\  n.\ $ Then ${a_n}^2\leq a_n\ \forall\  n.$ Therefore by comparison test $\sum {a_n}^2$ converges.  So If $a_n$ has certain restrictions then the result is true.  what about the general case?  How to proceed further? Hints will be greatly appreciated.


How do you clear the SQL Server transaction log?

I'm not a SQL expert, and I'm reminded of the fact every time I need to do something beyond the basics. I have a test database that is not large in size, but the transaction log definitely is. How do I clear out the transaction log?


Efficient way to solve $31^6 \mod 189$ without using any external devices.

Assuming basic knowledge of modulus arithmetic, is there a way, a trick or formulas that allow you to solve modulus question with very large numbers without using calculator? For example,   $$76^7 \mod 187=32$$ $$7^{23} \mod 143=2$$  This question ties into RSA Encryption where I'm trying to figure out how to solve these questions. So if I have $31^6 \mod 189$, I can simply use Wolfram Alpha but how can I work out that $31^6 \mod 189$?


I've started tinkering with Blender a few days ago and finally produced my own rendered image.  The only problem is that the final render is way too noisy to use.  It took around 1-2 hours to complete and I even tried to use a , but it didn't seem to do too well.   Are there any suggestions that could help with the final result? I can attach the blend file as well if that helps.


Deleting the insides of model/ hollowing it

Hi i'd like to ask if i can delete all the faces and vertices from in side my model,   Here's my model, it looks fine, but there's problems, like some parts of it have two faces so it sort of glitches. (near the back of the foot)    And also, i used ALT + E to extrude individual faces, that made all of inside of it just horrible, and i want that the whole model to be hollow in the inside, like so  This is a cube   And this, is inside of my model,    So, my question is, can i delete all this messy blocks inside of it without any noticeable changes on the outside?   Also, i'm sort of new to blender so please tell me what you mean and how i would do it. Thank you.


A women's organization was contemplating suing a famous American university when it learned that the percentage of women who received tenure in the university was smaller than the percentage of men. But then it was discovered that in every department, the percentage of women who received tenure in that department was greater than the percentage of men who did. How can that be?


After installing Microsoft Windows Compatibility Layer (meta-package) i receive an error   Item cannot be installed or removed until the package catalogue is repaired. Do you want  to repair it     Ok, I thought... I'll just click repair and be done with it. After doing so I receive another error.    The full text reads:  installArchives() failed: (Reading database ...  (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 212945 files and directories currently installed.) Unpacking libasound2:i386 (from .../libasound2_1.0.25-1ubuntu10_i386.deb) ... dpkg: error processing /var/cache/apt/archives/libasound2_1.0.25-1ubuntu10_i386.deb (--unpack):  './usr/share/alsa/cards/ICE1712.conf' is different from the same file on the system dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/libasound2_1.0.25-1ubuntu10_i386.deb Error in function:  SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1) dpkg: dependency problems prevent configuration of wine1.4-i386:i386:  wine1.4-i386:i386 depends on libasound2 (>= 1.0.23); however:   Package libasound2:i386 is not installed. dpkg: error processing wine1.4-i386:i386 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of wine1.4:  wine1.4 depends on wine1.4-i386 (= 1.4-0ubuntu4); however:   Package wine1.4-i386 is not installed.   Package wine1.4-i386:i386 is not configured yet. dpkg: error processing wine1.4 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of wine:  wine depends on wine1.4; however:   Package wine1.4 is not configured yet. dpkg: error processing wine (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of wine1.4-common:  wine1.4-common depends on wine1.4 (= 1.4-0ubuntu4); however:   Package wine1.4 is not configured yet. dpkg: error processing wine1.4-common (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of wine1.4-amd64:  wine1.4-amd64 depends on wine1.4-common (= 1.4-0ubuntu4); however:   Package wine1.4-common is not configured yet. dpkg: error processing wine1.4-amd64 (--configure):  dependency problems - leaving unconfigured   So I click OK and now I'm back to previous screen ("Item cannot be installed ...")  I click on cancel and go to the red circle on the top right on my screen and try to update from there and receive this error    After that I just get thrown these errors        So now I can't add or remove any programs on my system. Does anyone have any idea how to fix this?


Find $f$ so that $\int_{1}^{\infty}f(x)dx$ exists, but $\displaystyle \lim_{x\to\infty}f(x)$ does not exist?

I need help finding an example of a function such that $\int_{1}^{\infty}f(x)dx$ converges, but $\displaystyle \lim_{x\to\infty}f(x)$ does not exist.    I was trying to find examples of functions containing some trigonometric function and/or some exponential function, but all the functions I've managed to think of whose improper integral converges also have a well defined limit as $x$ goes to infinity.  I'd appreciate any ideas and hints you might have!


Long bibliography in Beamer presentation

I am a new user of the Beamer presentation template and would like to display an extensive reference list with numbers to the left of the entries just as the standard bibliography in LaTeX. How can I do so? My bibliography does not fit into a single slide and I think there should be a neat solution for it. Could you provide some suggestions?   EDIT: I have managed to split my bibliography across many slides now I would like to enumerate them just like in LaTeX document class. How can I achieve this?  Thanks


Confused over which method to use to install?

I'm a little confused over which way to install Ubuntu 12.    I've been running it in a virtual machine for a while now and I want to make the switch from Windows.  I'd like to have a dual boot, with a large portion of disk space given over to Ubuntu so I can wean myself off Windows. There seem to be so many ways to install it that I'm getting a bit lost.   A link to the correct page would be much appreciated.


Upgrade from 16.04.3LTS to 16.04.7LTS *without apt-get*

Company lockdown, I am not allowed to use apt-get so I have to get our systems team to download packages for me, they ftp them to the system and then I install them with   dpkg -i <package>.deb   Pain in the **** but I can't get this changed; I've asked, pleaded and cajoled but the auditors and security boys will not allow it, no matter that I have to send a request to them every time I want to install a new package or dependency.  SO: I need to upgrade from 16.04.3LTS to 16.04.7LTS (to fix a Samba vulnerability). Any idea if this is possible using package downloads, and where I can find them? Is it just a kernel, and if so where can I get it?    Ah OK looking further into info on CVE-2017-7494 I see "Ubuntu 16.04 LTS (Xenial Xerus):    released (2:4.3.11+dfsg-0ubuntu0.16.04.7)". The installed Samba version I have is 4.3.11 so I'm not sure why I'm seeing Ubuntu 16.04.7 in there? I get confused easily...


I received an e-visa for a two-month period from a UAE company but I could not travel because I had an ECR passport. I now have an ENCR passport, which has a new number.  Does the company need to change the visa since it shows the old passport number?


Relic as a verb: why the spelling relicing, reliced?

I just discovered the verb relic, meaning “to make something look worn” and used as far as I can tell only about guitars. (Examples:    …) I was surprised to see that its participles are pretty consistently spelled relicing and reliced, not *relicking and *relicked like other verbs ending in -ic (mimic → mimicking, traffic → trafficking, etc.). No matter what  might tell us, for this particular verb, it is clear that  (hundreds of independent hits) whereas  (only 7 hits, all of them using relicing as well).  Are relicing and reliced consistently pronounced re-lick-ing/'d as the formation would suggest and not re-lice-ing/'d as the spelling would suggest?  How did this spelling come about? Did the verb forms spring from a specific source or did they evolve “naturally”?  Are there other recent verb formations (I believe the verbing of relic dates from the electric guitar era) that are spelled this way, or is this an isolated case?


Do the BAC-CAB identity for triple vector product have some intepretation?

As in the title, I was wondering if the formula: $$a\times (b\times c)=b(a\cdot c)-c(a \cdot b)$$ for $\mathbb R ^3$ cross product has some geometrical interpretation. I've recently seen a proof (from Vector Analysis - J.W. Gibbs) that's not at all difficult to understand, however I would hardly remember the steps of the proof (and I keep forgetting the correct order of A,B,C's), since it appears to me just as algebraic manipulation. So, why is this true? Or is it just an accident?


Do Python regexes support something like Perl's \G?

I have a Perl regular expression (shown , though understanding the whole thing isn't hopefully necessary to answering this question) that contains the \G metacharacter. I'd like to translate it into Python, but Python doesn't appear to support \G. What can I do?


What is the reason that lightsabers have different colors?

What is the reason (in canon) for the different colors of lightsabers?  I know about purple being specially chosen by the actor Samuel L. Jackson since it's his favorite color, but is there a reason or purpose for the colors, other than "red=sith, blue/green=jedi"?


find / | grep to find files containing git but exclude digital

I use find / | grep git to find repositories. Sometimes it finds lots of files which contain digital.  It seems quite easy to use find / | grep -vi digital | grep git, but I believe that there's a chance of ignoring /home/auser/.../digital/.../gitrepo. I also would like to skip these directories:  /home/john/C_DRIVE/* /proc/*   Is there a way to perform a search in such a way that a certain match is removed and after that search proceeds?


I just got this error message for the first time (I was getting this as the response to any request on the SE network for about the last five minutes, until now):     We're sorry...      There are an unusual number of requests coming from this IP address.   To protect our users, we can't process any more requests from this IP   address right now. We'll restore access as quickly as possible, so try   again soon. If you believe you have reached this page in error,   contact us.   As far as I know, I was not spamming SE or participating in DOS attack, and I find it unlikely that any of my office coworkers who share my IP address were doing so either.  Granted, I was pressing F5 a lot. But I've always pressed F5 a lot on SE, and have never gotten this message before. So my question is: Is it possible to get this error message simply by refreshing too much or too often? Or is that message reserved for a truly massive number of requests that are unlikely to be caused by one person refreshing a lot? (In the former case, I can't explain why I've never gotten it before; in the latter case, I can't explain why I just got it now).


How do I change the number of columns in the application overview in Gnome 3.18?

The appDisplay.js file which could be used to set icon size and grid properties of the application overview  (Super+A) in Ubuntu Gnome 14.04 is not available any more in Ubuntu 16.04 shipping with Gnome 3.18.  In most displays, having only the default six columns leave a large empty space on each side of the application grid, which could be used to avoid scrolling three or four pages down in the all-applications display and simply make better use of the available space. Where is that value defined? Is it possible to configure the number of columns to be computed according to the available space or to set it to a higher value?


Checked radio button sends AJAX call and radio button appends

I'm just trying to upon checking a radio button send AJAX call and radio button append using JavaScript.  I've tried several things but have not been able to get this right:  for (var i = 0; i < response.split(',').length; i++) {     $('#radio_append').append('<input name="suggested_dates" id="suggested_dates'+count+'" value="' + response.split(',')[i] + '" class="styled chal_bhi_radio" type="radio" />' + response.split(',')[i] + '
 ')     count++; }   After append this radio button, there are four radio button on click on any one radio button send this AJAX call.  I'm trying several things but didn't work.  On select any checkbox it didn't show alert box. These radio button append from JavaScript.     $(".chal_bhi_radio").on('change', function() {       alert("HI");       var date_al = $(".chal_bhi_radio:checked").val();       $.post("<?php echo $site_root;?>common/service.php?j=4", {           date_select: date_al         },         function(response) {           if (response != '') {             per_data = $.parseJSON(response);             if (per_data != 0) {               $("#price_special_append").html("");               add_basic = per_data;               $("#price_special_append").append(" € " + add_basic + " ")             }           }         });


How to convert a string to datetime object

With the time value being:  value = '2017-08-31T02:24:29.000Z'   I try to convert it to a datetime object with:  import datetime  datetime_object = datetime.datetime.strptime(value, '%Y-%b-%d  %I:%M%p')   But the command crashes with the exception:  ValueError: time data '2017-08-31T02:24:29.000Z' does not match format '%Y-%b-%d  %I:%M%p'


Equation number enclosing parentheses misplaced with Polyglossia+Hebrew+amsmath

I am compiling the following MWE using XeLatex within TeXnicCenter and get a garbled equation number:  \documentclass{article} \usepackage{amsmath} \usepackage{polyglossia} \setmainlanguage{hebrew} \newfontfamily{\hebrewfont}{Arial}  \begin{document} \begin{equation}\label{eq:1} 2+2=4. \end{equation} \end{document}      What is going on here?


Batteries have spare capacity when unused for minutes after running out?

I tested it with NiZN batteries:  After they ran out of power, I measured their voltage. 0.9V.  I waited 15 minutes, measured again without charging, and it was at 1.5V.  I continued operating a CD player, and it ran for three more minutes on the exact same batteries.  How exactly did the battery manage to seemingly get power out of nowhere?


New to Ubuntu, and recently updated to 16.04 (yes, yes, I probably should have waited being new and all).  Generally it's working well...but I'm having some update problems. The dreaded red triangle in the upper righthand corner. I've tried doing some searching on my own, but to no avail. When I tried updating through the software update, I get the following notice.  W: http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg: Signature by key 4CCA1EAF950CEE4AB83976DCA040830F7FAC5991 uses weak digest algorithm (SHA1),  W: There is no public key available for the following key IDs: 1397BC53640DB551, W: The repository 'http://ppa.launchpad.net/conscioususer/polly-daily/ubuntu xenial Release' does not have a Release file, W: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.,  W: See apt-secure(8) manpage for repository creation and user configuration details.,  E: Failed to fetch http://ppa.launchpad.net/conscioususer/polly-daily/ubuntu/dists/xenial/main/source/Sources  404  Not Found,  E: Failed to fetch http:// ppa.launchpad.net/conscioususer/polly-daily/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found,  E: Failed to fetch http:// ppa.launchpad.net/conscioususer/polly-daily/ubuntu/dists/xenial/main/binary-i386/Packages  404  Not Found,  E: Some index files failed to download. They have been ignored, or old ones used instead.   Now, I'm not an idiot, and have checked around to see if I could find the problem myself, but nothing seems to be posted for this problem in 16.04. Can anyone help?


How do I properly branch post-commit and revert the trunk in svn?

I have some commits that I've decided, after the fact, are going to be more branch work then trunk work. How do I create the branch and revert the trunk while still ensuring merging isn't painful later?  Is it as simple as copying the current trunk to a branch and reverting the trunk? Or will this create headaches later?


How to choose a golf club for beginners with at least cost?

I'm just begin interested in golf, so i'm intend buy one golf club but I don't have the experience to choose. What are my options?


python input() wait for some time and if no input is given follow default

I want to make a script in python 3(preferably) in which I get an "input()" from the user, but the user may or may not give the input. So it should wait for some fixed time and if no input is given in that time follow default condition already set.  I have no idea, if there are any keywords I should search for.


Is it beneficial to enable Rapid Mode on a Samsung solid state drive?

I recently bought a Samsung 840 EVO 500 gb solid state drive for my laptop. There's a feature (disabled by default) called RAPID (Real Time Acceleration Processing of I/O Data) Mode. From what I can tell, this mode will use more memory/RAM to facilitate better/faster read/write speeds. A white paper on this feature can be found .  What is RAPID mode? RAPID mode is paired exclusively with Samsung 840 EVO SSDs and available as a feature of the accompanying Samsung  SSD Magician Software Toolset (version 4.2 and later). When enabled, RAPID mode is inserted as a filter driver in the Windows storage stack. The driver actively monitors all  storage-related activity between and among the operating system, user applications and the SSD. The RAPID technology  analyzes system traffic and leverages spare system resources (DRAM and CPU) to deliver read acceleration through intelligent caching of hot data and write optimization through tight coordination with the SSD.  So is it really worth enabling this feature? I have 8 gb of installed memory on my laptop (max that I can install). Is it worth this trade off of using some memory to improve speeds?


how can i pass variable in a api url as api expecting?

i want to pass $var[5] in to the {subscription_reference} in the url.$var[5] contains string value.  Here is my code  $url5 = $api_entry_point ."/subscription/{subscription_reference}/credentials";       $ch5 = curl_init($url5);     curl_setopt($ch5, CURLOPT_USERPWD, "{$user}:{$pass}");     curl_setopt($ch5, CURLOPT_GET, 1);     curl_setopt($ch5, CURLOPT_SSL_VERIFYHOST, 0);     curl_setopt($ch5, CURLOPT_SSL_VERIFYPEER, 0);     curl_setopt($ch5, CURLOPT_RETURNTRANSFER, 1);     $output5 = curl_exec($ch5);     curl_close($ch5);     var_dump($output5);   Here are the various ways i followed and gone wrong.  $url5 = $api_entry_point ."/subscription/'.$var[5].'/credentials";  $url5 = $api_entry_point ."/subscription/![CDATA[".$var[5]."]]/credentials";  $url5 = $api_entry_point ."/subscription/$var[5]/credentials";


How do I input the non-keyboard characters into TeXShop?  My minimum working example:  \documentclass{book} % Font Settings \usepackage{fontspec} \newfontfamily\myfont{C64 Pro Mono} \begin{document} \myfont\huge Commodore 64 Font\par \normalfont Normal Font\par % Book title \end{document}   The text "Commodore 64 Font" appears in the C64 Pro Mono font like I want, but I can't figure out how to get the other characters (see picture) beyond what I can type on the keyboard.  I'm using a Mac, so I can find the codes for the other characters through the Characters app, but I don't know how to get them into TeXShop.  If I cut-and-paste, then I get strange characters.      I'm assuming there is a way to put the Unicode in, but I can't figure out how.  I've seen examples where non-English language is input - CJK, etc. - but TeXShop doesn't seem to allow it for me.    Edited to add:  I've found the glyph codes in Character viewer based on the answer below, so I'm adding a picture here in case anyone else is looking for a way to find the glyph numbers for use with  \XeTexglyph :


Inverse images of Borel sets by a continuous function are Borel

Let $f\colon \Bbb R^p \to \Bbb R$ be a continuous function and $B\subseteq \Bbb R$ be a Borel set. Show that $f^{-1}(B)\subseteq \Bbb R^p$ is a Borel set.


. When I try to install utorrent till this step it is fine  sudo chmod -R 777 /opt/utorrent-server-v3_0/   After this step when i proceed futher and giving the next command  sudo ln -s /opt/utorrent-server-v3_0/utserver /usr/bin/utserver   Then I get:  failed to create symbolic link ‘/usr/bin/utserver’: File exists   And the file in /usr/bin is broken.  Any idea how to fix this?


I have a mount point to a cifs share that goes stale sometimes.   # ls /mnt ls: cannot access /mnt/code: Input/output error total 0 d????????? ? ? ? ?            ? code   In an attempt to revive this mount point I run mount /mnt/code or mount -a which brings me to my question. Why do I get the following error message?  # mount /mnt/code mount error(5): Input/output error Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)  # mount -a  # ls /mnt total 4.0K drwxr-xr-x. 2 root root 4.0K Apr  2 12:40 code   Running mount /mnt/code on CentOS returns the above error. Running the same from RHEL works fine.  Is there an universal way to revive a stale mount point?


What Happened Here? Voted to Close 4 Days Ago, but No Close Votes Today?

Today I saw "", realized it was a duplicate and voted to close it.  I then saw in the comments that I had voted to close it four days ago!  How did that happen? There were no close votes listed at all, and I was permitted to vote to close it today!


$n$ divides $\phi(a^n -1)$ where $a, n$ are positive integer.

Let $n$ and $a$ be positive integers with $a > 1$. I need to show that $n$ divides $\phi(a^n -1)$.   Here, $\phi$ denotes the .  Could any one give me a hint?


Summon a Villager that exchanges 2 Enchanted Books for a higher levelled one (1.12.2)

I'm trying to create NPCs that allow individuals to upgrade their enchanted books beyond what is normally acquirable in survival mode. Basically the idea is that they can take two enchanted books of the same level and trade them for an enchanted book of the next level up. (E.g. 2 enchanted books with unbreaking I in exchange for 1 enchanted book with unbreaking II) The following code is the one I have been using to summon the villagers but there are a few issues that I  have encountered. /summon Villager ~ ~ ~  {Offers:     {Recipes:[         {maxUses:1000,             buy:{id:enchanted_book,Count:1,Damage:0,tag:{StoredEnchantments:[{id:34,lvl:1}]}},             buyB:{id:enchanted_book,Count:1,Damage:0,tag:{StoredEnchantments:[{id:34,lvl:1}]}},             sell:{id:enchanted_book,Count:1,Damage:0,tag:{StoredEnchantments:[{id:34,lvl:2}]}}         }     ]}, Silent:1 }  Firstly, I keep getting the "data tag parsing failed" error when trying to execute this command in chat. I'm assuming this is because it is too long to execute in chat since I do not have this issue when using a command block. Secondly, after summoning the Villager with the command block, the interface is what I want, accepting two books for one.  But when I put in the two unbreaking I books, I do not get the unbreaking II book out. It is as if the game detects the two books I have as different from the ones required by the Villager.  Anyone can help me identify what is wrong with my code, or tell me if what I am trying to do is not possible. Thanks!


Iam writing a code to print the all devices connected in the network using python pcapy. In the out put, it prints   "Tunnel adapter isatap" details .  Can anyone please tell me what it would means... i was expected to get print the interface name which ever is named with.  Please see the attached screen shot  Appreciate for the support


How do you find all permutations of a list with 3 elements in Python?  For example, input  [1, 2, 3, 4]   would return  [1, 2, 3] [1, 2, 4] [1, 3, 4] [2, 3, 4]   Thanks!


Converting a list of lists to an array in Python

I've been looking this up, but I couldn't find anything that helped. I'm having some trouble making an array of the size I want.   So far, I have created a list of lists with this code:   n=4 def matrixA(k):     A=[]     for m in range(0,k):         row=[]         #A.append([])         for n in range(0,k):             if (n==(m+1)) or (n==(m-1)):                 row.append(-deltaX/(deltaX)**2)             if (n==m):                 row.append(2*deltaX/(deltaX)**2)             else:                 row.append(0)         A.append(row)     return A pprint.pprint(matrixA(n)) print len(matrixA(n))   I get this output.   [[128.0, -64.0, 0, 0, 0],  [-64.0, 0, 128.0, -64.0, 0, 0],  [0, -64.0, 0, 128.0, -64.0, 0],  [0, 0, -64.0, 0, 128.0]] 4   Now, I want to make this an array of size (4,4). My problem is that when I do the following (converting the list to an array and trying to shape it):   A=numpy.array(matrixA(n)) print A print "This is its shape:",A.shape A.shape=(n,n)   I obtain:   [[128.0, -64.0, 0, 0, 0] [-64.0, 0, 128.0, -64.0, 0, 0]  [0, -64.0, 0, 128.0, -64.0, 0] [0, 0, -64.0, 0, 128.0]] This is its shape: (4,)   And then an error:   ValueError: total size of new array must be unchanged   How am I supposed to get an array of size (4,4) from here then?


How to delete one shape from another in Illustrator CS4?

I have an image (below) of two hands over a black circle. All three are currently separate paths with a fill but no stroke, all on the same layer.  How do I delete the shape of the hands from the black circle, so that afterwards I can delete the hands themselves, and just have the circle, with the shape of the hands cut out of it?


How long may I store used deep fryer oil. I always strain my oil, store it in it's original container and place it in a cool, dark place. Thanks, Floyd


I could not see any way to list all posts I upvoted.  Profile page only shows the counts for upvotes & downvotes.  It would be good if there was a way to list all posts for which we have used upvotes/downvotes. It would help us rectify if we made any mistakes, and I think it would be useful to refer to all the posts I have upvoted (as upvoting mostly implies its a useful post and more likely that I may need to refer to it later).


Word that describes someone who believes all their actions are justified.

I was wondering if there is a word for someone who believes all their actions are justified. Like they believe their ideology is the best one there even if it is against society set morals.


Question incorrectly added to "drools" feed

Strange, is this a bug?  "The following item was added to your Stack Exchange "drools" feed."  Mapping composite foreign key to composite primary key where the foreign key is also a primary key  I want to make VM_hostname,datetime and name properties as a composite Key for Disk class . At the same time VM_hostname and datetime of Disk class should refer to VM_hostname and datetime of ...  tagged: entity-framework, entity-framework-6, data-annotations  Mar 15 at 19:48    A similar thing has happened with another question a few days ago.


K is a subgroup of G. Show that K is not a normal subgroup

If $G = \begin{pmatrix} a & b \\ 0 & 1 \end{pmatrix} a,b\in (\mathbb{R}) : a \neq 0$)   and assume G is a group under matrix multpication  Assume that K = ($\begin{pmatrix} s & 0 \\ 0 & 1 \end{pmatrix}: s\in\mathbb{R}, s \neq 0$) is a subgroup of G. Prove that K is not a normal subgroup of G.  I have done some working out on this question which is the following:  $g^{-1}=\begin{pmatrix} a^{-1}&-a^{-1}b\\0&1\end{pmatrix}$   and so  $$gkg^{-1}=\begin{pmatrix} a&b\\0&1\end{pmatrix}\begin{pmatrix}sa^{-1}&-a^{-1}bs\\0&1\end{pmatrix}$$  then we get $$gkg^{-1}=\begin{pmatrix}s&-bs+b\\0&1\end{pmatrix}$$  What do I do from here, Why is $$gkg^{-1} \notin K$$ Can't I make b=0 and then it would be in K? or am I missing some key idea?


Websites often present language selection to users with flag icons, but I think this is simply wrong. Flags represent countries.  There are two reasons for a user to change the display language (or at least click on that flag):   Change the language as he can't read the one displayed: even if the country is correct (say Switzerland), people can speak different languages (French, German and Italian) Adapt the content to his country: even if the language is correct, an English speaking visitor may be interested in British content rather than US content.   The logic I would follow is:   If you have country specific content, let the user select his country first. Flags are perfectly correct in this case. If the country has been selected or if the content doesn't depend on the country, let the user select his preferred language. And back to my question here: how to graphically represent a language?   I've seen "English" flags half US/half UK, but how would an Australian identify to that?  My question is not about the techniques used to recognize a user's culture or country of origin using his IP and browser preferences, but how to avoid displaying available languages by their names?  Conclusion considering the answers:  Do not use a flag to represent a language. There is no natural graphical representation for a language. The only acceptable icon for a language is its two letter code as it is used in the Windows standard language toolbar. Even with this icon, it is highly recommended to put the language name in plain text, preferably in its native form.  Update: I just discovered that there is a running competition to . The results should have been published by Jan 15th 2010, but two months later there is still nothing. It must be a problem with no solution. Update 2013: There is finally . It doesn't solve the graphical representation of a language but I think it's a nice solution for its purpose:


When does a polynomial in the ring of polynomial have an inverse?  I thought only constant polynomials were units. if there are other units, under what rings can we guarantee the existence of inverse for non-constant polynomials


Viewport face colors are different on the same mesh

I have finished moddeling an object and this was the result:    What I know is that blender uses these two colors to visibly separate the inside of an object from the outside, but since I played around with the mesh blender doesn't "know" whats the inside/outside.  How can I fix this manually?


Does a superconductor have exactly zero resistance?

already discusses the question but I did not understand the marked answer. It does not outright say whether a superconductor has zero resistance or not.   Do superconductors have exactly zero resistance, nearly zero resistance or does the concept of resistance as we know it break down when it comes to superconductors? Or is the question senseless because of experimental errors?


Precise back-reference target with hyperref and backref

The backref option and its variants in the hyperref package allow to  in the bibliography to the page(s) or section(s) in which a given reference was cited.  The target of the back-reference is the beginning of the page (or of the section, depending on the option) in which the citation occurs (see backref manual).   How can I get the back-reference links to point precisely at the line in which the citation key occurs in the text?  Apparently, someone had a  with "runners" on the side of the page, but the solution hinges on the definition of the runners themselves.  I am looking to obtain, in the back-reference, the same behavior of the link from in-text citation to reference (i.e., point to the line of the reference in question), just backwards.  Any suggestion will be appreciated.  Edit Below is a minimal working example: the in-text citations are evenly spaced in the page and the back-reference commands in the bibliography should point to them, instead to the top of page.  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}     \usepackage[pagebackref]{hyperref}     \begin{document} Top of page \vfill \cite{Cleveland2007} \vfill \cite{Spence1999}  \newpage  \begin{thebibliography}{2} \providecommand{\natexlab}[1]{#1} \providecommand{\url}[1]{\texttt{#1}} \expandafter\ifx\csname urlstyle\endcsname\relax   \providecommand{\doi}[1]{doi: #1}\else   \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi  \bibitem[Cleveland(1984)]{Cleveland2007} WS~Cleveland. \newblock {Graphical perception: Theory, experimentation, and application to   the development of graphical methods}. \newblock \emph{Journal of the American Statistical Association}, 79\penalty0   (387):\penalty0 531--554, 1984.  \bibitem[Spence et~al.(1999)Spence, Kutlesa, and Rose]{Spence1999} I.~Spence, N.~Kutlesa, and D.L. Rose. \newblock {Using color to code quantity in spatial analysis}. \newblock \emph{Journal of Experimental Psychology: Applied}, 5:\penalty0 393,   1999.  \end{thebibliography} \end{document}   I compile with Pdflatex, twice.


Simple proof of showing the Harmonic number $H_n = \Theta (\log n)$

Consider the partial sum of the divergent Harmonic series $H_n = \sum\limits_{k = 1}^{n}\frac{1}{k}$. I recently saw a question which required finding out the asymptotic bounds of $H_n$. Now, I could not find any bound closer than $O(n)$. So I looked up the series and found  Wikipedia article which says that $H_n - \ln n$ approaches a constant (the ). This clearly shows that $H_n = \Theta(\log n)$.  However, considering the question was in an beginners undergraduate algorithms course in CS, I was wondering if there is a simpler proof of this? Is there some clever proof requiring elementary mathematics to show $H_n = \Theta(\log n)$?  PS: This is not homework in the sense that it is not my homework, and the actual question does not ask for a proof, but rather asks a lot of functions to be arranged asymptotically.


In this video i find an odd room with a blue hallway where the two doors room is supposed to be. I can't find anything but the blue spawn office if i try to search it up. Can anyone help me? This is the first time i've ever seen this.


given a list of non-zero integers like, [2, 3, 4, 2]  generate a list of all the permutations possible where each element above reflects its maximum variance (I am sure there is a better way to express this, but I don't have the math background); each element in the above array can be considered a dimension; the above 2 would allow for values 0 and 1; the 3 would allow for values 0, 1 and 2, etc  the result would be a list of zero-based tuples:  [(0, 0, 0, 0), (0, 0, 0, 1), (0, 0, 1, 0), (0, 0, 1, 1), (0, 0, 2, 0)...    and so on till (1, 2, 3, 1)]  the length of the array could vary, from 1 element to x


which group I belong to vs to which group I belong

I don't know which group I belong to. I don't know to which group I belong.     Which one of the sentences is true?    Note: An answer was given to this question when it still read "I don't know (to) which group do I belong (to)."


Livepatch not updating kernel from 5.4.0.29 to 5.4.0.31

There was a recent kernel update to 5.4.0.31 on Ubuntu 20.04 LTS, and this package has been installed. However, livepatch does not recognize this, and instead says that 5.4.0.29 is ok, and no patches to apply (see screenshot).  In the screenshot I show apt-policy for linux-headers-generic - the same is true for linux-image-generic and linux-generic - all are version 5.4.0.31.  I had the impression that livepatch would do this upgrade, so I don't have to reboot the machine. Am I wrong about this, and is there anything I can do to make it work?


There is no public key available for the following key IDs 1397BC53640DB551

When I run the command:  sudo apt-get update   I got this following warning:   There is no public key available for the following key IDs: 1397BC53640DB551   This is the only warning I got and I do not get any Error.  How I can fix it and what the key 1397BC53640DB551 is all about?


What is the genre of the song used in this Chinese lightshow video

I'm trying to find the name (type) of music that is played in this video starting at minute 02:20. It's very majestic. It's not orchestral music right? Cause I'm looking for songs that are similar and cannot find a keyword on Google to search for it.


What is the word for act of monotonously demanding for something (many be a toy) repeatedly?

What is the word for act of "demanding for something (many be a toy) repeatedly along with a monotonous sound (not very loudly and not crying)"?  I guess 'whine', 'whimper', or, 'solicit' would not be applicable.  Is that 'nagging'?


Is it advisable to drop certain levels of a categorical variable?

Let's say that I have one categorical variable with six levels, and I then create five indicator variables in order to represent the six levels. If two of the five variables are insignificant, then do I drop these two? I assume not, but I was not sure. I was thinking that it might be better to test the full (all five variables) versus the reduced (just the three significant variables)  model and, if that was not significant, then just leave all five of the variables in. I was not sure what to do. Oh and I meant for this to be in the context of fitting a logistic regression model.


Subscribing to questions and comments that don't belong to you

There has been some discussion about getting notified on comments to questions or answers that don't belong to you, and the long-standing wish to be able to keep track of new answers or developments in questions asked by other people.  Previous discussion in regards to subscribing to questions:                  (very similar to this one)      In regards to subscribing to comments:                    The general feeling - at least here on meta - seems to be against broadening the notification rules, out of fears of useless notifications to flood users' inboxes, turning SO into more of a discussion forum than it should be, etc.   Here's a suggestion that would keep the user 100% in control what they get notified about, not generate any notifications by default, and require only minimal modifications to the User Interface.  Each question and each comment area would get an envelope symbol.    it is inactive (=white) by default.  When those envelopes are hovered over, the tooltip says click to subscribe or something.  When clicked on, the envelope lights up in green or some other colour (but different from the actual notification envelope's orange to avoid confusion.) You are then subscribed to any updates to that question or comment thread.    For each subscription, you receive notifications in the "responses" tab, as if you were the owner of the comment or question.     To unsubscribe from a question or comment thread, you open the page, and click the green envelope. It turns back white, and the notifications disappear from your responses tab (if technically possible - otherwise, there just won't be any new ones added.)    No further functionality, like managing subscriptions or anything, is necessary IMO. If the flood of notifications from a subscribed question starts to annoy you, you just open it and unclick the envelope. Done.   It would make it possible to leave a comment to a newbie's question and make sure their answer reaches you even if they don't know they need to address you using @username You could subscribe to those "oh, I'd like to know the answer to that" questions and receive active notification, instead of them getting forgotten in your favourites list You could subscribe to discussions you are interested in the outcome of, but don't want to participate in. It would (in my opinion) sort out a number of woes aired by many users in a good way, without adding annoyances to those who like the system just fine the way it is. It would not require a change in the visible layout. As far as I can see, the space the envelope would need to be is empty everywhere.   I don't know SO under the hood of course, but technically, the system would be doing what it's doing already, notify question owners of updates - just that the circle of internal "owners" would grow.


I am aware that comments have only a simple field, with no formatting possible and that is fine (if formatting is needed, your comment should actually be an answer!)  But I find some comments hard to read because they are mainly one giant line (of up to 600 characters!). Any newlines entered during the redaction of the message is stripped from the published comment.    Would it be possible to preserve those newlines? (but may be deleting empty lines, to prevent abuses like a comment taking 600 lines because a prankster could find amusing to post a 600 newlines comment!)    Let's recap:   what we need (and can actually preview while typing a comment, making it more readable, both for the writer -- and the reader, should newlines being kept): declined for newlines (why? no reason given at this time.) what we don't need but is "nice to have" (even though we cannot preview those): granted for bold and italic text. what we really don't need (and cannot not preview): granted for... __code sample__!? Code sample? Seriously? In a comment?   In short: What was an incentive to post a new answer (because of the lack of formatting) is now further diminished. But the comments remain published as one long-hard-to-read-gigantic line.


If $|z| < 1 $ , calculate $ s= \sum_{n=1}^{\infty} n^2 \cdot z^n $

As far as I understand we should try to find a geometric series $g(z)$ with a known sum and then get the sum $s$ from manipulating $g(z)$. I have a hard time finding $g(z)$ though. Any help appreciated!


In a ring homomorphism we always have $f(1)=1$?

Possible Duplicate:          I'm studying the Atiyah's commutative algebra book and I realized that in the beginning of the book, the author says as one of the conditions to a map be a homomorphism is $f(1)=1$, I would like to know if I can left this condition behind, i. e., if $f(x+y)=f(x)+f(y)$ and $f(xy)=f(x)f(y)$ we can have $f(1)=1$.  Thanks


Tab + Enter no longer taking me to first Google search result in Chrome

As the title says; I used to be able to press Tab+Enter in Chrome to take me to the first search result. This now only works if I am not signed in to my Google account. When signed in, I can't do it. It works fine (signed in and not) on Firefox.  I believe this may have stopped working since a system update.  I'm using:   Ubuntu 12.10 Chrome 23.0.1271.64   Is this to do with a setting within Google, or is it something within Chrome? Because it works in Firefox, it suggests it is a Chrome problem. I tried disabling all extensions, but no joy.


Is this transformer-less power supply a good idea?

This is based on a design I found somewhere , I just wanted to know whether this is a good idea ,I intend to use this to power a microcontroller  and a 70 ohm 5 V relay . The cap c1 limits the current to about 200 mA , well below the 500 mA rating of my zener diode  . Without the zener diode , it looks like there would be about 7 volts across r1 which the zener should regulate . Ripples might be a problem though but I don't think it should affect switching that much , I'll also add a flyback diode to this .  Also , I get it that no insulation is a bad idea in general but I need this to be cheap and small .  If anyone has got any better idea , I'll be happy to hear  .  edit: C1 should be 3 uF


How can I enable blue/red 3D for yt3d videos in the YouTube android app? I tried watching a yt3d-enabled video on my Nexus 7 but it just plays normally, with seemingly no way to enable 3D.


Please will someone explain what time dilation really is and how it occurs? There are lots of questions and answers going into how to calculate time dilation, but none that give an intuitive feel for how it happens.


Python HTTPS requests (urllib2) to some sites fail on Ubuntu 12.04 without proxy

I have an little app I wrote in Python and it used to work... until yesterday, when it suddenly started giving me an error in a HTTPS connection. I don't remember if there was an update, but both Python 2.7.3rc2 and Python 3.2 are failing just the same.  I googled it and found out that this happens when people are behind a proxy, but I'm not (and nothing have changed in my network since the last time it worked). My syster's computer running windows and Python 2.7.2 has no problems (in the same network).  >>> url = 'https://www.mediafire.com/api/user/get_session_token.php' >>> response = urllib2.urlopen(url).read()   File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen     return _opener.open(url, data, timeout)   File "/usr/lib/python2.7/urllib2.py", line 400, in open     response = self._open(req, data)   File "/usr/lib/python2.7/urllib2.py", line 418, in _open     '_open', req)   File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain     result = func(*args)   File "/usr/lib/python2.7/urllib2.py", line 1215, in https_open     return self.do_open(httplib.HTTPSConnection, req)   File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open     raise URLError(err) urllib2.URLError: <urlopen error [Errno 8] _ssl.c:504: EOF occurred in violation of protocol>   What's wrong? Any help is appreciated.  PS.: Older python versions don't work either, not in my system and not in a live session from USB, but DO work in a Ubuntu 11.10 live session.


Does the principle of stationary action always work?

Give some Lagrangian we use the principle of stationary action to find the desired euqations of motion for something (e.g. a field).  A lot of modern physics seems to be based on the principle of stationary action. I read it works for classical mechanics, general relativity, Quantum chromodynamics, quantum electrodynamics, weak interactions and more stuff.  However, is there a field where the principle of stationary action does not yield the desired result or where it fails (contradicts some experimental result)?


Does a mixed Powerline AV 500 and 200 network slow down the 500 nodes?

I have two  ethernet adapters that give me near ideal internet access on my media computer (FIOS 25/25mpbs tests out at 8ms 25.4/24.7) and perhaps 100-140mbps to my router, printer, drive, etc.  I now want to add a few wifi points and instead of having the mess of a powerline adapter + a wifi router I think it will be neater to have an all in one solution.  Most of  are 200mbps, however.  I know that 500 is backwards compatible, but will a mixed solution slow everything down like it can for a mixed wireless g/n network?


$f$ increasing , $c \in I$ ; $a_n<c<b_n , \forall n\in \mathbb N$ and $\lim \Big(f(a_n)-f(b_n) \Big)=0 $ , then $f$ is continuous at $c$ ?

Let $f:I \to \mathbb R$ be an increasing function where $I$ is an open real interval ; how to show that if for $c \in I$ there exist sequences $(a_n)$ and $(b_n)$ such that $a_n<c<b_n , \forall n\in \mathbb N$ and $\lim \Big(f(a_n)-f(b_n) \Big)=0 $ , then $f$ is continuous at $c$ ? ( I can prove the converse but having trouble with this one ; Please Help )


I am trying to connect PC and mobile together. But mobile won't show on my PC. Is it really possible?


Abnormal behaviour of layout toggle led indicator

I have installed Ubuntu trusty in my desktop PC. I use Latin (English US) and Greek keyboard layout.  I have changed the default key-combination (Super+space) to (Shift+Alt L) in order to toggle between the two.  My problem is this:   I have the num lock on and the corresponding LED is on. When I press the layout toggle combination (Shift+Alt L) the layout changes and the num LED turns off. I can still type numbers though by the numerical pad. When I toggle again the layout changes, but the num LED keeps still off. This weird behaviour shows even if I change the combination to the initial default (Super+space).  At this point, I must  inform you that the dconf setting (org>gnome>desktop>applications.input-sources>xkb-options) is ['grp:alt_shift_toggle', 'grp_led:scroll'], meaning that the scroll lock should be turned on - off when I toggle layouts. I must also point out that the shown parameter 'grp:alt_shift_toggle' keeps the same even when I have changed the key compbination to default (Super+space).   Any ideas how to make it work as it should (scroll lock LED on) when Gr layout is used?  Thank you for your attention.


How connect the community user with User-Password Flow via REST API?

I'm newbie in SalesForce development and need to get access to community pages using the User-password login. I already got access with this flow using a common user to authenticate. In this case, I'm using a CORS server to avoid use the security token.  I need to use the REST API to integrate with a mobile application, but reading about it, I could't get more detailed information.  If somebody already done that, please help me. If it's not possible, I'll try another solution, but I need access the communities using the REST API.  I changed the URL to the community login, as explained in docs. But I receive an error:   {"error":"unsupported_grant_type","error_description":"grant type not supported"}   My server is allowed to access using the User-Password flow with the following CURL requisition:  curl https://<login server>/services/oauth2/token --request POST --data "grant_type=password&client_id=<client_id>&client_secret=<client_secret>&username=<username>&password=<password_without_security_token>" -H "X-PrettyPrint:1"   Regards, Alexandre


Could we get the 'Community' user to prompt new users to accept an answer if they've commented 'Thanks'?

Just a thought, a lot of the time I stumble across questions where an answer has a comment from the Question OP, along the lines of:     Thanks <Answerer>! This helped a bunch!   And I find myself writing a comment on the answer to the tune of:     Hi @NewUser1234 - Glad to see that we were able to solve your problem! If this answer helped you, you could mark it as your 'accepted answer' by clicking the checkmark under the vote count. This will award <Answerer> (and yourself!) with some bonus rep points, and help future visitors to your question know which answer worked for you :)   Sometimes the user accepts, sometimes they don't, but at least they know they can.  I was wondering if this process could be automated? Perhaps the Community User Bot could keep an eye out for a 'Thanks' comment from the OP, and just leave a comment to remind them that they can accept if they wish?  For example, the parameters could be:   The question/answer is over 2 days old. The answer is >= 1 total score. The Question OP has < 100 rep. There is a comment from the question OP containing 'Thanks' or 'Thank you'. There isn't a comment that contains 'accept' or 'accepted'   What do you think?    Edit: This is a request for a different feature to the . that suggestion talks about having a popup when the OP posts a 'thanks' comment. The effects of this are immediate and also a little intimidating.  This feature request on the other hand, wants a comment to be added days later. This takes away any pressure to 'accept', and acts more as an "FYI, you can accept", not an explicit order to do so.


Short story: people rediscover how to do math and want to put people in bombs

Many years ago I remember reading a short story about an advanced civilization at war that rediscovers how to do math mentally. The reason I remember it is the guy tells it to government officials who are delighted because it means they can put people inside bombs or missiles instead of computers, which were thought to be more valuable.  I believe this is one of those stories I read in a science fiction anthology my father brought home on one of his business trips in the sixties or seventies.


What should I do with a non-English answer?

In the review queue, I saw  that is not in English     Si estás intentando conectarte a una base de datos Oracle a través de un WCF, reinicia el IIS , para esto, abrir el cmd y ejecutar la sentencia iisreset.   Using , the answer in English is     If you are trying to connect to an Oracle database through a WCF restart the IIS for this, open the cmd and run the iisreset judgment.   This answer might be useful for the OP an other users so what should I do with it.  Should I edit the answer and change to English or leave it?  Update : I already flagged the answer. Is that enough?


A "Cantor-Schroder-Bernstein" theorem for partially-ordered-sets

If A and B are partially-ordered-sets, such that there are injective order-preserving maps from A to B and from B to A, is there necessarily an order-preserving bijection between A and B ?


Almost surely convergence of random variables

Let $X_1(x),X_2(x),\ldots ,X_n(x)$ be iid random variables. They are non-decreasing, piecewise linear, convex and they depend on a parameter $x\in \mathbb{R}$. We know that for all $x\in \mathbb{R}$  $$\mathbf{P}\left(\lim_{n\to\infty}X_n(x)=X(x)\right)=1,$$ where $X$ is a constant for each $x\in\mathbb{R}$, meaning it can be thought of as a function $X\colon \mathbb{R}\to\mathbb{R}$. I want to prove that then $$\mathbf{P}\left(\lim_{n\to\infty}X_n(x)=X(x), \ \text{for all }x\in \mathbb{R}\right)=1.$$ Problem is that $\mathbb{R}$ is not countable. My thought is to choose a dense countable subset $\mathbb{Q}$ and from countable additivity we get $$\mathbf{P}\left(\bigcup_{x\in\mathbb{Q}} \lim_{n\to\infty} X_n(x)\neq X(x)\right)=\sum_{x\in\mathbb{Q}}\mathbf{P}\left(\lim_{n\to\infty}X_n(x)\neq X(x)\right)=0+0+\ldots =0.$$ Since the limit of convex functions is continuous, we know that $X$ is continuous. Hence the convergence must also happen in $\mathbb{R}\setminus \mathbb{Q}$. Is my explanation correct? Any ideas on how to improve it?  It is different from  as $X_i$ are continuous.


My projects are turning into my background

For some reason my project in material and render views are trying to copy my background, literally. I've tried installing reinstalling (My blender version was 2.83 now is 2.91) google, updating drivers, restarting my computer, starting a new project( it affects even my default cube), resetting my default settings, opening another project and I'm lost... My computer has 15.9 gb for ram and it's a 2019 CyberPowerPC


How do you find out which program is using too much memory?

Ubuntu has been crashing on me recently. I think its because it runs out of memory so I ran the free -m command and found that my memory usage was really high. So then, i ran top to find the culprit, but the displayed processes were using less than 1.5% of memory. How do I know which program is making ubuntu crash/run out of memory? Below is the output:  shafee@shafee-pc:~$ free -m              total       used       free     shared    buffers     cached Mem:          3824       3714        110          0        978       1954 -/+ buffers/cache:        780       3044 Swap:           99          0         99  shafee@shafee-pc:~$ top top - 02:12:14 up  1:24,  2 users,  load average: 0.16, 0.42, 1.49 Tasks: 182 total,   1 running, 181 sleeping,   0 stopped,   0 zombie Cpu(s):  2.9%us,  1.9%sy,  0.3%ni, 79.3%id, 15.5%wa,  0.0%hi,  0.2%si,  0.0%st Mem:   3916708k total,  3803848k used,   112860k free,  1002308k buffers Swap:   102396k total,        0k used,   102396k free,  2001852k cached    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND              4200 root      20   0  289m  53m  38m S    2  1.4   1:06.45 Xorg                 5590 shafee    20   0 19348 1368  956 R    2  0.0   0:00.01 top                     1 root      20   0 24124 2136 1264 S    0  0.1   0:02.05 init                    2 root      20   0     0    0    0 S    0  0.0   0:00.00 kthreadd                3 root      20   0     0    0    0 S    0  0.0   0:24.23 ksoftirqd/0             6 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/0             7 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/1             9 root      20   0     0    0    0 S    0  0.0   0:00.11 ksoftirqd/1            11 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/2            13 root      20   0     0    0    0 S    0  0.0   0:03.89 ksoftirqd/2            14 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/3            16 root      20   0     0    0    0 S    0  0.0   0:00.16 ksoftirqd/3            17 root       0 -20     0    0    0 S    0  0.0   0:00.00 cpuset                 18 root       0 -20     0    0    0 S    0  0.0   0:00.00 khelper                19 root       0 -20     0    0    0 S    0  0.0   0:00.00 netns                  21 root      20   0     0    0    0 S    0  0.0   0:00.01 sync_supers         shafee@shafee-pc:~$   Or is it normal to have 110mb of free memory and is my issue related to something else?


A group has odd number of elements iff each element is a square, $a=b^2$.

Let $G$ be a finite group having order $n$, prove that $n$ is odd if and only if for each $a\in G$, there is $b\in G$ such that $a=b^2$. I first assume $n$ is odd, then let $a$ be an element in $G$, since $a^n=e$, we have $$a=a^{n+1}=(a^{(n+1)/2})^2$$ which tells $a$ is the square of $a^{(n+1)/2}$.  To prove the converse, I use contraposition, which I assume $n$ is even, then I want to find $a\in G$ such that it is not a square. My intuition is, "assume" we can always find an element $a\in G$ such that the smallest positive integer $k$ satisfy $$a^k=e$$ is $k=n$. Then it is not true that $a$ can be expressed as a square, indeed if $a=b^2$ for some $b\in G$, then the smallest $k$ satisfy $b^k=e$ will be $k=2n$, but this contradicts the smallest $k$ cannot exceed $n$.  My problem is, is the assumption I made always true? If it is true then it should be in the very beginning of the textbook, but I have forgotton it. Any help?  Source: Apostol Analytic Number Theory.


When working with chocolate you often melt it down and let it harden in a new shape or on top of or around another ingredient.  What does it mean to "temper" chocolate


Don't add output result to map in ArcGIS

Whenever I execute some GIS operation the output is automatically added to the map. Is there any option in ArcMap to turn off this setting?


$|\int f(x)\,dx| \le \int|f(x)| \, dx$ for vector valued function

Let $f : \mathbb{R} \to \mathbb{R}^{n}$ be a vector valued function, $f_i \ge 0$. Can we show that       $$\bigg \lvert \int f(x) \,dx \bigg \rvert \le \int \lvert f(x) \rvert \, dx$$   The assertion above is obvious right when $n=1$ . But is it right when $n \gt 1$? For $n=2$ , we need to show   $$\int f\,dx^2+\int g\,dx^2 \le \int \sqrt{f^2+g^2}\,dx^2$$  For each nonnegative function $f, g : \mathbb{R} \to \mathbb{R}$, it is obvious that   $$\int f \,dx^2 + \int g\,dx^2 \le 2 \int \sqrt{f^2+g^2}\,dx^2$$  I think the assertion above is wrong, but I can not find the example of it .


WebViewClient onReceivedError IF() DOES NOT WORK

I have this code where it does not work:  if (desctiption == "net :: ERR_INVALID_ARGUMENT" ")    instead if I write   if (desctiption! =" Net :: ERR_INVALID_ARGUMENT "")    I create the Toast object and the text is equal to   net: : ERR_INVALID_ARGUMENT   The code:  webView.setWebViewClient(new WebViewClient() {           @Override         public void onReceivedError(WebView view, int errorCode,                                     String description, String failingUrl) {             super.onReceivedError(view, errorCode, description, failingUrl);               Toast toast = Toast.makeText(getBaseContext(),description, Toast.LENGTH_LONG);              if (description == "net::ERR_INVALID_ARGUMENT"){             toast.show();}            }       }); }


How do I secure my house against intruders?

What are some suggestions for securing your house from an intruder? Right now we have a GE Simon XT alarm system, but it doesn't cover breaking a window. We put some PVC pipes in the tracks of the lower floor windows as well. What other suggestions do you have?  EDIT: I also would like to know what structural changes I should be looking at. A simple one is to ensure that the deadbolt goes into a stud (they don't always!). Any other suggestions like this would be great.


Combinatorial Argument for Recursive Formula

Give a combinatorial argument to prove that the number of derangements satisfies the recursive formula $d_n = (n − 1)(d_{n−1} + d_{n−2})$ for $n ≥ 2$. (Hint: For a derangement $σ$, consider the integer $k$ with $σ(k) = 1$. Argue based on the number of choices for $k$ and then whether $σ(1) = k$ or not.)  I tried working through this but I am having trouble using the hint. I also tried to use inclusion-exclusion excluding all cases where $σ(k)=k$ but it went no where. Any help would be appreciated. To be honest, I really have no idea where to go with this.


Does the rest of the world know what's happening in Panem (do they even care)?

In relation to my other question about "the rest of the world" in The Hunger Games, is there any indication as to how the rest of the world sees what's happening in Panem? In today's society, if there is a huge upheaval going on in another country (especially one as large as Panem), there would be great interest as to what is going on. Are there any clues for us to help us understand how the rest of the world views the event (or do they even care)?


if R is a commutative ring in which all the prime ideals are finitely generated then R is Noetherian

Prove that if $R$ is a commutative ring in which all the prime ideals are finitely generated, then $R$ is Noetherian.   Here is what I been told to do: Suppose that $R$ is not Noetherian, and use Zorn’s lemma to obtain a maximal element $I$ in the collection of all ideals of $R$ that are not finitely generated.  Then use the following proposition: Let $I$ be an ideal of a commutative ring $R$, and let $r ∈ R$. If the ideals $I +rR$ and {$s ∈ R : sr ∈ I$} are finitely generated, then $I$ is a finitely generated ideal.  Can anyone help please. thanks a lot.


Why do managements dislike low stock prices?

From reading various books, I am under the impression that managements usually dislike it when their stock price gets too low. I am not sure why. So my questions are:   Given that the job of management is to manage the operations of the company, why are they concerned about the stock price at all? Is there any disadvantage to the management when stock prices are very low?   The only reason I can think of is that it would be hard to acquire other companies using stock when the stock price is low. However, if management has no intention to do mergers and acquisitions, I don't see why they would care about the stock price at all. I don't see how stock prices can affect regular company operations in any way.


How to add Word CHAPTER # for each chapter name in toc (for .sty file)  This code from .sty file    \renewcommand{\@makechapterhead}[1]{{     \setlength{\topmargin}{2in}   % really 1.5in, added by bph                                     % to meet OAP standards     \normalfont\normalsize\bfseries  %the size of the font of the headers   of the chapter     \begin{center}     \etchapterheadstyle{\@chapapp{ \thechapter}}  %  CHAPTER 1 or APPENDIX       \etchapterheadstyle{#1}                       %     TITLE OF CHAPTER     \end{center}     \setlength{\topmargin}{1.5in}   % back to 1in  }} \renewcommand{\@makeschapterhead}[1]{{       \setlength{\topmargin}{2in}   % really 1.5in, added by bph                                     % to meet OAP standards     \normalfont\normalsize\bfseries        \begin{center}     \etchapterheadstyle{#1}                       %     TITLE OF CHAPTER     \end{center}     \setlength{\topmargin}{2in}   % back to 1in }}   The TOC shown as follow    How to appear TOC as:  CHAPTER 1 INTRODUCTION  CHAPTER 2 Chapter 2 name  CHAPTER 3 Chapter 3 name  After I add the below code from Peter Wilson this toc appears  The Question is 1- How can I remove the word CHAPTER at the beginning of chapters toc 2- How can I make the title font smaller 3- list of figure - tables - symbols appear at the same page how can I make each of them in a single page?


What is the default lifetime of a session?

If I hit a page which calls session_start(), how long would I have to wait before I get a new session ID when I refresh the page?


I just got this error message:  ... from c:/ruby/lib/ruby/gems/1.8/gems/...  ... 10 levels... from c:/ruby/lib/ruby/gems/1.8/gems/... ...   and the bug (of course) is hidden somewhere in ... 10 levels....  How can I force Ruby to show a full stack trace?


How do I install Qt5, which comes as a .run file?

I downloaded    Qt5 Libary for Linux 64bit   The library format is .run  But if I try to open it, I'll get the following error  sh ./qt.run ./qt.run: 1: ./qt.run: cannot open @8: No such file ./qt.run: 1: ./qt.run: ELF: not found ./qt.run: 1: ./qt.run: Syntax error: word unexpected (expecting ")")   and then it produces a garbage file.


1. If I instantiate objects like this, no error occurs.  class A {};  int main () {     A a = A ();     A &b = a;     return 0; }    2. If I instantiate object this way, compiler reports error C2440: 'initializing' : cannot convert from 'A (__cdecl \*)(void)' to 'A &' when a's reference is copied to b.  class A { };  int main () {     A a();     A &b = a;     return 0; }   3. But if I add a constructor with parameters and pass in some argument(s) to this ctor during instantiation in the second way, there is no error!   class A { public:     A (int a) {} };  int main () {     A a(5);     A &b = a;     return 0; }   Can anyone please explain this?


C++ converting from string to long double loses precision in QNX

When converting strings to long double I lose precision in QNX. Do you know how to fix this problem?  I am using c++. I have tried double and float and there were no problems.  #include <iostream> #include <string> #include <limits> #include <sstream>  int main(){     long double originalNumber = std::numeric_limits<long double>::max() / 2;     long double convertedNumber;      // From long double to string     std::ostringstream ostr;     ostr << originalNumber;     std::string tmp_str = ostr.str();      //From string to long double     std::istringstream istr(tmp_str);     istr >> convertedNumber;      // Check if they are similar     if (originalNumber == convertedNumber)         std::cout<< "The same\n";     else         std::cout<< "Not the same\n";      return 0; }   The result is always Not the same


Raising and Lowering Indices of Basis Tensors?

Can you raise and lower the indices of basis vectors and dual basis vectors? I know I can write  $$V^\mu = g^{\mu\nu} V_\nu $$  but can I also write  $$\vec{V} = V^\alpha \hat{e}_\alpha = V_\beta \hat{e}^\beta?$$


Does a round-trip from mainland China to Hong Kong count as a new entry on a Chinese L (tourist) visa?

If a French citizen currently located in  with a Chinese L (tourist) visa goes to Hong Kong for a short period (somewhere between a few hours to a few weeks) and comes back to mainland China, does that count as a new entry on a Chinese L (tourist) visa?    The question  only addresses the case of Taiwan, which might differ from Hong Kong, since the latter is a . For example,  gives some interesting differences between Taiwan and the SARs (= currently Hong Kong and Macau) in terms of entry procedures.


What is the difference between tomato puree, paste and sauce?

I was looking for a recipe for an Italian tomato sauce when I came across an old cookbook from an American Creole Chef I like, but I'm really confused about the terminology he uses for some of the ingredients and wondered if someone could clarify exactly what he's referring to.  In the recipe he asks for -   2 cans (6 ounces) of tomato paste 2 cans (10 3/4 ounces) of tomato sauce  2 cans (10 3/4 ounces) of tomato puree   I've always assumed that tomato paste and tomato puree were the same thing, but clearly not. Can anyone clarify the difference between these two?  Tomato sauce in the UK comes out of a ketchup bottle, is he referring to passata, sieved tomatoes? If not, what is he referring to?


Calculate :$\int_{0}^{2\pi }e^{R{ {\cos t}}}\cos(R\sin t+3t)\mathrm{d}t$

Calculate: $$\int_{0}^{2\pi}e^{R{ {\cos t}}}\cos(R\sin t+3t)\mathrm{d}t$$ My try: $\displaystyle\int_{0}^{2\pi}e^{R{ {\cos t}}}\cos(R\sin t+3t)dt\\ \displaystyle \int_{|z|=R}e^{\mathfrak{R\textrm{z}}}\cos(\mathfrak{I\textrm{z}}+3(-i\log z)dz\\ \displaystyle \int_{|z|=R}e^{\mathfrak{R\textrm{z}}}\mathfrak{R\textrm{e}}^{(\mathfrak{I\textrm{z}}+3(-i\log z))i}dz\\ \displaystyle \int_{|z|=R}e^{\mathfrak{R\textrm{z}}}\mathfrak{R\textrm{e}^{\mathfrak{I\textrm{z}}}}z^{3}dz\\ \displaystyle \int_{|z|=R}e^{\mathfrak{R\textrm{z}}}\mathfrak{R\textrm{e}^{\mathfrak{I\textrm{z}}}R}z^{3}dz$ and there is nothing here that is not holomorphic, therefore according to Cauchy theorem it must be exactly $0$.


What is $\lim\limits_{n\to\infty}(\sqrt2-\sqrt[3]2)\cdots(\sqrt2-\sqrt[n]2)$? How to approach?

$$\lim\limits_{n\to\infty}(\sqrt2-\sqrt[3]2)(\sqrt2-\sqrt[4]2)(\sqrt2-\sqrt[5]2)\cdots(\sqrt2-\sqrt[n]2)$$  Could you tell me how to approach this kind of question? How do I find the limit of this sequence?  I know that for very large $n$ the each bracket is more than $1$, so my guess is its going to infinity, how do I prove such a thing?


Let $N=pq$ where $p$ and $q$ are safe primes. If the adversary knows the inverse of $p$ mod $q$ and the inverse of $q$ mod $p$, can this help him factor $N$ or break the textbook RSA?


Ubuntu is installed, but computer just boots to windows 8.1

I properly(i think) installed ubuntu along side with windows 8.1 which is my computers first OS.  I have done the "Try ubuntu without installing" option and then trying to install and it tells me that ubuntu is already installed.    The problem is that I cannot get ubuntu to boot.  My computer jumps straight to Windows 8.1 everytime.  I have enable legacy booting, and tried everything i can think of.  Any suggestions?


Badge showing in available after completing quest

In the above screenshot you can see I've already crossed the quest. But it is still not awarding it to me and remaining in the available list.  Can anyone say what is the reason of this and what to solve this issue.  Update 1:  As of seeing answer of the duplicate linked question what I understand is I've to maintain a positive question record, not only good question.  The  has two criteria to be awarded:   Ask a good question on 5 separate days Maintain a positive question record      My Suggestion is to make them separate or split that count with negative mark beside it. As it is looking odd on seeing 6/5 completed   and still pending. Just asking to make it more user friendly look.


Modelling a mechanical spring for a bike

I am currently modelling a bike based on a Norton 961:    I struggle with modelling a proper mechanical spring. It should look like this, I think:    I really don't know how to make it look flowing and natural and having enough "layers".


C++ "Named Parameter Idiom" vs. Boost::Parameter library

I've looked at both the  and the . What advantages does each one have over the other? Is there a good reason to always choose one over the other, or might each of them be better than the other in some situations (and if so, what situations)?


Do ns1 & ns2 nameservers need a PTR record?

I wonder whether my 2 nameservers need a PTR record. As you may know the PTR record or reverse DNS is important for mail server hostname as it improves chances for your outgoing emails to be accepted by major email providers.   I also wonder if there are any cases where the PTR records (aka rDns) are checked against nameservers.  I have checked PTR records for the nameservers of big online companies and found that they all have a PTR record in place for all of their nameservers. (I think about the nameservers from Cloudflare, Cisco, Microsoft among others...). Note that i talk about nameservers and not about mail servers.


Firefox download stops while screen locks

I'm using Window 7. When I download a large file through Firefox browser and screen gets locked, the download stops. I want to continue downloading even if screen is locked.  How to do this.


How to determine in a shell script whether the distribution I am on is Debian-based?

I have been writing a shell script that needs to know if the system one is on is, in fact, Debian-based. Now I have seen  question, but its answers weren't so helpful. I am aware of checking /etc/os-release and the output of lsb_release, likewise I know that checking if rpm or dpkg commands exist is another way of checking whether one's distribution is Red Hat or Debian-based, respectively. All these methods have flaws though. There are hundreds of different Debian-based distros (including those based on Ubuntu, which is in itself based on Debian) and checking whether the NAME field in /etc/os-release, or the Distributor ID in the output of lsb_release -a matches any of the hundreds of known Debian-based distributions would take forever. Checking whether the commands dpkg and rpm exist aren't fool-proof either as some people install other distribution's package managers for various different reasons. For example, on my Ubuntu machine I have RPM installed, partly because sometimes I use the Open Build Service's OSC command, which in some cases requires RPM.   So in short I want a simple and fast way of checking (with certainty) whether the distribution my script finds itself on is Debian-based or not.  Is this possible?  EDIT: As people seem to be implying, by voting to close this question, that /etc/debian_version is present on all Debian-based systems. Does anyone have proof of this?


Are the following functions equal or one is the restriction of the   other?      $f(x) = \ln(x^2)$      $g(x) = 2\ln(x)$   My book says that $g(x)$ is the restriction of $f(x)$ to $\mathbb{R^+}$ and I can verify that on my calculator.  But that doesn't make any sense to me. Shouldn't $2\ln(x) = \ln(x^2)$ ? Or is it because my calculator does $\ln(x)$ first, and then multiplies the result by 2, and so $x$ cannot take a negative value?  Does that mean that these functions are analitically equal but diferent in practice? Or does this happen just because this is the way my calculator is programmed?  Can someone explain this to me?


round in PHP shows scientific notation instead of full number

I'm trying to do an echo of a variable containing 1400000.  so there is written: echo round(1400000); this gives 1,4E+6 instead of the full number. Anybody an idea on how to display it fully?


I bought Minecraft for the Xbox one but can't get it on the PC

I bought Minecraft for the Xbox One, which in turn gave me the Windows 10 Edition for free (still on my Xbox.) Now I want to play on PC for a school project in com tech, but it says I have not purchased it. Does that mean I have to buy the game again or is there a way around this?


How are constraint forces represented in Lagrangian mechanics?

Suppose we try to obtain the movement equation for a particle sliding on a sphere (no friction, ideal bodies...). The only forces acting on the particle are its weight and - here's my problem - a force that keeps the particle attached to the sphere*. How I am supposed to represent mathematically this kind of forces? As a restriction on the coordinates of the particle?  As a side note: My teacher refers to this, in Spanish, as a "fuerza de ligadura". I don't have a clue on its correct translation; does ligature force make any sense?


How to prove that the sum and product of algebraic integers is an algebraic integer?

I would like to understand why the sum and product of algebraic integers are algebraic integers.  For algebraic numbers (not integers) there is the wonderful website  which uses only basic linear algebra. A short version of that is in this MSE-answer:   My Question:  Can this method or something similar be used for algebraic integers?