$x\sim_1 y$ implies $x\sim_2 y,$ then if $X/\sim_1→X/\sim_2$ is continuous

if $X$ is a topological space with two equivalence relations $\sim_1,\sim_2$ such that $x\sim_1 y$ implies $x\sim_2 y,$ then if $X/\sim_1$ is compact, then $X/\sim_2$ is compact? application: From this,$R/Z→R/Q$ is continuous, and sur, image of $R/Z$ (compact) is $R/Q$. We can see $R/Q$ is compact.


Disable window animations when the menu option is missing?

How do I set Window animation scale and Transition animation scale to Animation off when  the option to do so is not available on my ROM (though it ought to be). Specifically it should be under Developer options in Settings but all of the User interface options are missing.


how to add new functions to a class whose implementation is not accessible in c++

Is it possible to add new functions in the class if the implementation of this class is hidden to user. But still if its required to add a new function to this class.


How can I prevent my son building up static on his trampoline?

Whenever my three year old son plays on his trampoline, it doesn't take very long for him to start building up a significant amount of static electricity.  His hair stands on end (which is quite amusing), but when I help him down we both get a nasty static shock (which is not amusing).  He finds the shock upsetting, and I'm concerned that it will discourage him from enjoying his trampoline.  How can I prevent the build-up?  One suggestion I have seen on a parenting forum is to ground the trampoline frame with a cable and a metal stake.  However my understanding is that this would enable him to discharge by touching the frame (rather than me), but it would not prevent the static occurring in the first place.  If it's relevant, it's  and is on a grass lawn.  My son bounces in his socks, no shoes.  In case of link rot, it is an 8ft trampoline with a net enclosure.


How to get over anger at inconsiderate drivers

Fortunately, I have very few strongly negative interactions with cars (most people generally seem to respect the way I ride), but those that do stick with me for a while.  The scenario is almost always the same. Rude driver approaches, does their rude thing (obscenities, "get off the road," unsafe passing, etc...), then speeds off to annoy the next bicyclist (or more than likely arrives at the next red light).  While this is generally a short interaction, I find that I just don't have a good rest of the ride. I find myself angry at the driver, thinking about what I could have done differently, and just generally being pissed off. Clearly I realize that it is possible I'm a jerk, but given the relative infrequency of these events I'm hoping that's not the case and I'm just riding defensively and this driver is having a bad day.  What can I do to get over (or mitigate) my anger at inconsiderate drivers?


Probability of no two consecutive heads (or tails) after n trials?

Please help!  H/T, $50\%$-$50\%$ independent events. I pick Heads. What is the probability that after $29$ attempts of a fair coin, there's no consecutive Heads (...HH...) at all?  I would appreciate seeing how it's worked out...  Thanks a bunch.


Why can't a class extend its own nested class in C#?

For example:  public class A : A.B {     public class B { } }   Which generates this error from the compiler:     Circular base class dependency   involving 'A' and 'A.B'   I always figured a nested class behaved just like a regular class except with special rules concerning accessing the outer class's private members, but I guess there's some implicit inheritance occurring between the two classes?


Failed to apt upgrade on Ubuntu 18.04 LTS "redirection loop encountered"

I get the error below every time I try to sudo apt upgrade after running sudo apt update on Ubuntu 18.04 LTS.  E: Failed to fetch http://62.8.79.10:80/data/0624c5a5c5ab9d20/us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-7/gcc-7_7.3.0-27ubuntu1~18.04_amd64.deb  Redirection loop encountered E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


How to catch the exception in initialization list?

I have a question about how to catch the exception in the initialization list.   For example, we have a class Foo derived from Bar  class Foo {  public: Foo(int i) {throw 0; }  }  class Bar : public Foo{  public:  Bar() : Foo(1) {}  }


I have a W7 install .iso file. I tried to set up the bootable USB by simply copying the files in the .iso on the USB and the other approach was to use winusb. When booting the computer the boot menu shows two entries of the USB (don't know why), when choosing the first one, the boot menu disappears for a second and shows up again!? When choosing the second entry it says that there are no files to be executed. I get the same result with both methods, just copying the files and using winusb!  The files on the USB are the following:   Folders:  boot  efi  sources  support  upgrade   Files:  autorun.inf  bootmgr  bootmgr.efi  localpacks.reg  setup.exe   Does anyone know what I'm missing or can do different?


Determine if $x(t)$ is stable, where $x(t)$ is a solution to the differential equation:  $x'''+x''+4x'+4x = e^t(H(t) - H(t-3))$  and x(t) is defined as:  $x(t) = 0.1e^{-t} + 0.1e^t - 0.1\sin(2t) + 0.1e^3 (\sin(2(t-3)) + e^{-t+3}-e^{t-3})\times H(t-3)$  How do I approach this? Do I use eigenvalues? If so, I get 2i, - 2i and 1, is that correct and what do these values imply?  Any help is greatly appreciated!


How to recover deleted "dpkg" directory?

Unfortunately I've deleted dpkg directory while removing the lock. By mistake I typed  root@sam:~$ rm -r /var/lib/dpkg   Now when I am trying to install/uninstall packages it shows me following error.  E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory)   What should I do now?


Creating a Player object in a physics engine

I have a working physics environment using Farseer - but how do I create a player object that can walk around?  My current attempt involves applying forces to a rectangular body whenever keys are pressed.  This... works... to some degree. The player box moves around and such, after significant angle damping doesn't flip over much either. But I want a smooth moving simple player that can walk around and climb slopes but not walls and stuff like that. As it currently stands, the player object can climb any slope no matter how steep due to continue sideways force being applied. The player also does not stop quickly, but rather slides heavily due to low friction - and raising the player body's friction value doesn't help all that much.  I just don't know how to do a standard player object without making it move around in ridiculous ways due to the physics engine being a full physics engine.


How to disable windows Key in Unity desktop

I find that I often hit the Windows key by accident and it opens the "search your computer" and freezes up my computer for 5 or 10 seconds.  How do I disable the Windows key?  Ubuntu 16.04 LTS


Can we use Account News Standard Component in Custom LWC Component? if yes than How?

Account News is a standard component, I want to add this in Custom LWC Component.


If $\alpha^3 - 3\alpha^2 + 5\alpha -17 =0 $ and $\beta^3 - 3\beta^2 + 5\beta+11 =0 $ then find value of $\alpha+\beta$($\alpha,\beta$ is real number)

The curve $y = x^3 - 3x^2 + 5x $ is a strictly increasing curve. $y=x^3 - 3x^2 + 5x -17 =0 $ intersect x axis between 3 and 4. $y=x^3 - 3x^2 + 5x +11 =0 $ intersect x axis between -2 and -1. The answer is given 2. Is it possible find exact value  of $\alpha+\beta$


Android: "Vote to close" vs. "Flag submitted"

When I use the Android app to submit a close vote, the green "pop-up bar" on the top of the screen says "flag submitted."  Instead, it should say something like "vote cast."  This was somewhat confusing, given that it is possible for lower-rep users to flag as off-topic instead of voting to close.   Below is a screencapture, with a freehand circle to highlight the problem.  (This message is displayed after voting to close, not submitting a flag.)


I hope you al are doing fine. I have always wanted to use ubuntu as my main os but has always failed to install it on my fake raid 0. I have been using ubuntu via a virtual machine when it should be the other way round.  I have tried so many times. I have had trouble installing the grub or something. I am not that good at coding or whatever, but at least I can follow instructions properly. So, if anyone can help me get it working without losing any of my data on another raid 0.  First of all though, I need to understand how to format and arrange my hard drive for a proper bootloader, cache or whatever is being needed for the os and all the rest to perform properly.  Secondly, is about the grub thing. I have followed many tutorials but I always felt am missing something or lack some knowledge to tackle the issue.  If you need information about my pc, its an intel dg45id, xeon l5420, 8gb ram, 2*raid 0 (160gb*2-os & 1tb*2-docs), radeon 7790hd.  Note: both raids are set up using utilities from motherboard at boot.  I wish ubuntu could be easier to install or use but I won't ask more than just a little help for now especially that all this is open source and more reliable.  A step by step assistance would be better. Add me on skype (starrdhm - Heman Mankoo) if need be.  Thank you, Heman


What is the name of song from Code Geass in episode 5 when the Lancelot is saving Jeremiah? I can't find it or any covers of it anywhere, it starts at 1:16 here:


Changing my All City Mr. Pink to disc brakes

Interested in changing to disc brakes on my bike. I hear they're a lot better, although I am rather new to this sport and this (Mr. Pink) is my first road bike. Any insight on the process of switching or any thoughts that I shouldn't switch the braking would be appreciated.


I have visited two time in Denmark where my husband lives. Last time I went there was 8 years ago. I applied for a permanent visa which is refused and I overstayed there for 10 days because I never got a ticket to come back.  Now they won't even give me a visit visa. I have two children holding Danish nationality. I have tried two time for visit visa but it was refused. Now I want to try again to apply for visit visa can u give any advise about it? My husband has Danish nationality. My first son is 10 year old and second is 1 year old they both have Danish passports and they live with me in Pakistan because they can't live without me my husband always came Pakistan after 9 months. They said in refusal that I might be trying to live permanently in Denmark.


Here. Look at this:   This is the non-altered advertisement for an A51 proposal. Reproducible by clicking on the picture link and clicking Share This (or Follow if you haven't followed this proposal). Why is the image cropped?


Python append() seems to work inconsistently for lists having the same value but initialized differently - explanation required

I am trying to populate a 2d list with lists (making it a 3d list). My code is of the form:  a=[[],[],[]] toydata1 = [1,2,3] toydata2 = [4,5,6] a[0].append(toydata1) a[1].append(toydata2)   after this, the value of a is   [[[1, 2, 3]], [[4, 5, 6]], []]   as expected. However if I use  a=[[]]*3 toydata1 = [1,2,3] toydata2 = [4,5,6] a[0].append(toydata1) a[1].append(toydata2)   the value of a is   [[[1, 2, 3], [4, 5, 6]], [[1, 2, 3], [4, 5, 6]], [[1, 2, 3], [4,5,6]]]   Can someone explain why append behaves differently based on how I initialize a? Also, why is it appending to all list elements in the second case?     [[]]*3 == [[],[],[]]  returns True, so I am guessing they have the same value.  I am running Python 3.7.4 on Ubuntu 18.04 if that helps.


Transit Visa required for London while going to USA?

I hold a valid Indian passport and I would be travelling to the USA (from India) with a valid US Visa the coming weekend. I have a long layover of 10 hours at the LHR terminal 5. I would like to roam around London a bit for few hours using the underground tube. My question is if I need a transit visa for going out of the airport and getting back again. Needless to say I would be passing through the customs and immigration of UK border control.   Please respond ASAP.  Avik, India.


Rim brakes causing vibration and 'honking' noise, like a flock of angry geese

I've recently acquired a new set of (aluminium) wheels, and at first they were fine, but now when I brake the rear lightly I can feel a shuddering/vibration through the bike. If I press the brake harder, 9/10 times, it will make a loud honking noise, which kind of sounds like an angry goose (i.e. it is not a squealing noise) These are rim brakes btw, as most threads I've searched are a similar problem but are with disc brakes, not rim brakes.   What I did was:   Took pads out, cleaned them. Aligned shoes to braking surface Used a business card to toe in the brakes.    This seemed to stop it for a few rides, but the noise has come back again. Any ideas on what could be causing this? I am also using the correct pads as recommended by the wheel manufacturer (Shamal Mille, with Campy blue pads).   Note: An example of the noise can be found here:


Draw a shape around a set of nodes using TikZ

I want to draw a smooth shape around a set of nodes, as illustrated here (I produced this picture manually):   Is there a way to do that automatically with TikZ or one of its extensions? By automatically, I mean something like: specifiying the positions of the nodes to be included in the shape, as well as the margin between the nodes and the shape.


Can anyone please help me with this integral?  I perform a couple of substitutions and a couple of integration by parts and I get onto the right track I feel but then I get to a point where I have:  $\frac{e^{3x}\sin(5x)\ dx}5 - 3(\frac{3\int \cos(5x)e^{3x} \ dx}5 )-$... a whole bunch of other stuff all over 5 and then over 5 again (I won't annoy any further you with my inability to format correctly).  But...I have my original integral in the equation? And I put it into a solver and they have the same thing? So how can this ever be solved? I don't get it!


How can I get the list of files in a directory using C or C++?

How can I determine the list of files in a directory from inside my C or C++ code?  I'm not allowed to execute the ls command and parse the results from within my program.


We call an entry of an $ n × n $ matrix with nonzero determinant interesting, if by changing this entry (and only this) the determinant of the matrix can be made $0$. Is it true that there is an interesting entry in each row of a matrix with nonzero determinant? I know that each entry of every matrix with nonzero determinant is not interesting. However I could not find proof if this is a case in each row.


Question on proof of Borel-Cantelli Lemma

The Borel-Cantelli Lemma: Let $\{E_k\}_{k=1}^\infty$ be a countable collection of measurable sets for which $\sum_{k=1}^\infty m(E_k) < \infty$. Then almost all $x \in \mathbb R$ belong to at most finitely many of the $E_k$'s.   Here is the proof from Royden's book.  For each n, the the countable subadditivity of measure, $$m(\bigcup_{k=n}^\infty E_k) \leq \sum_{k=n}^\infty m(E_k) < \infty.$$  Hence, by the countinuity of measure, $$m(\bigcap_{n=1}^\infty (\bigcup_{k=n}^\infty E_k)) = \lim_{n \to \infty} m(\bigcup_{k=n}^\infty E_k) \leq \lim_{n \to \infty} \sum_{k=n}^\infty m(E_k) = 0.$$  Therefor almost all $x \in \mathbb R$ fail to belong to $\bigcap_{n=1}^\infty (\bigcup_{k=n}^\infty E_k)$ and therefore belong to at most finitely many $E_k$'s.   I don't understand the last sentence. How can we conclude that if almost all $x \in \mathbb R$ fail to belong to $\bigcap_{n=1}^\infty (\bigcup_{k=n}^\infty E_k)$ then they belong to at most finitely many $E_k$'s. If $x \in \bigcap_{n=1}^\infty (\bigcup_{k=2n}^\infty E_k)$, it may fail to belong to $\bigcap_{n=1}^\infty (\bigcup_{k=n}^\infty E_k)$, but it still belongs to infinitely many $E_k$'s.


Election bug: removed candidates can rejoin the election!

So I am an active contributor of Stack Overflow in Russian and I joined the election this year. Because of my ban on MSE (damn it! ;)) my candidacy was removed from the election. But I found out that I can rejoin the election! I'm gonna add some images:       I guess it is a bug, isn't it? Or is it the... the... SECOND CHANCE ? ?? ;) P.S I tried to add my candidacy just to test SE for a bug. Wha? Wha? NO! I'm not cheatin' ;)


I am trying to find two subsets $E,F$ of $\mathbb{R}$ that satisfy $\underline{\text{dim}}_{B}(E\cup F)>\max\{\underline{\text{dim}}_{B}(E),\underline{\text{dim}}_{B}(F)\}$, where $\underline{\text{dim}}_{B}$ is the lower box-counting dimension.  I've been given the hint: Let $k_{n}=10^{n}$ and adapt the Cantor set construction by deleting at the $k$-th stage, the middle $1/3$ of intervals if $k_{2n}<k\leq k_{2n+1}$ and the middle $3/5$ of intervals if $k_{2n-1}<k\leq k_{2n}$. But I'm not even sure what it means when it says "if $k_{2n}<k\leq k_{2n+1}$".


Why was Severus Snape placed in Slytherin?

Well, I have come to understand persons with the following traits will be usually be Sorted to Slytherin   Resourcefulness  Cunning Ambition Leadership Qualities Self-Preservation Determination  Cleverness Fraternity  Power   On which trait(s) was Snape Sorted into Slytherin?  One more point: Lily Evans was Sorted before Snape, and when she was placed in Gryffindor, obviously Snape wanted to be in Gryffindor too, because Lily is his only friend.   So why is he Sorted into Slytherin? Is there a stronger reason for the Sorting Hat to override his preference and Sort him into Slytherin?


How do HYDRA get the Leviathan to Strucker's base?

At the start of the Avengers: Age of Ultron movie, the Avengers are on a mission, attempting to retrieve Loki's staff from HYDRA. They're attacking a castle which is a HYDRA base run by Strucker and they've got a Chitauri Leviathan corpse at the base.   Presumably this came from the battle of New York from the first Avengers movie, but how did HYDRA get the corpse of a Leviathan out of New York without S.H.I.E.L.D doing anything about it?


How to disable Photos.app launching every time a device is connected

Every time you connect a device Photos.app opens and you have to disable it for every device one by one.   How do you disable this for all devices you connect?


Why is "well" used with linking verbs instead of "good"?

As any grammar handbook, English teacher, or parent correcting a child will tell you, you're supposed to say "I don't feel well" instead of "I don't feel good." Well rather than good seems to be used with other linking verbs, too (e.g., "Are you well?"). However, the rule for other words is that adjectives, not adverbs, are used with linking verbs. We say "I feel sad," not "I feel sadly," and "He feels tired," not "He feels tiredly." So why is well, an adverb, preferred over good, an adjective, when used with linking verbs? What makes good/well the exception?


Do the posts deleted by an ex-mod become undeletable?

As we know, 10k+ users can see deleted posts and vote for their undeletion. And, anybody can see his own deleted posts, and over some reputation (s)he also have a vote to un-delete it.  Except posts deleted by a diamond moderator. They can be undeleted only by a mod:    I have a purely theoretical question from pure curiosity.  What happens, if the deleting mod is later de-modded? Will the posts (s)he deleted become undeletable again?  P.s. the possible dupe is about the other direction (essentially: do the posts deleted by mod before he got the diamond is made un-undeletable retroactively). Although probably both depend on the same - missing or existing - feature of the SE software,   It is clear only from a programmer viewpoint. We don't know the internals of the SE software, maybe they are handled differently. I think, this direction is much more important/interesting, because it could make posts public again, which shouldn't be ever publicized.   On these reasons, I don't think the other question would be an answer.  Next to these: The answers there contain only opinions, which are agreeable probably for everybody, but don't contain real information about this possibility.


I have downloaded a file from OSM which contains geodata for around 50k addresses, much of which are incomplete.   +--------------------+-------+---------------+   | street             | house | city          |   +--------------------+-------+---------------+   | Forest Lane        | 75230 | Dallas        |   +--------------------+-------+---------------+   | Rendon Road        |       | Burleson      |   +--------------------+-------+---------------+   | Matlock Road       | 76018 |               |    +--------------------+-------+---------------+   | Hospital Boulevard | 75051 | Grand Prairie |        +--------------------+-------+---------------+      That table have two more columns for the coordinates, which I have not copied here.  Starting from there, how is the process to match an address? Has it to be an exact match? what it happens if additional info such as house number is provided? I was thinking on making a function for this, but it looks as a complex task.


Java Check if a variable is A-G. If not, display error message and ask again

I'm trying to write a program to count up and down the musical scale. Unfortunately, I have ran into a problem. I need a way to check if the input value is one of the notes on the musical scale. If it is, turn it into a number for later calculations. If not, display an error and ask again. I tried to do this and it puts me in an infinite loop even when i give a valid note. Any help? My code:      package music;  import java.util.Scanner;  import javax.swing.JOptionPane;  public class musicc {     public static void main(String[] args) throws Exception {         int noteid;         noteid = musicc.getNoteId();     }      public static int getNoteId() {         String note = "0";         int returnValue = 0;         note = (String)JOptionPane.showInputDialog(null,"What note do you want to start on?",JOptionPane.PLAIN_MESSAGE);          while (note != "A" && note != "B" && note != "C" && note != "D" && note != "E" && note != "F" && note != "G") {             JOptionPane.showMessageDialog(null, note + " is not a valid note! Try again.", "Invalid note!", JOptionPane.ERROR_MESSAGE);             note = (String)JOptionPane.showInputDialog(null,"What note do you want to start on?",JOptionPane.PLAIN_MESSAGE);         }         switch(note) {         case "A":return 1;          case "B":return 2;         case "C":return 3;          case "D":return 4;          case "E":return 5;          case "F":return 6;          case "G":return 7;          }         return 0;            } }


What specific criteria does Google use to identify and measure great content when it comes to ranking?

One of the primary advices I've been reading about SEO is to put out great content. But how exactly does Google measure that? What specific metrics does it use?  I understand how it identifies bad content (poor spelling, bad grammar, poorly structured article, keyword spamming, etc.).  But I have yet to find a clear criteria for how Google determines great content.


What are the physics definitions for time and energy?

I'm a student of physics. Please could someone give me the explanations of the observed physical phenomena of time and energy. Especially, the differences between the two and how they relate to oneanother. Many thanks.


Change Apache document root folder to secondary hard drive

I installed the ubuntu 12.04 server edition for my server pc . i had installed lamp server. i need to change the var/www location to my secondary hard disk location. i was configured so many time to at gedit /etc/apache2/sites-available/default here is my code  <VirtualHost *:80>     ServerAdmin webmaster@localhost      #DocumentRoot /var/www     DocumentRoot /media/myserver/     <Directory />         Options FollowSymLinks         AllowOverride None     </Directory>     #<Directory /var/www/>         <Directory /media/myserver/>         Options Indexes FollowSymLinks MultiViews         AllowOverride None         Order allow,deny         allow from all     </Directory>      ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/     <Directory "/usr/lib/cgi-bin">         AllowOverride None         Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch         Order allow,deny         Allow from all     </Directory>      ErrorLog ${APACHE_LOG_DIR}/error.log      # Possible values include: debug, info, notice, warn, error, crit,     # alert, emerg.     LogLevel warn      CustomLog ${APACHE_LOG_DIR}/access.log combined      Alias /doc/ "/usr/share/doc/"     <Directory "/usr/share/doc/">         Options Indexes MultiViews FollowSymLinks         AllowOverride None         Order deny,allow         Deny from all         Allow from 127.0.0.0/255.0.0.0 ::1/128     </Directory>  </VirtualHost>   and also used  sudo chown -R var/www /media/myserver/   and  chmod -R 755 /media/myserver/   still i was not able to connect my /media/myserver and my browser show the following message  Forbidden  You don't have permission to access / on this server.   Please tell anyone how to mount myserver at my var/www, thanks advance


How to integrate $\int_0^N \frac{\vert \sin(x) \vert}{x} dx$

Let $N$ be a strictly positive integer. How to integrate $\int_0^N \frac{\vert \sin(x) \vert}{x} \ \mathrm{d}x$ ? I tried to subdivise $[0,N]$ in distincts intervals but couldn't achieve a proper resolution of the integral. I have to show that the limit when N tend to $\infty$ is $\infty$ , so I would also accept an answer that could permit to show it.


I was learning some physics stuff  in which I saw they are using TI-85 complex calculator. I saw a  in the comment box on how to install it, added by user but unfortunately it was for windows.  How can I install it on ubuntu 14.04 ?


My Laptop doesn't suspend at all in ubuntu 14.04

My laptop is Asus N56-jk, I'm an ubuntu 14.04 user, when I push the suspend button or close the lid, it just get locked or somethng like logging out, what should I do?


Book with creatures surrounding a family in a house but they're not always visible

I am looking for a book which focuses on a child and his family. I think there was a big house and there were creatures around the house but the creatures weren't visible all the time. There was something that made them visible but I don't remember what it was. The child's family didn't believe him at first.


How to set class attribute of an element in Javascript?

Here is my code for generate combobox. How can I add a css class name 'chosen-select' on it ?     var cell3 = row.insertCell(2);     var element2 = document.createElement("select");     var option1 = document.createElement("option");    option1.value="";    option1.innerHTML="--Select--";       element2.appendChild(option1);     var option2 = document.createElement("option");    option2.value="1";    option2.innerHTML="Apple";      element2.appendChild(option2);     element2.name = "description" + rowno;   element2.id = "description" + rowno;    element2.setAttribute("required","true");    element2.style.width = "150px";    cell3.appendChild(element2);


Badges awarded out of their time and seemingly without cause

There's a  from nearly six years ago, but without any answers. Just now, on , I was awarded the  for completing 1,000 review tasks (close votes):  You'll of course notice that I've completed in excess of 1,300 reviews of this type, hitting the 1,000 mark perhaps a year or so ago. The same goes for the one on  for new posts, which was also completed (probably) more than a year ago. Are we buggy about badges at the moment, or does someone "up there" like me?


How do I tell Firefox to stop asking me whether to open or save files

When I click a link to a file that Firefox cannot natively display, it gives me this dialog box:    I always want to save files, not open them. I want that to happen every time and for every file type, without ever having to be prompted. How do I effect this behavior?  Edit:  is a similar question but it does not have a satisfactory answer. What I want is to never see this dialog box again. I want Firefox to just save every file I try to download, whether it’s a new file type or not. The answers to the other question do not provide a way to do this—they require you to go through the dialog once for every new file type.


I cant find my bin folder in Minecraft 1.7.4

I was trying to install a mod in Minecraft when I noticed that don't have a bin folder. This is in version 1.7.4.


Giving Shapekeys a random starting value?

I love the "random" input in the shader editor; it makes it so easy to randomize duplicated objects by changing the color and offsetting textures and all that. It would be crazy useful to be able to do a similar thing with shapekeys, so the geometry can vary as well. I can control the value with a driver, and I tried the method in , but that changes the shapekey value on every frame (as happens with every "random" solution I've tried so far), which means in an animation it's a jittery mess (he suggests "muting" the drivers to fix this, but the scene still runs super slowly, since I think it's still running the randomizer for every value for every frame, even if you can't see it). So my question is, how can I give that shapekey a random static value? I figure something like multiplying the object's ID by a wacky number or something, but I just can't figure it out. I feel embarrassed posting this, because I feel like this is a fairly basic thing that's probably answered elsewhere, but I've been searching obsessively for a couple days and just keep finding the same few threads over and over, so hopefully someone here knows?? Thanks in advance!


Why don't these external flashes fire when the camera shoots in Live View mode?

I had the opportunity to use some professional flashes yesterday and I found out that they didn't fire when I was trying to shoot with the camera in Live View mode.  The flashes were two Elinchrom FX400, one wirelessly synchronized with the camera and the other was activated automatically when the first one fired (With a photocell or something).  Using the camera normally fired both flashes at the same time with no issues, but live view mode deactivated both. Why the LV mode is incompatible? Am I missing something?  By the way, I tried this with two cameras, a Canon 1000D and a 550D.


After the game starts, does healing a hero that damaged themself charge Mercy's ultimate?

Certain characters can damage themselves during the pre-game countdown, notably Junkrat and Pharah. If Mercy heals that damage before the game starts, she doesn't gain ultimate charge (so I've heard). However, does that hold true if she waits for the game to start before healing? Can you just have a Pharah and a Mercy in a corner taking an explosion bath and building ult?


can i transfer my ps3 copy of grand theft auto V to ps4

so I have grand theft auto 5 for ps3 but I want  play it on ps4 so how can like I get it on my ps4 like I don't wont  buy another one so what do I do?


If I have to sacrifice a creature every beginning of my upkeep and I play , will I get past the sacrifice?  Thanks


Is it possible to set a max width of a label in HTML?

I want that a label in HTML has a max width of like 100px and if this label has a text that is longer than 100px it gets cut off. A perfect result would be a cut and some points ".." at the end.  I have:  <label> This is some long text on my website </label>   Desired result would be something like:  This is some lo..  Is this possible with CSS alone? For a start it would be okay if it only gets cut at the end. Thank you in advance!  I tried to set the width to 100px in CSS but that only changes the size of e.g. the backgroundcolor of the label and not the text.


Proving a simple graph is a connected graph

Does any proof exist that a simple graph with $n$ vertices such that the least vertex degree is $\geq \frac{n-1}{2}$ is a connected graph? (i.e. does such a proof have a name?)


Submatrix formed from independent rows and columns

Suppose matrix A has rank r. Pick any r independent rows and r independent columns from A. Must the submatrix formed from these rows and columns be invertible?


How to make dynamically added content clickable?

I am adding dynamic content to a php page using jQuery. I don't have a problem adding the content I just can't seem to find a way to make the new content respond to a click event.     For example (I'm using a div here but could be a button or other type).  $("#oldstuff").after('
Some content that should respond to click event
');   Edit: I am currently using jquery 1.9.1, I was using 1.6.2 but I am checking out magnific-popup which required a newer jquery version.  I didn't post my failed attempts (   $("#newstuff").click(function() {...  $("#newstuff").live('click', function() {...  binding the click event, etc.   because I assumed that I am missing something fundamental that a more seasoned jQuery user would spot without the noise of broken code.


Applying different kernels to parts of a dataset and merging the output

I am trying to create a classifier using SVM on a dataset that is composed of 6 sets of data for each of my observations. When I train the SVM (rbf kernel), I get a better performance of the classifier when I use only 2 out of 6 sets of features (reducing the number of features to about half): when I add features, my accuracy degrades by over 5%. I understand that "junk in, junk out", but we were surprised by the magnitude of this effect. Note that I scale the features to all have the same range and variance before training the SVM (using sklearn's MinMaxScaler()).  Our interpretation of this result is that we are not representing the feature space correctly - by calculating a single kernel on all 6 sets of features at the same time, I lose information from each single set of features. To make up for this, I want to calculate a kernel on each feature set independently (and so also find the optimal gamma separately) and then concatenate the results to train the classifier (a bit like what described ). Basically, I would like to do:   $$ k_{final} = k_1(X_1) + k_2(X_2) + k_3(X_3) + k_4(X_4) + k_5(X_5) + k_6(X_6) $$   Is this something that can be done and a sensible thing to do? And would it help with my problem? If so, can I implement this in sklearn? If so, how?   I have found a way to calculate kernels in sklearn (), and so I could calculate the kernel on each set separately. However, once I output the distance matrix, I am not sure how I would use it to train the SVM.  My understanding of kernels is only very intuitive, so I would appreciate an answer with limited maths!


Getting the ID of current script programmatically

I have a script that is using ajax to consume an api. My current script looks for a script tag with an id of "test-api" and passes the data attribute (an id) to the ajax call to complete the url for lookup.  <script src="./bundle/src/js/api.js" id="test-api" data-client="2"></script>   Inside my script:  var clientId = $('#test-api').data('client'); //short hand  axios.get('http://url_to_api.com/clients' + clientID) .then()   All of this works quite well, but I have now run into an issue. This script might be duplicated on the same page (as I might need to pull in other "clients") so I need to have ids for all of the scripts.  <script src="./bundle/src/js/api.js" id="test-api" data-client="2"></script> <script src="./bundle/src/js/api.js" id="test-two-api" data-client="5"></script> <script src="./bundle/src/js/api.js" id="test-three-api" data-client="6"></script>   I tried using  var script = document.currentScript; script = script[script.length - 1]   but I keep getting null returned (also regarding this, my script is being placed via a gtm, so it is not always the last script). As I understand, it is null due to this being placed in an .then() function (running after another script finishes).  I guess my question is it possible to actually get the id of the current script without really know what ID is present (not hardcoded into the script)? Unfortunately, I do need to support IE as well so I assume .currentScript is out of the question as well


Is the Planck length the smallest length that exists in the universe or is it the smallest length that can be observed?

I have heard both that  is the smallest length that there is in the universe (whatever this means) and that it is the smallest thing that can be observed because if we wanted to observe something smaller, it  would require so much energy that would create a black hole (or our physics break down). So what is it, if there is a difference at all.


Is it possible to know who voted for my post?

Is it possible to know who voted my question/answer up or down? If not, then is it possible to include this feature? By this feature we can come to know if you are being voted up by question owner or persons giving other answers to same question or just the visitors of that question thread.  Like...  If it is a group of people giving other answers, then your answer is most correct If it is readers of that question, then your answer is more popular


I'm trying to write up a table but I'm missing the vertical rows in the last few columns. Anyone have any clues as to how to fix this?   \setlength\tabcolsep{4pt}  \begin{tabular}{|l|l|l|l|l|}  \cline{2-5}   \multicolumn{1}{l|}{} & Autumn & Pre-requisites & Spring & Pre-requisites \\\hline   \multirow{4}{*}{\textbf{Year 1}} & MATH187 & Either a mark of at least 80 in \\ & & MATH151 OR (in the NSW HSC \\ & & Examination) Mathematics Band \\ & & 4; or Mathematics Ext 1. & MATH188 & MATH187 \\\cline{2-5}                                & MATH100 & None & MATH123 & MATH187 or MATH141 with \\ & & & & co-requisites of MATH188 \\ & & & & or MATH142 \\\cline{2-5}                               & CSIT110 & None & STAT101 & None \\\cline{2-5}                                                                       & ACCY111 & None & ACCY112 & ACCY112 \\\hline \hline       \multirow{4}{*}{\textbf{Year 2}} & MATH201 & One of MATH110, MATH188 or \\ & & MATH283, or a mark of at least \\ & & 75 in MATH142 or MATH162, or \\ & & enrolment in course code 762A. & MATH202 & MATH201 \\\cline{2-5}                               & MATH203 & One of MATH101, MATH188 or \\ & & MATH283 or enrolment in course \\ & & code 762A. & MATH204 & MATH201 \\\cline{2-5}                               & MATH222 & One of MATH101, MATH188 or \\ & & enrolment in course code 762A & MATH212 & One of MATH101, MATH188, \\ & & & & MATH283 or enrolment in \\ & & & & course code 762A \\\cline{2-5}                                   & STAT231 & MATH188 or enrolment in \\ & & course code 762A. & STAT232 & STAT231 \\\cline{2-5}  \hline \end{tabular}   The output I get for the code above is:


Ps4 controller wont connect to anything after connecting to pc

I have 2 unconnectable controller now after connecting to PC I tried connecting using every method I read but none of them work. now I can't even connect back to the PC both Bluetooth and wired doesn't work. all I can connect to is my Iphone


Finding a language the accepts a given push-down automaton

Ok, so given the following automaton:    I need to find the language that accepts it (no need for formal prove, a short intuitive explanation is good enough). I think the answer here is {$a^{11+6k}, k≥0$}. I can explain why the shortest word that can be received here is $a^{11}$, and I can explain that this language contains the language {$a^{11+6k}, k≥0$}, but I don't know how to explain that this is exactly the language {$a^{11+6k}, k≥0$}. How can you explain that it doesn't conatin more words, for example?


How to check if a set of vectors span a space?

how do I check if the following set of vectors $[3+i,0,i],[0,1+3i,2],[6+2i,3+9i,6+2i]$, or in general any set of complex vectors span the space $\Bbb C^3$, not using any matrix methods?  Thanks for helping out!


What is the significance/geometric interpretation of eigen values or eigen vectors in a vector space?


In a DC current in a conductive wire, is it more accurate to think of one electron wiggling its way through a sea of electrons... or to think of one electron bumping into another, which bumps into another, which bumps into another, which eventually causes an electron on the other end of the wire to "pop out" like the initial electron "popped in?"  Does the answer change for DC current flowing through a semiconductor?   Does the answer change for AC current in a conductor?  Does the answer change for AC current in a semiconductor?


Where are updated Apple security guidelines for recent OS X versions?

Pardon my paranoia; but with an 80,000-strong global work force, one would think the need to cover important security guidelines for users would easily be met with each new OS X release. Yet a glance at  reveals that the last update was for 10.6 Snow Leopard, a long, long time ago for internet age.   So where are the security config guide updates for Lion, Mountain Lion & Mavericks?


Why is the song E.P.M. by Dragonforce only on the Japanese release?

The album Ultra Beatdown by the power metal band Dragonforce contains 11 total songs. 8 of those are on the main album, 2 are bonuses for the special edition and one of them, E.P.M., is only on the Japanese edition of the album. What possible reason could there be for doing such a thing?


Is it possible to "sudo su" using ssh in bash?

#!/bin/bash USERNAME=ksmith HOSTS="linux1" YUPDATE="sudo yum -y update" FIXDATE="sudo -u echo -e 'ZONE="America/New_York"\nUTC=true' > /etc/sysconfig/clock"  for HOSTNAME in ${HOSTS} ; do ssh -tt -l ${USERNAME} ${HOSTNAME} "${YUPDATE}; ${FIXDATE}"  done   I get the error:  sudo -u echo -e 'ZONE="America/New_York"\nUTC=true' > /etc/sysconfig/clock -bash: /etc/sysconfig/clock: Permission denied   I manually went in and tried a sudo and it won't take. It requires a sudo su first, then it works. But I can't get it working in bash. I understand Fab / Python can do this, but I'm hoping to keep this in bash.  It's going to be a script that updates all our servers and then applies the "FIXDATE" fix(which requires sudo su). The yum update works fine.


Ephemeral error message: "cryptsetup: unknown fstype, bad password or options?"

I activated disk encryption for my Ubuntu 15.10 64bit installation and get every time after entering the (correct) password the error message:  cryptsetup: unknown fstype, bad password or options?  But after few seconds (without any further interaction) this error message is replaced by the expected message:  cryptsetup: sda5_crypt set up successfully  That's it and the system is started.  Any suggestions what could be the problem? Is it merely cosmetic or serious?


I can block a website by editing the file hosts located in C:\Windows\System32\drivers\etcWindows 8.1 and adding 127.0.0.1 example.com at the end. But  I cannot figure out that how can I block a specific site such as example.com/foo so that the site example.com can open but example.com/foo cannot open. I tried doing it but it didn't work.


I have a HP EliteBook 2540p laptop. I have a ubuntu 16.04 and Windows 10 dual boot. In Linux whenever I press the M button the mouse stops working on all of the other pages except the one I'm at. I noticed that in windows this happens if I enable the round button in the middle of keyboard and the two right and left click on top of the touchpad. how can i disable these in ubuntu.


Attaching event to future elements using jquery

I am using jquery 1.8 and have to display popup when user clicks some area with class dropdown-toggle. I have attached the events using on while the page loads for the first time.   Here is it  $('.dropdown-toggle').on("click", function (e) { console.log("dropdown toggle called"); $(this).next('.dropdown').toggle(); }); $(document).on("click", function (e) { var target = e.target; console.log("click toggle called"); if (!$(target).is('.dropdown-toggle') && !$(target).parents().is('.dropdown-toggle')) { $('.dropdown').hide(); } });   What i found that second event applies to elements added in future but the first one does not i.e. for a drop down menu added later, only "click toggle called" gets printed in console but for those elements added during start both "click toggle called" and "dropdown toggle called" gets printed.   What is problem here? Does on applies only to document for future element or can it be applied to class or other elements too so that they apply to future elements? If not what is the solution?


How to download a specific version of Duplicity

How do I install a specific version of duplicity. The one I have is duplicity 0.6.21 and the one I want is 0.6.18


Question about the proof of the distributive property for sets

I have been learning set theory from scratch again and I have a question about the distributive property for sets. It seems the only proof I found of it actually USES the very same distributive property while proving it. This seems circular to me, could someone explain why it is allowed?  This is what I am trying to prove. $A \cup (B \cap C) = (A \cup B) \cap (A \cup C)$  I got this proof from a quora answer.  Let $x \in A \cup (B \cap C)$. If $x \in A \cup (B \cap C)$ then $x$ is either in $A$ or in ($B \cap C$).  $x \in A$ or $x \in (B \cap C)$  $x \in A$ or ($x \in B$ and $x \in C$)  HERE!!! How does one get from the statement above to the one below without actually using the distributive property itself?  ($x \in A$ or $x \in B$) and ($x \in A$ or $x \in C$)  $x \in (A \cup B)$ and $x \in (A \cup C)$  $x \in (A ∪ B) \cap (A ∪ C)$  $x \in A \cup (B \cap C) \implies x \in (A \cup B) \cap (A \cup C)$.  Thanks a lot!!


My program allows to find fibonacci numbers at a certain position n using stack but when I type in a position after 76, the numbers start to get a single number off and larger from there. Here is my arithmetic:  for (int i = 2; i < nth; i++) {      if (nth == 1)         return 1;     else if (nth == 2)         return 1;     else     n1 = fibStack.top();     fibStack.pop();     n2 = fibStack.top();     fibStack.pop();      temp = n1 + n2;     fibStack.push(n2);     fibStack.push(n1);     fibStack.push(temp);  }   I used double type and precision to output correctly. The correct output at 83 is: 99194853094755497 What my code outputs is:     99194863094755488


I had a problem with the ubuntu on my pc. it suddenly stopped booting by start up. I made a portable ubuntu and now I am operating from usb drive. my question is how can I have access to the data on my hard disk while operating from the ubuntu portable copy. thanks


How to tile a background on Ubuntu 18.04

I am running 18.04 (new laptop for work) and I do not see an option to tile, stretch or fit the background image for the desktop. How do I do this?  When I go to the Background Pane of Settings, I don't see an option   Nor do I see an option when I select a custom image to tile   Searching for "tile" does not show anything either


How to convert distance into latitude + longitude

I have start point (latitude) I know direction, lets say strictly north, and I want to calculate latitude which is 100 meters above the start point.  The same for longitude.  I believe there should be a simple way to do that, but I couldn't find any relevant to this, only how to calculate distance knowing start and end points.


Updating the profile throws an error when there is nothing to update

This is a silly bug, but I am reporting it anyway.   Steps to reproduce: Click edit on your profile. Then, without changing any fields, click Update.  Result:     Oops! There was a problem updating your profile:         temporary error updating your profile -- please try again!      The error message is deceiving, I guess it is thrown because the Update command returned zero affected rows and the result of the update turned out false; just a guess.


Give an example of a nonabelian group in which a product of elements of finite order can have infinite order.

So, I let a,b be elements in such a group. So |a|=n and |b|=m, n and m are finite. But |ab| needs to be infinite, but since |ab|=lcm(n,m), how can that be possible?


Making a 3D map with shapefiles, lidar and aerial image data

I want to try to make a simple 3D map for a small area (10 square miles) with some housing, some roads and some vegetation on it. My geodata is as follows:    shapes with houses/roads/vegetation.  LIDAR point cloud data over the area (can easily be built to a dem). georeferenced aerial image.   Any idea where to start to bundle these geodata together and make a neat looking 3D map?


Why is $e^x$ the only function that is its own derivative?

I've heard that $f(x) = Ae^x$ is only function (both elementary and non-elementary) that satisfies the property $f(x)=\frac{df(x)}{dx}$. Is this true (and if it's true, is there a definitive way to prove it)?


Proving that a list of perfect square numbers is complete

Well, I have a number  $n$ that is given by:  $$n=1+12x^2\left(1+x\right)\tag1$$  I want to find $x\in\mathbb{Z}$ such that $n$ is a perfect square.  I found the following solutions:  $$\left(x,n\right)=\left\{\left(-1,1^2\right),\left(0,1^2\right),\left(1,5^2\right),\left(4,31^2\right),\left(6,55^2\right)\right\}\tag2$$     Is there a way to prove that this a complete set of solutions? So I mean that the solutions given in formula $(2)$ are the only ones?     My work:   We know that: $$ 1 + 12x^2 \left(1+x \right) \ge 0   \space \Longleftrightarrow \space   x \ge -\frac{1+2^{-2/3}+2^{2/3}}{3}   \approx -1.07245 \tag3 $$ So we know that for $x<-1$ there are definitely no solutions.


Error while trying to download using wget

Proxy tunneling failed: Proxy Authentication Required Unable to establish SSL connection.   this is what shown while trying to download using wget..what is it??how to get my downloads right??


Why can't the Avengers go back in time and bring an earlier self of the deceased?

Why can't the Avengers in Endgame go back in time to 2016 and bring Black Widow from 2016?  They can explain her about Infinity War and Endgame. I'm sure she can understand, considering the fact she knows everyone has superpowers and the explanation sounds reasonable.  This is similar to how Star-Lord is trying to find Gamora.


Can any linear transformation be represented by a matrix?

Use $\cal L$ to denote a linear transformation on some vector space. We know any matrix $\bf{A}$ can be viewed as a linear transformation by defining $\cal L:= \cal L(\bf{v})= Av$ where $\bf{v}$ is a vector. I am curious is any linear transformation can be represented by a matrix? If so, why? If not, can anyone help provide a counterexample?  In particular, projection of vectors onto a vector $\bf{b}$ is a linear transformation defined by ${\cal L(\bf{v})}=({\mathbf{v}} \cdot \frac{{\mathbf{b}}}{{|{\mathbf{b}}|}})\frac{{\mathbf{b}}}{{|{\mathbf{b}}|}}$. Can this linear transformation be represented by a matrix?  Thank you!


How to exclude sky reflections from material?

I need to make two objects on the same scene. The first object should have a sky reflections but the second should not. Is there a simple way to exclude sky reflections from one material but keep it for another? I use Cycles.


Can you use printf() in Java for a float and not have trailing zeroes, but still have all necessary decimals?

So if I have the float variable interval and I want to print it, I want it to print with all of the necessary figures and no extra. If I use System.out.printf("%f", interval); where float interval = 15 I get an output of 15.000000. I can fix that by using System.out.printf("%2.0f", interval) to which I get an output of 15, but if I do that then where float interval = 12.05f I get an output of 12. My assignment requires me to use printf().


Prove the following combinatoric identity:  $$\sum_{k=0, k even}^n {n \choose k}*2^k = \frac{(3^n)+((-1)^n)}{2}$$


Why doesn't Google give search results for '*' [asterisk]?

You can search for anything on Google, right? At least, so I thought. I was trying to see how the special characters get encoded in the url, like how & gets converted to %26. I started searching for *. It did not get encoded, but weirdly google didn't tell me that it was an asterisk symbol. All other search engines (yahoo, bing, duckduckgo) did.   See for yourself : . Basically it treats it as a regular expression. So *+* will also not give any results. Still, shouldn't Google at least say that * is the asterisk symbol.  I don't know where else to ask this question, so I came to SO.


When is "to" a preposition and when the infinitive marker?

I want to see you.   I look forward to seeing you.      How can one say "to" in the first sentence is an infinitive marker and in the second sentence a preposition when we are given just the following two sentences and are asked to fill in the blanks?        I want to ____(see/seeing) you.   I look forward to __(see/seeing) you.


What is the xcalib -screen number for the HDMI monitor?

I must use a VGA-to-DVI cable and a HDMI cable to run two monitors.  I'm trying to invert the colors on both monitors but I can only invert one of them:  $ xcalib -invert -alter -s 0 #works   $ xcalib -invert -alter -s 1 X Error of failed request:  BadValue (integer parameter out of range for operation)   Major opcode of failed request:  129 (XFree86-VidModeExtension)   Minor opcode of failed request:  19 (XF86VidModeGetGammaRampSize)   Value in failed request:  0x17   Serial number of failed request:  10   Current serial number in output stream:  10   I unplugged the HDMI cable and plugged it back in again.  Now, the xcalib  -invert -alter -s 0 command inverts the other monitor.  In other words, both monitors are inverted for the moment but I had to re-connect one monitor to get that to happen.  Here is my setup:  $ xrandr Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 8192 x 8192 VGA-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 510mm x 287mm    1920x1080      60.0*+    1680x1050      60.0      1280x1024      60.0      1440x900       59.9      1280x720       60.0      1024x768       60.0      800x600        60.3      640x480        60.0      720x400        70.1   HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm    1920x1080      60.0*+    1680x1050      59.9      1280x1024      60.0      1440x900       59.9      1280x720       60.0      1024x768       60.0      800x600        60.3      640x480        60.0      720x400        70.1     Graphics card:  $ lspci |egrep -i vga 01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS880 [Radeon HD 4200]   This is Ubuntu server 12.04 LTS w/gnome-panel.  The problem still occurs on Ubuntu 14.04 but the work-around does not work.


If $f$ is a continuous even function from $[-a,a]$ to $\Bbb R$ then calculate $\int_{-a}^a \frac{f(x)}{1+e^x}dx$  The answer that is given is $\int _{-a}^af(x)dx$  My attempt  $I=\int_{-a}^a \frac{f(x)}{1+e^x}dx=-\int_{-a}^a \frac{f(x)e^x}{1+e^x}dx+\int_{-a}^a {f(x)}dx$  Now for the first integral, we can use integration by parts but the equation is getting complicated and for the second integral would be $2\int_{0}^a {f(x)}dx$ as $f$ is even. Please help...


Proving $(P(AB))^2+(P(AB^c))^2+(P(A^cB))^2+(P(A^cB^c))^2\ge\frac{1}{4}$ for any events $A$ and $B$

Show that for any two events $A$ and $B$, $$(P(AB))^2+(P(AB^c))^2+(P(A^cB))^2+(P(A^cB^c))^2\ge\frac{1}{4}$$   Using the Inclusion-Exclusion formula, De Morgan's law and $P(AB^c)=P(A)-P(AB)$, I was able to expand the $\rm{l.h.s.}$ as $$(x+y)(x+y-4z)+2z(2z+1)+x(x-2)+y(y-2)+1\quad...\quad(*),$$ where $x=P(A),y=P(B)$ and $z=P(AB)$.  However I'm not being able to group the terms involved in the $\rm{l.h.s.}$ to form a 'suitable' expression and probably the way I have grouped them is not correct.  The expression $(*)$ is subject to the condition   $\max\{0,x+y-1\}\le z\le \min\{x,y\}$ and obviously $0\le x,y,z\le 1$, but I am unable to use this.      Is there an elegant/slick way to show the inequality? It probably can be shown without a lot of work and it's possible I'm missing something trivial here.


Putting altered social media logo icons on my website, can I get sued?

I would say most websites with a somewhat thought-through graphical design use social media icons (i.e Twitter, Facebook, YouTube, etc) which are altered to fit the theme and design of the site.  Now, my boss insist we only use the ones provided by say Facebook or Twitter themselves (in fear of getting sued or lose credibility), but sometimes it just doesn't look very good on the site.   What is the common practice for these things? What do you risk by using an altered logo? What should I tell my boss?  I'll provide a few examples, what'd happen if I put any of these on a site?


How strong is Marvel's Colossus? Has his strength been consistently portrayed over the years?

How strong is Colossus? Before he became the new Juggernaut, everybody said he could lift over 100 tons. Now they're saying can lift 70 tons.    When he was a teenager he could only lift 40 tons. However, when Colossus was a teenager, he was strong enough to knock down the original Juggernaut () and if he was lifting 40 tons at that time, he wouldn't be able to do that.   I personally believe he's a  or else he wouldn't be able to go toe to toe with the heavy hitters of the Marvel Universe. Can anyone explain this discrepancy?


I read that its possible to create template method. I have something like this in my code  File : Student.h  class Student { public:     template<class typeB>      void PrintGrades(); };   File: Student.cpp  #include "Student.h" #include <iostream>  template<class typeB>  void Student::PrintGrades() {     typeB s= "This is string";     std::cout << s; }   Now in main.cpp  Student st; st.PrintGrades<std::string>();   Now I get a linker Error:  Error   1   error LNK2019: unresolved external symbol "public: void __thiscall Student::PrintGrades<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >(void)" (??$PrintGrades@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Student@@QAEXXZ) referenced in function _main   Any suggestion on what I might be doing wrong ?


How to use an image as texture on top of the Principled BSDF?

I'm trying to create a node setup that allows me to use a Principled BSDF for the yellow lego plastic, but also use a .png with alpha for the face. I can't figure out how to make that work, so my work around is to use an image texture with the face and a yellow background, as seen below.  But I'd rather use the Principled shader to control color.  Below is something I've tried unsuccessfully.  Can anyone suggest a node setup that'll allow me to use the .png WITH a Principled BSDF?


Yes, this is a basic point of confusion that has been discussed before, but there's a lot of convoluted information and I'm hoping that someone can pinpoint my exact misunderstanding here.  public class Test {   public static void change(int i) {     i = 2;   }   public static void change(int[] i) {     i[0] = 6;   }   public static void change(String i) {     i = "Bye";   }   public static void main(String[] args) {     int a = 1;     int[] b = {3,4,5};     String c = "Hello";     change(a);     change(b);     change(c);     System.out.println(a);    // 1 - value unchanged     System.out.println(b[0]); // 6 - value changed     System.out.println(c);    // Hello - value unchanged   } }    The variable a actually contains the value 1. When we pass this to the change() method, a new variable is created, which also contains the value 1. Thus when we change i, a is unaffected. This makes sense. The variable c contains a reference to an array object in memory. When we pass this to the change() method, a new variable is created, which contains the same reference. Thus, they both represent the same object. So when we change i[0], c[0] is also changed. This also makes sense. What I'm having trouble with is if Strings are just object references in Java, why do they behave like primitives in this regard?


Actually I am using the fancyhdr package, and trying to put the current part name in the right header.   I know that \rightmark and \leftmark are used to represent the current section and chapter heading respectively, but I can not find anything similar to represent the part name.


I have a machine which has a port connected to a monitor port on a switch. Thus, many packets from different sources and destinations are arriving at its interface. However, I cannot seem to filter based on certain IP addresses.  For example, I try to do this, but I see no traffic:  # tcpdump -n -nn -i p2p2 host 239.31.80.152   tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on p2p2, link-type EN10MB (Ethernet), capture size 65535 bytes ^C 0 packets captured 0 packets received by filter 0 packets dropped by kernel   But if I do a simple grep, I can see packets come in:  # tcpdump -n -nn -i p2p2 | grep 239.31.80.152 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on p2p2, link-type EN10MB (Ethernet), capture size 65535 bytes 20:32:26.535506 IP 10.232.4.7.41724 > 239.31.80.152.10502: UDP, length 38 20:32:26.635546 IP 10.232.4.7.41724 > 239.31.80.152.10502: UDP, length 38   If I dump the packets to a pcap file, I cannot filter based on that host, either.  But I can filter on another host or network as I wish:  # tcpdump -n -nn -i p2p2 src net 50 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on p2p2, link-type EN10MB (Ethernet), capture size 65535 bytes 21:01:05.104011 IP 50.93.139.140.60745 > 233.90.130.137.13090: UDP, length 20 21:01:05.140072 IP 50.93.139.140.60745 > 233.90.130.137.13090: UDP, length 75  # tcpdump -n -nn -i p2p2 dst host 233.90.130.137 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on p2p2, link-type EN10MB (Ethernet), capture size 65535 bytes 21:01:17.940104 IP 50.93.139.140.60745 > 233.90.130.137.13090: UDP, length 460 21:01:17.954007 IP 50.93.139.140.60745 > 233.90.130.137.13090: UDP, length 20 21:01:18.000084 IP 50.93.139.140.60745 > 233.90.130.137.13090: UDP, length 59   What is peculiar about that host 239.31.80.152?


Is the ability to unilaterally close/reopen duplicates for Gold Badge holders SO specific?

This is posted and answered on SO meta:   Does that mean the ability to unilaterally close/reopen duplicates for Gold Badge holders SO specific? Or does it work across all SE sites?


How to evaluate the sum $\sum_{k = 0}^{n}2^k {{n}\choose {k}}$

How do I evaluate the sum: $$\sum_{k = 0}^{n}2^k {{n}\choose {k}}$$ I know that $2^k = {n \choose 0} + {n \choose 1} + {n \choose 2} + {n \choose 3}... {n \choose k}$, but I don't know how to proceed from this.


For a positive integer $n\geq 2$ with divisors $1=d_1<d_2<\cdots<d_k=n$, prove that $d_1d_2+d_2d_3+\cdots+d_{k-1}d_k<n^2$

IMO 2002 P4 Let $n\geq 2$ be a positive integer with divisors $1=d_1<d_2<\cdots<d_k=n$. Prove that $d_1d_2+d_2d_3+\cdots+d_{k-1}d_k$ is always less than $n^2$, and determine when it is a divisor of $n^2$  I am trying this question but I run out of ideas, could someone give a little hint or a suggestion? Please, without giving me the solution. I am trying to use the fact that the product of $d_i$*$d_{i+1}$ is a divisor of $n^2$ (and they are all different) and maybe try to use the formula for the sum of divisors to see if this specific sum is less than $n^2$


Why are my hidden communities visible under the 'top', 'reputation' and 'activity' tabs on the Network Profile page?

Recently, I've discovered that the communities that I have hidden are still visible under the 'top', 'reputation' and 'activity' tabs of my Network Profile.        Is this a bug or ? If so, doesn't this defeat the purpose of hiding a community since it can still be found by navigating to the 'reputation' tab?


2,5+4,5=7, right? I didn't understand why Excel is giving me a false value in this case.  I'm sorry my Excel is in Portuguese.


Are recipients of my Gmail emails also given my full name?

In my own inbox, I see some people as John Smith but others as username@domain.com. I am aware that if I explicitly change someone's name in my contact list, then they will appear as whatever I set it to.  But besides those people in my contact list, how does Gmail (or other e-mail programs in general) decide whether to show a full name or email address only?


If $\,k\mid n^2-1\,$ for all $n$ coprime to $k$ then $k\mid 24\ $

This comes from some university's admission test. Here's a translation of an excerpt of a problem: A positive integer $k$ is a cool number if for every natural number $n$ coprime with $k$, the quantity $n^2 - 1$ is divisible by $k$. The original problem asked for the biggest cool number below a certain threshold, but I was interested in finding all of them. I managed to prove that $k \in \lbrace 1, 2, 3, 4, 6, 8, 12, 24 \rbrace$ satisfies the contidion, but, to my surprise, I couldn't find more! Crunching some numbers on a computer revealed that these are the only cool numbers less than $10^9$. This  has led me to the following conjecture: $$\lbrace 1, 2, 3, 4, 6, 8, 12, 24 \rbrace \mathrm{\ are \ the \ only \ } \mathit{cool} \mathrm{\ \, numbers.}$$ Beautiful, isn't it? I've attempted to prove this by way of contradiction. My idea was, assume there is a cool $k > 24$, get an upper bound $M$ on it, show one-by-one that no natural number $n$ s.t. $24 < n < M$ satisfies the condition, end the proof. Unfortunately, I can't find a way to attack this problem. I've noticed a neat little fact about the conjectured cool numbers, they're the divisors of 24, but this may be a coincidence and I don't see how I could use this fact.


how to get graphics card memory info? windows and linux shows different value

In my Windows 8, video card shows 640 MB of available memory (Screen Resolution > Advanced Settings or with dxdiag). But ubuntu (with lspci command) shows 256 MB. so who's right?


TIMATIC Online (for passport and visa information) free airlines web links are off now; specially this:  anyone knows any different sites or similar layout site links? please help. Thnx


Where can I find lava in Minecraft 0.7.1

I can't find lava. I'm trying to make obsidian so I can make a teleport to the nether world.


Bayesian inference for both mean and variance

Let $x_1,...,x_k$ distributed from $\mathcal{N}(\mu,\ 1/\tau)\ (i.i.d)$ and priors on mean and variance are in form: $$\mu|\tau \sim \mathcal{N}(\mu_0,\frac{1}{\tau}) $$ $$\tau \sim Ga(\alpha,\beta) $$ Now how calculate posterior distribution? The formal Bayesian inference says $$P(\mu|x)\propto P(\mu)f_{\mu}(x)$$ but here we have distribution $\mu|\tau$ so I guess the inference should  be based on $\mu|\tau$, i.e. $$P(\mu|x,\tau)\propto P(\mu,\tau)f_{\mu,\tau}(x)$$ but I'm not sure about this and how to continue.


We may use the verb 'contain' in a passive sentence? Question is, how? To me, the verb 'contain' is kind of INTRANSITIVE since it presents a state, not an action i.e. there is no working force (agent) in the sentence made with 'contain'.  Look:  The room has a few chairs. (can't be changed into passive)  The room contains a few chairs. What will be passive?  A few chairs are contained by the room.  OR  A few chairs are contained in the room.  OR  A few chairs are contained within the room.


Appendix not numbered - minimal document

I'm trying to put appendices in my PhD thesis, and I'd expected them to be labelled A,B, etc. However, instead it's not producing a title for the appendix at all, and it's giving me sections to my final chapter marked .1, .2 etc. I've looked around this site, and seen lots of problems about poorly placed \backmatter etc. but I'm getting this problem even with the following minimal code:  \documentclass[a4paper,10pt]{book} \begin{document} \chapter{Introduction} This is my testbed. \appendix \section{What's this?} This is an appendix. \end{document}   This is everything- I've not omitted any packages or anything. This produces a single page:       Chapter 1      Introduction      This is my testbed.        .1 What's this?      This is an appendix.   I'm using TeXShop 3.39 (the latest version).


Uploading an avatar (profile picture) from a different source

Is there a way I can upload a picture to your service instead of Imgur? Or possibly use a gravatar link or from a webpage like Google?


Numbering Appendices After Bibliography in Backmatter

My graduate school requires the appendices to be after the bibliography but still numbered A,B,C, etc.  I'm running into a problem because I am using \backmatter before calling the bibliography but this turns off chapter numbering so then all appendices are numbered as .1 and so forth.  For example, I'd like to do the following:  \documentclass{book}  \begin{document}  \frontmatter \tableofcontents  \mainmatter \chapter{foo} \section{Donald}  \backmatter \bibliographystyle{bibstyle} \bibliography{exampleBiB}  \appendix \chapter{bar} \section{Mickey}  \end{document}   and have the Mickey section labeled A.1.  I know that backmatter turns off chapter numbering so I realize this is the problem, but without it then the bibliography is incorrect.  Any help is appreciated.


Generic List - moving an item within the list

So I have a generic list, and an oldIndex and a newIndex value.  I want to move the item at oldIndex, to newIndex...as simply as possible.  Any suggestions?  Note  The item should be end up between the items at (newIndex - 1) and newIndex before it was removed.


How to get a value from an Apex class into JavaScript in a Visualforce page

I want to get the value from Apex class to my javascript. I have a value from my apex class and the value I am able to display in my VF page but not able to pass this value to my script. How can I get the vale to my script. Please help me.


Andromeda is made of antimatter. Am I wrong? Why?    Of course I do not know that Andromeda is made of antimatter. _but____ I do not know that Andromeda is made of matter.   Does anybody know what is the correct sentence?  Why?  EDIT I used Andromeda as a substitute for any non-local galaxy. Lets put some geometry (due to the first two comments): Antimatter galaxies (AMGs) have in general AMGs in the neighborough. MGs only MGs. For instance suppose the hurricanes in the northern hemisphere rotate X way and in the southern rotate anti-X way, and they dont meet ;). That is to say, it is not mandatory that AMGs colide at all with MGs.    I suspect that we have no way to decide if the light we receive is originated in an anti-atom or from an atom.


Let's say I want to arrange a lesson with my coach and I say:  Shall we have a lesson on Monday?  I understand the use of 'shall' in American English is considered to be formal, whereas this is not the case in British English. I would like to understand the different connotations (is it formal? is it a request for confirmation? is it a suggestion?) that the following questions have:  A. Shall we have a lesson on Monday? B. Can we have a lesson on Monday? C. Should we have a lesson on Monday? D. Could we have a lesson on Monday? E. Are we having a lesson on Monday? F. Will we have a lesson on Monday? G. Are we going to have a lesson on Monday?


not able to use local variable outside the function after exporting

This is my script. Even after using the export command not able to use variable outside of the block. Below is the code that i have tried. i have tried other option like declare -x var but that is also not working. Can someone please please comment on this, am i doing right?  #!/bin/bash {     var="123"       export var   # exporting the variable so that i can access from anywhere        echo "var is "$var     # able to get the value of this variable } | tee   log.txt  echo "var is "$var   # not able to get the value of this variable


Lubuntu wifi doesn't see 5ghz network on b43

I'm on Lubuntu 17.04 and unfortunately I don't see my local 5ghz wifi network.  However I have no problem with connecting to 2.4ghz network after installing firmware-b43-installer. Also when I had Ubuntu 17.04 installed it didn't have any problems with seeing and connecting to any network (and I didn't have to install anything). I've checked similar answers but all lead to installing same b43 driver. So what is Lubuntu missing that is present on Ubuntu (17.04)?   My card is: Broadcom Limited BCM4331 802.11a/b/g/n


Determine whether the function $f(x) = e^x \cos (1/x)$ is uniformly continuous on $A = (0,1)$.   I see that the function $f(x) = e^x \cos (1/x)$ is uniformly continuous on $A = (0,1)$. Am I correct?  My answer: since the function $\cos (1/x)$ is continuous on $\mathbb{R} - \{0\}$ so it is continuous on any closed interval not containing $0$ say $[a,b]$, $a\neq 0$. Since $e^x$ is continuous for all  $x$ then we can say that $f(x) = e^x \cos (1/x)$ is continuous on any interval $[a,b]$ such that $a\neq 0$. So $f$ is continuous on any subset of $[a,b]$ so it is uniformly continuous using the theorem that: A continuous function on an interval $[a,b]$ is uniformly continuous .   Is my solution correct? If not could you please provide me with the correct solution?


Soft Question, advice on writing an exam on proofs?

Sorry if this isn't allowed, let me know and I'll delete, but I'm in first year algebra focused on proofs (congruences, complex numbers, etc.) And I was wondering if anyone had any tips on writing final exams on this topic. One of the things I did a lot on the midterm was finish a proof feeling satisfied but I would do something wrong at the start and lose all the marks because I based my proof off of something false.  Another thing is, if I get a true or false question, for example $\forall x \in (2^k + 1: k \in \Bbb N), \exists l \in \Bbb Z, x = 3l$, what should I do to make sure that this is true or false? Or maybe if it says "prove or disprove this statement"  This example is really specific, but for any question where it says disprove or prove, or true or false, how should I know whether to prove it (or that it's true), or to disprove it (or say false). Should I plug in odd numbers, even numbers, negative numbers, positive numbers, etc.. in all the variables? Just go with my gut? Try to prove or disprove right away and see if I get an answer? Use contradiction, and if it's false I know the statement is true and vice versa?  Thanks! (Any other tips are welcome :))


Finding length of int array in c++, how does it work?

Someone gave this code as a method to find the length of an array called a:  std::cout << "Length of array = " << (sizeof(a)/sizeof(*a)) << std::endl;   The only thing I don't understand is   sizeof(*a)   I don't know what the * is doing here. I also assume it's a fraction. What's it doing in the denominator?


A problem on Minima. Proving sphere has minimum surface area for a given volume

Has the below question been answered here before?  Prove: For a given enclosed volume, a sphere has minimum surface area.  Please provide link or ways to solve it. I know it is a problem of Minima and involves finding derivative and second derivatives. However, how to to frame the leading equations which has to be differentiated?  I am looking for a way to solve only using High School level Calculus. I think there must be an answer.


Using Collect Values Tool with Union in ModelBuilder?

I would like to feed a list of feature classes (only one polygon per feature class, but up to 150 feature classes) into the Union tool in ModelBuilder by using a Feature Class Iterator and the Collect Values Tool.   Unfortunately, it does not work since "Collect Values" only works with Merge, Append, etc.   Does anyone know a workaround or another way to do this?


How can you monitor total internet data usage across reboots?

Some broadband providers impose a monthly download limit, charging extra if you go over. It is also quite easy to exceed some of the lower limits just by installing/updating packages and 'normal' browsing (which to me includes streaming TV programs and movies).  This means that you need to limit the amount you use the internet, yet it is hard to know when.  The System Monitor helps a bit with this by giving a total received/total sent in the networking section of the Resources tab. However, this is reset every reboot. It would be good if there was a way to have a monthly total received so you can know how close you are to exceeding your limit and maybe even be given warnings if it looks like you are going to exceed the limits.  Does anyone know of a way to achieve this?


Where to ask about computational code about mismatched results with scientific theories?

I asked a question on Physics about an unproducible code, and it was close voted as not about physics: .  Since the nature of the question is about mismatched results with scientific theories not fixing bugs, I think Stack Overflow or Code Review are not a right place. Mathematics can work for common problems, but again not a good fit if it requires knowledge outside math. The last thing I can come up is Computational Science, which seems the right choice for algorithms, but . The question  assumes that I've coded correctly in principle.   Where can I ask such questions?


i'm having a trouble changing my liquid base color

so i'm currently adding a base color to my liquid but the color end up changing both of my cup and my liquid (pict 1) i have also made a new materials but it won't change a single color and stayed like this (pict 2), is there any possible way to fix this?


Mapping that proves $\mathbb{Z} \subset \mathbb{Q}$

I think I may have caught a mistake in my professor's lecture notes, and just want to be sure I'm not mistaken.   We want to construct $\mathbb{Q}$ from $\mathbb{Z}$, and we consider the mapping $$f: \mathbb{Z} \to \mathbb{Q}, \; n \mapsto \frac{n}{1}.$$ He writes that because $f$ is surjective, $\mathbb{Z} \subset \mathbb{Q}$.   However, it is surely not surjective because there are surely rational numbers whose  (unique) simplest form is $\frac{a}{b}$ for $b \neq 1$. The function is injective, surely, because the simplest representative in $\mathbb{Q}$ is unique, but that alone would not imply that $\mathbb{Z} \subset \mathbb{Q}$.   I think he meant to say that because $f$ is well-defined over the entirety of $\mathbb{Z}$, meaning we actually can identify each integer with a single rational number via the above inclusion, $\mathbb{Z} \subset \mathbb{Q}$.   Am I correct or glossing over something?


Is it possibile to have an intelligence score of 45?

I am wondering if it is possibile to reach the +17 modifier on an ability score. I am mainly keen on wizards, so I would like to know how it is possibile to reach 44/45 in Intelligence. At the moment i managed to reach 41, using magic items and bonuses of which I have knowledge of, but I guess I need your help.  The following are the bonuses I managed to find (at the moment I am considering a level 20th wizard)   First of all, we start with a 20 in Intelligence (18 on the dice +2 of racial bonus) Extra ability score points from leveling up (4,8,12,16,20) so +5. Headband of Vast Intelligence (+6). Cast Wish 5 times, increasing the score of +1 each time (+5) Read the Tome of Clear Thought (the most expensive one) to have another +5.   Total:20+5+6+5+5 = 41  So this is what I've found. I am not concerned with the prices of the magic items or spells because actually I am not playing such a wizard. I am merely curious about how can a score like that be achieved.


Ubuntu Desktop 14.10 installation went wrong and wiped the hard disk on windows 10

how to recover the lost Data and Windows 10 after installing Ubuntu Desktop 14.10


Area under normal distribution overlays x-axis

My problem ist, that the filled Area overlays a part of the x-axis. Is there a possibility to fill the area without hiding a part of the x-axis?  \begin{figure}[H] \centering \begin{tikzpicture} \begin{axis}[          scale only axis,          axis x line=middle,          axis y line=middle,          inner axis line style={=>},                  width=15cm,height=6cm,                      ymin=0,ymax=0.45,                      xmin=-3.5,xmax=3.5,                      axis line style = thick,                      xtick={-3,-2,-1,1,2,3},                      ytick={0.1,0.2,0.3,0.4},                  every axis x label/.style={at={(current axis.right of           origin)},anchor=west},          every axis y label/.style={at={(current axis.north)},above=0.5mm},                  xlabel={$x$},                  ylabel={$f(x)$}         ]       \addplot[fill=blue!25,draw=none,domain=1.63:3.5] {gauss(0,1)}        \closedcycle;]       \addplot [domain=-3.5:3.5,samples=500,red,thick] {gauss(0,1)};         \node[below] at (1.63,0)  {\Large \textcolor{black}{$\mu_{3}$}};        \end{axis}        \end{tikzpicture}         \caption{Graph der Dichtefunktion $f_X(x)$ mit $X\sim\mathcal{N}        (0,1)$}% \end{figure}


'Of' in "The tomb had been robbed of its treasures."

The tomb had been robbed of its treasures. (Oxford Dictionary)   What should I think that this 'of' means? I know 'of' has the similar meanings to 'from' and 'about' but I am not sure which it is in this case.  Thanks and a happy new year to you!  »» I needed to know the meaning of 'of' in this usage and I've seen that question and answer but that one was about 'rob' and not explained about what I needed to know.  »» I want to comment on the 3rd answer because I like it and want to say something. I'm trying to put it in words now.. please give me some time.


I left cooked pork out overnight. Will this present a danger? Since this morning when we realized it was out still, we have been refrigerating it ever since. Also we wonder if when reheating the meat if we heat it very well will that help kill any existing bacteria?


Solving the improper integral $\int_0^\infty \frac{x^{1/3}}{1+x^2} \mathrm dx$

I'm trying to solve:  $\displaystyle \int \limits_0^\infty \dfrac{x^{1/3}}{1+x^2} \mathrm dx$  I have tried contour integration with $C_R^+$ and the real line like this:  $\displaystyle \int \limits_T \dfrac{z^{1/3}}{1+z^2} \mathrm dz = \int \limits_{-\infty}^\infty \dfrac{z^{1/3}}{1+z^2}\mathrm  dz + \int \limits_{C_R^+} \frac{z^{1/3}}{1+z^2} \mathrm dz$  Where the last integral tends to $0$ as $R \longrightarrow \infty$  $\text{Res}(f(z);i) = \dfrac{i^{1/3}}{2i}$  and  $\displaystyle \int \limits_{-\infty}^\infty \frac{z^{1/3}}{1+z^2}\mathrm  dz = \int \limits_{0}^\infty \frac{z^{1/3}}{1+z^2} \mathrm dz + \int \limits_{-\infty}^0\frac{z^{1/3}}{1+z^2} \mathrm dz$  If i manipulate the last term by changing the limits and substitute $u=-t$ i get:  $\displaystyle  \int \limits_{-\infty}^0\dfrac{z^{1/3}}{1+z^2} \mathrm dz  = -\int \limits_{0}^{-\infty}\frac{z^{1/3}}{1+z^2} \mathrm dz$  If i now substitue $u=-z, u'=-1$  $\displaystyle \int \limits_{-\infty}^0\dfrac{z^{1/3}}{1+z^2} \mathrm dz  = \int \limits_{0}^{\infty}\dfrac{(-u)^{1/3}}{1+u^2}\mathrm  dz = (-1)^{1/3}\int \limits_{0}^{\infty}\dfrac{u^{1/3}}{1+u^2}\mathrm  dz$  $\displaystyle \int \limits_{-\infty}^\infty \dfrac{z^{1/3}}{1+z^2}\mathrm  dz = \left(1+e^\frac{i\pi}{3}\right) \int \limits_{0}^\infty \frac{z^{1/3}}{1+z^2} \mathrm dz $  So i end up with:  $\displaystyle \dfrac{2i\cdot\pi \cdot e^{i\cdot\pi /6}}{2i\cdot\left(1+e^\frac{i\pi}{3}\right)} = \dfrac{\pi\cdot e^{i\cdot \pi /6}}{\left(1+e^\frac{i\pi}{3}\right)}  = \int \limits_{0}^\infty \dfrac{z^{1/3}}{1+z^2} \mathrm dz$ which is wrong answer


A way to use iPad as a drawing tablet for Photoshop & Illustrator?

Are there and apps/programs that allow an iPad to be used as a drawing tablet? I've tried Duet Display and Chrome Remote Desktop, which are great apps, but are not helpful with my situation. They don't allow you to click and drag with a stylus, pen, or finger - you can only click. I have a good drawing app on my iPad but it has limitations and my software is just sitting on my desktop unused. I do not like the Adobe apps available and I don't have a CC subscription anyways.


stationary point of a periodic function.

I have a continuous function $f:\mathbb{R}\to \mathbb{R}$ which is periodic with period $2\pi$, how to show that there exists a point $x_0\in \mathbb{R}$ s.t $f(x_0)=f(x_0+\pi)$?  I defined the function $g(x)=f(x)-f(x+\pi)$, I want to show that this function vanishes in some point. So I need to find an interval $[a,b]$ where $g(a)g(b)<0$, but how?  I think I had such a question when I took the course but I cannot find my notes from that course.


I'm running Kubuntu 14.04 and my machine is nearly locked up. I apparently have a canary problem.  Here is the log just before the bird started chirping:  May 10 21:38:06 Morchella NetworkManager[1010]: <info>   gateway 192.168.0.1 May 10 21:38:06 Morchella NetworkManager[1010]: <info>   nameserver '192.168.0.1' May 10 21:38:07 Morchella wpa_supplicant[1160]: wlan0: CTRL-EVENT-SCAN-STARTED  May 10 21:38:07 Morchella dbus[799]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper) May 10 21:38:22 Morchella NetworkManager[1010]: <warn> Dispatcher failed: (4) Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. May 10 21:38:38 Morchella dbus[799]: [system] Failed to activate service 'org.freedesktop.nm_dispatcher': timed out May 10 21:40:28 Morchella wpa_supplicant[1160]: wlan0: CTRL-EVENT-SCAN-STARTED  May 10 21:43:14 Morchella wpa_supplicant[1160]: wlan0: CTRL-EVENT-SCAN-STARTED  May 10 21:45:17 Morchella CRON[13724]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime)) May 10 21:45:19 Morchella wpa_supplicant[1160]: wlan0: CTRL-EVENT-SCAN-STARTED  May 10 22:00:44 Morchella wpa_supplicant[1160]: message repeated 6 times: [ wlan0: CTRL-EVENT-SCAN-STARTED ] May 10 22:03:28 Morchella rtkit-daemon[2228]: The canary thread is apparently starving. Taking action. May 10 22:03:28 Morchella rtkit-daemon[2228]: Demoting known real-time threads. May 10 22:03:28 Morchella rtkit-daemon[2228]: Demoted 0 threads. May 10 22:03:55 Morchella rtkit-daemon[2228]: The canary thread is apparently starving. Taking action. May 10 22:03:55 Morchella rtkit-daemon[2228]: Demoting known real-time threads. May 10 22:03:55 Morchella rtkit-daemon[2228]: Demoted 0 threads. May 10 22:04:10 Morchella rtkit-daemon[2228]: The canary thread is apparently starving. Taking action. May 10 22:04:11 Morchella rtkit-daemon[2228]: Demoting known real-time threads. May 10 22:04:11 Morchella rtkit-daemon[2228]: Demoted 0 threads. May 10 22:05:47 Morchella wpa_supplicant[1160]: wlan0: CTRL-EVENT-SCAN-STARTED    I tried to use top to see what was going on, but under the circumstances it wouldn't run.  The older thread on this topic suggested two possible causes: rtkit misbehavior and buffer overflow. But it offers no information about determining which is the cause and what to do about it. Naively looking at the log, it seems to me that rtkit isn't the culprit; it's merely responding to something else going on.  In fact, that older thread is almost useless, except for explaining the "canary" reference.  If the problem is indeed a buffer overflow, how does knowing that help anyone? Indeed, it doesn't even tell you what system component is misbehaving.  And for anyone other than a knowledgeable system maintainer, knowing what is misbehaving still isn't helpful.  As to rtkit-daemon, that doesn't look like a prime causality either -- and if it is, what can anyone do about it?  Further addendum:I suspect that the cause might be Dropbox hogging bandwidth.  So using Dropbox's bandwidth setting, I've throttled back the upload bandwith that Dropbox can use.  Time wil tell if that makes any difference.


Which version of Ubuntu should I use with my processor

I bought a laptop a while ago and I'm sort of through with Windows. I wanted to try Ubuntu but I don't know which version I should take. I got a Samsung NP300E5A-S02NL  It has a  Intel I3 2330M @2.2GHz Processor 8GB of ram Nvidia GeForce 520MX a chipset Intel HD Graphics videocard   I know for windows there is a need of x64 to get full use out of your 8GB of ram, is this the same for Ubuntu?


The relation $a^n|b^n$ implies that $a|b$, where $a$ and $b$ are positive integers and $n\ge1$.

Let $gcd(a, b) = d$ Let $a = rd$ and $b = sd$, where $gcd(r, s) = 1$. $\therefore gcd(r^n, s^n) = 1$ Now, how do I show that $r = 1$?


Understanding when $\lim_\limits{n \to \infty} \frac{a_n}{b_n} = \lim_\limits{n \to \infty} \frac{a_0 + a_1+ \cdots + a_n}{b_0+b_1+ \cdots + b_n}$.

Understanding when $$\lim_{n \to \infty} \frac{a_n}{b_n} = \lim_{n \to \infty} \frac{a_0 + a_1+ \cdots + a_n}{b_0+b_1+ \cdots + b_n}.$$  That is, supposing the first limit exists, what properties must be satisfied by the sequences $\{a_n\}_{n \ge 0}, \{b_n\}_{n \ge 0}$ such that we may conclude that the above equality holds? I tried using the inequality $\frac{a_n}{b_n} + \frac{a_{n-1}}{b_{n-1}} < \frac{a_n+a_{n-1}}{b_n + b_{n-1}}$, which holds when our sequences consist of positive real numbers, having in mind the notion of applying induction but didn't get anywhere with that idea. This isn't a homework assignment, I just want to know the answer.


Dual booting Ubuntu 12.04 and 14.04 [same drive]

I want to install Ubuntu 12.04 and 14.04 on the same drive.   I have already installed Ubuntu 12.04 and I have manually partitioned the drive.   300 MB boot; 20 GB root; 400 GB Home; 5GB Swap  500 GB is unpartitoned. (left for 14.04)  Now I want to install 14.04. How do i go about partitioning the remaining 500 GB for 14.04.   I will create another Home and root partition, but do I also have to create another boot partition? I don't want to have any grub issues. I just want both the installation to be separate and neat.


How to manually flash your android device?

Want to update my android version myself. The phone manufacturer isn't providing any updates. Is there a way to update from Jellybean to kitkat manually?  I'm using Micromax A76 Canvas Fun. Currently on Jellybean 4.2.2


Applescript to change Sound output intermittently

I am trying to have an applescript run every 2 minutes that would open sound preferences, then change the audio output by pressing the up key, followed by the down key.  I am using a TV for external audio and it is creating some static but if I change the audio output to a different source and then back again, the static is gone for a random period of time.  I am not a Mac user and have never created an applescript before.  Searching around, this is the closest I can get but still gives me an error when I try to compile.  I am on Mohave.  tell application "System Events"   delay 0.5   keystroke space using command down   delay 0.5   keystroke "Sound"   delay 0.5   keystroke return   delay 1   keycode "125"   delay 1   keycode "126 end tell


I received an E-mail on a deleted question telling me that it was being edited. How can that be?

I deleted a question 19 hours ago and just received and e-mail informing me that it was being edited. I'm concerned that my unanswered questions aren't really being deleted although they they no longer show on my account.


What to do before you sell, give away or trade in your iPhone, iPad or iPod touch?

I just upgraded to the iPhone 5 and plan on selling my old iPhone 4. However, I want to make sure I don't keep any personal information (photos, emails, contacts) on the device. Since both iPhones are synced with iCloud, I'm not sure that I am safe to just start deleting stuff without those same changes being synced to the new device. What is the appropriate way to clean up the old iPhone to be ready to sell?


Definite article before 'soul' and zero before 'body' in a Leo Tolstoy quote

In one video the author puts the following quote of Leo Tolstoy.     Alcohol is a poison, harmful to the soul and _ body, therefore it is a   great sin to drink alcohol and to offer it to others. It is an even   greater sin to produce and sell this poison.    Actually, I do not have any information about in what language Leo said that, whether it was his native Russian – which does not have any articles in it – or he did it in English.  So, my question is: Why does "the" go before "soul" and not go before "body" for the same reason there?


How to deal with unknown encoding when scraping webpages?

I'm scraping news articles from various sites, using GAE and Python.  The code where I scrape one article url at a time leads to the following error:  UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 8858: ordinal not in range(128)   Here's my code in its simplest form:  from google.appengine.api import urlfetch  def fetch(url):     headers = {'User-Agent' : "Chrome/11.0.696.16"}     result = urlfetch.fetch(url,headers)     if result.status_code == 200:         return result.content   Here is another variant I have tried, with the same result:  def fetch(url):     headers = {'User-Agent' : "Chrome/11.0.696.16"}     result = urlfetch.fetch(url,headers)     if result.status_code == 200:         s = result.content         s = s.decode('utf-8')         s = s.encode('utf-8')         s = unicode(s,'utf-8')         return s   Here's the ugly, brittle one, which also doesn't work:  def fetch(url):     headers = {'User-Agent' : "Chrome/11.0.696.16"}     result = urlfetch.fetch(url,headers)     if result.status_code == 200:         s = result.content          try:             s = s.decode('iso-8859-1')         except:             pass         try:             s = s.decode('ascii')         except:              pass         try:             s = s.decode('GB2312')         except:             pass         try:             s = s.decode('Windows-1251')         except:             pass         try:             s = s.decode('Windows-1252')         except:             s = "did not work"          s = s.encode('utf-8')         s = unicode(s,'utf-8')         return s   The last variant returns s as the string "did not work" from the last except.  So, am I going to have to expand my clumsy try/except construction to encompass all possible encodings (will that even work?), or is there an easier way?  Why have I decided to scrape the entire html, not just the BeautifulSoup? Because I want to do the soupifying later, to avoid DeadlineExceedError in GAE.  Have I read all the excellent articles about Unicode, and how it should be done? Yes. However, I have failed to find a solution that does not assume I know the incoming encoding, which I don't, since I'm scraping different sites every day.


How do I view or install Ubuntu Touch apps?

Lots of people have started developing Ubuntu Touch apps for the Ubuntu App Showdown and just in general, and have published them in the Click App Store.  What is the Click App Store, and how do I install apps published in it?


I recently read the .  This book had the idea of the time you live as something that can be used to pay for things. When you run out of "money" you die.  I was wondering is this the original source for this idea? Or does anyone know of an earlier book with the same idea?


I would love to get help on this problem from a chapter on Commutator of Group Theory:     Show that each group of order 33 is cyclic. (Hint: Use the result from the Exercise and Lemma below.)   Exercise: Let $p$ and $q$ be prime numbers such that $p \nmid (q-1).$ Show that each group of order $pq$ possesses a normal subgroup of order $p.$  Lemma: For any two subgroups $H$ and $K$ of $G,$ if $H \subseteq N_G(K), K \subseteq N_G(H),$ and $(|H|, |K|) = 1,$ then $[H, K] = \{ 1 \}.$  If you have to choose between elegant and down-to-earth dummy solutions, please give me the latter. I know the latter is tedious to you but you have slowpoke over here. Thanks for your time.  POST SCRIPT: ~~~~~~~~~~~~~~~~~~~~~~~~~~  Thanks for pointing out duplicate answer. Having looked it over, however, I think the 4 solutions from that 2011 posting were way, way too long to fit the mind of a beginner. (Notice especially that one of the solutions is from W. Burnside's classic book!) I think my professor has intentionally included the two hints to allow shorter solution. But unfortunately I don't know how to connect the dots, and for that reason I am asking for help here. Thanks again.  POST SCRIPT IN RESPONSE TO "TIMBUC": ~~~~~~~~~~~~~~~~  (1) On $G = PQ,$ can I prove it using $G \subseteq PQ$ and then $PQ \subseteq G$? Any shortcut?  (2) On $P \cap Q = \{1\},$ I can claim that because both are subgroups of $G$ and both have to have neutral number, therefore $P \cap Q = \{1\}.$ But why do you have to bother with it? I did not see it is useful on the next lines.  (3) On $PQ \cong P \times Q,$ can I prove it using the classic $\varphi(x, y) = \varphi(x) \varphi(y)$ and then bijectivism since they are isomorphic? (Is "bijectivism" is the correct noun of bijective?)  (4) On $P \times Q,$ how do you know that they are each cyclic in the first place? And how do you know that the direct product of cyclic subgroups with co-prime order is cyclic again? Are they the theorems?  (5) Thank you very much for your time and help.


Using Past Simple (verb to be) for Unreal (Counterfactual) Past Situations

In this  (Using just Past Simple in the Third conditional) Michael Swan says:     262 if (7): other structures found in spoken English      4 mixed tenses   Sometimes a simple past tense is used with if where a past perfect would be normal. This is more common in American English.       If I knew you were coming I'd have baked a cake.       If I had the money with me I would have bought you one.       If I didn't have my walking boots on I think I would have really hurt my foot.   However, Swan does not give examples for the verb to be case. I wonder if American speakers -informally- also use the past simple for verb to be too in counterfactual (unreal) past situations.  It seems that this thought is possible in theory. There is this quote for an Australian speaker on      It's likely a police officer who was shot at a Sydney hospital would   have died if he wasn't in the emergency ward at the time.


I think [ ! -f $2 ] means   $2 file doesn't exist.  is it correct?  I'm pretty sure [ ! -f ] means file doesn't exist. but I'm not sure for $2.  give me some help.


What is the difference between  1.He became a star by 1990's.  2.He had become a star by 1990's.  Is the first sentence correct? If yes, then please tell me the difference between the two.  Thank you.


What is the proper technique for making fried rice?

I've tried my hand at making fried rice a few times now. I seem to be getting these things wrong:   Texture of rice Browning of rice   I've been cooking the rice, stir frying some veggies, and an egg in a separate pan. Add rice and egg to veggies, stir fry a couple minutes, eat. How can I improve this?