Why did the machines not invest into clearing the skies?

The machines turned to using humans as a source of power after the humans darkened the skies, since the machines relied on solar power before.  If the machines were smart at all, they'd realise that their strategy is unsustainable, since energy on Earth predominantly comes from the Sun in some shape or form (i.e. plants, oil, coal). So why would they not invest into penetrating or even getting rid of the clouds?  The 3rd movie clearly shows that it's possible to penetrate the cloud layer when Trinity flies through it. Although there was an issue with the lightning interference, hey, they survived! And I'm sure they can either build some sort of shielding, or even harness the lightning to their advantage.


What word or phrase most concisely describes speaking with wrongly assumed knowledge on behalf of the hearer?

If I were to use an analogy with someone as a way to explain something, but the subject of my analogy was beyond their knowledge, what might be the most concise phrasing to inform me that my analogy is a bad one specifically because the analogy is beyond the person I am speaking with.  Ex. If I were to use computer components to explain a concept to someone who has no knowledge of computers.  I see this kind of thing happen frequently in discussions about scientific things, such as climate change. With climate change, as an example, a scientist may attempt to explain their proof while a denier may not even understand how the "proof" came to be a guaranteed conclusion (therefore the scientist would be the one doing the concept I'm trying to describe).  Another, possibly better example, would be when trying to explain something to a child using concepts (or simply language) too sophisticated for the child to understand, you would be doing the thing I'm looking for.  Thanks!


How can I rotate the camera for a player walking around the surface of a sphere?

I'm making a 3D game where the player can walk across the surface of a planet.  I am having a problem correctly rotating the camera's frame of reference, so that the camera is oriented correctly anywhere on the planet.  My strategy so far has been to create a quaternion that represents the rotation from an "up" vector (i.e. north pole) to the current position vector of the camera:  var up = new THREE.Vector3(0, 1, 0); camera.quaternion.setFromUnitVectors(up, camera.position.clone().normalize());   To get the final rotation of the camera, I apply the rotation of where the player is looking:  camera.quaternion.multiply(sensor.getState().orientation);   This means that wherever the player is, if they look down they will look towards the center of the planet.  I then apply that rotation to the up vector to get the direction the player is looking:  var direction = up.clone().applyQuaternion(camera.quaternion);   Assuming the player is looking directly forward, if the player travels in that direction, I would expect them to walk around the planet in a straight line.  This works correctly near the north pole, however as I approach the south pole, the camera seems to rotate laterally (from the perspective of the player), finally as I reach the south pole the camera rapidly rotates 360 degrees around the pole.  What is causing this and how can I avoid it?


With newenvironment for font an Overfull\hbox warning is shown within itemize

When I run the following code I get an Overfull\hbox(... too wide) in paragraph warning.  \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \newenvironment{fonttfp}{\fontfamily{cmtt}\selectfont}{\par}  \begin{document} \begin{itemize}   \item[] {\fonttfp Afghanistan\_Albania Algeria\_Andorra Angola\_Antigua and Barbuda\_Argentina Armenia\_Australia Austria\_Azerbaijan} \end{itemize} \end{document}   How can I get it away. When I remove the \fonttfp statement the warning disappears. I've also tried to use sloppypar and the package microtype. Both approaches do not clear the warning.


I am learning about type erasure. I know that after type erasure the generic types become either object or upper bound. But if the generic types become object is the type safety not lost? For eg the in the below example:- List<String> a = new ArrayList<String>(); a.add(10) // I can't do this, but after type erasure the generic type becomes object so where is               the check for the type?  Any help is appreciated


When I was 16 I took 30 credits a quarter and my math GPA suffered will this effect my ability to go to grad school?

I took all my college level math courses when I was 16 in running start while taking 30 credits a quarter(don't ask me what was going through my head at the time). As you can imagine I got an average of about a 2.8, in most of these courses....However, when I went to a 4 year they restarted my GPA and I currently have a 3.67 and it has only been climbing the last few quarters. I am about to graduate and I would like to go to Grad school. I am an Information Systems Major e.g. business. Is it plausible to at least get into a decent business Phd program ?  I see that most schools seem to look at these grades in particular.


Replicate the Fourier transform time-frequency domains correspondence illustration using TikZ

The following time-frequency correspondence illustration is in .    Also a gif animation version (if the animation doesn't show, please open the following image in a new window):    This picture has so much explanatory power, and I would like to replicate it in TikZ for future use.  Here is what I came up with:  \documentclass{minimal} \usepackage{tikz}  \begin{document} \begin{tikzpicture} [x={(1cm,0.5cm)},z={(0cm,0.5cm)},y={(1cm,-0.2cm)}] \draw[->,thick,blue!90] (0,6.5,0) -- (6.2,6.5,0) node[right] {Frequency}; \draw[->,thick,red!90] (0,0,0) -- (0,6.5,0) node[below] {Time}; \draw[->,thick] (0,0,0) -- (0,0,2) node[above] {Magnitude}; \foreach \x in {0.5,1.5,2.5,3.5,4.5,5.5}{   \draw[blue!50] (\x,0,0)   \foreach \y in {0,0.02,...,6.28}{     -- ({\x},{\y},{sin(\x*\y*(157))/sqrt(2*\x)})   };   \draw[blue!90, thick] (\x,6.5,0) -- (\x,6.5,1/\x); }  \end{tikzpicture} \end{document}   This is the output so far.    I have two questions:   How to produce that red superposed sine wave of all the blue sine waves? I don't know if there is a sum function or I have to use loop yet again? How to make the camera projection in TikZ more similar to the perspective in that wikipedia illustration?   Any suggestion and tweaking of the parameters I used in the sample drawing are welcome as well.  Thanks in advance!    Update 1:  Here is a new version using tikz, more readable than the first one. Yet the superposition of the sine waves are done manually...I still don't know how to use foreach to produce a sum.  \begin{tikzpicture}[x={(1cm,0.5cm)},z={(0cm,0.5cm)},y={(1cm,-0.2cm)}] \draw[->,thick,black!70] (0,6.5,0) -- (6.2,6.5,0) node[right] {Frequency}; \draw[->,thick,black!70] (0,0,0) -- (0,6.5,0) node[below right] {Time}; \draw[->,thick] (0,0,0) -- (0,0,2) node[above] {Magnitude}; \foreach \y in {0.5,1.5,...,5.5}{ \draw [cyan!50, domain=0:2*pi,samples=200,smooth]   plot (\y,\x, {sin(4*\y*\x r)/\y }); \draw[blue, ultra thick] (\y,6.5,0) -- (\y,6.5,1/\y); } \draw [red, thick, domain=0:2*pi,samples=200,smooth]  plot (0,\x, {sin(4*0.5*\x r)/0.5 + sin(4*1.5*\x r)/1.5 + sin(4*2.5*\x r)/2.5 + sin(4*3.5*\x r)/3.5 + sin(4*4.5*\x r)/4.5 + sin(4*5.5*\x r)/5.5} ); \end{tikzpicture}   The result is as follows:


I am creating two structs in C that have the same number of variables: 3 integers and 3 chars. When i look at the size of an instance of each of the structs using the sizeof() operator i get two different values. I wonder Why is this happening, here is my code: I tried rearranging the variable with the same result.  typedef struct a { int x; char a; int y; char b; int z; char c; }s1;  typedef struct b { int x; int y; int z; char a; char b; char c; }s2;  int main() { printf("%d %d\r\n", sizeof (s1), sizeof (s2)); return 0; }


'Have a possibility' vs. 'have the possibility'

When trying to say a sentence with the following structure:     You also have [x] possibility to open a savings account   When is it appropriate to use 'a' and when is it appropriate to use 'the'?


Why don't nested constructor calls compile?

Why does the following not compile:  typedef int Table;  class FullObjId  { public:     explicit FullObjId( const Table* i ) {} };  class TableInfo  { public:     TableInfo( const FullObjId& o ) {}     bool isValid() { return true; } };  void dataSourceForHist( const Table& table ) {    // The next line gives an error    TableInfo tableInfo( FullObjId( &table ) );    // Unless it's written like this:    //TableInfo tableInfo( ( FullObjId( &table ) ) );     if (!tableInfo.isValid())    {       ...    } }   I have tried with the Intel Compiler 12.1 for Linux, and using  with g++ 4.8, icc 13.0, clang 3.4.1. All the compilers I have tried give an error along the lines of:  error: request for member ‘isValid’ in ‘tableInfo’, which is of non-class type ‘TableInfo(FullObjId&)’


Sole survivor of attack on mining vessel, abandoned by his employer, has ability to teleport

There's a story my grandpa use to tell me when I was younger, about the sole survivor of of an attack on a mining vessel in space. The man lives in space for months/years, ignored by the company he worked for and never rescued. Then when he thinks he is being rescued, it's actually another set of raiders who attack him and kidnap him.  He then wakes up in captivity in some sort of prison inside of an asteroid, and has a word tattooed on his forehead. My grandpa called him Ronin (that's what the tattoo on his forehead said) but I don't know what the character's real name is. Anyways, he learns that he has the ability to teleport after having a brush with death and decides to make his way back to Earth so that he can exact revenge on the mining company who abandoned him and left him floating to die.  Does anyone know what this story or book may be? My grandpa told it to me when I was little, he said that he got it from a book he use to love reading when he was younger. I'm assuming the book is very old (possibly pre 1940's as he was born in the 20s). I can't ask him as he is no longer alive. I'm also unsure as to whether or not all the details in the story he told me, are the same as in the original.


How to block a specific email address domain from being able to submit Drupal webform?

I've been trying to find an answer to as per title. How can I block a specific email address domain from being able to submit Drupal webform?  Example:  Webform has fields:  Name, Email address, Subject, Query - all fields are set to required.  What I want is a webform submission to be blocked when a visitor is trying to submit it using a specific email address domain, for example *@example.com.  I need my Drupal webform to be able to act similarly to a registration form equipped with  module.  Many thanks in advance.


How can I see a folder and a subfolder in the same window?

How can I navigate folders and subfolders at the same time?  Like "column view" in Mac OS X.    Edit 2: I use Ubuntu 14.04 and I couldn't install Marlin, so I installed "Pantheon File Manager" instead.


Newer package from repository of other Ubuntu version

I'm using Ubuntu 14.04 LTS. Is there any simple way to install newer version of package from newer version repository?  I tried this:   But this method seems to be able make mess in system when used wrong and it doesn’t work for me.  PS: It's this package


How do we pronounce the 's' after the d in a word?

For example: words, foods, goods, etc.  And if without the 's', how would the 'd' in those words be pronounced? Would it be pronounced like voiced /d/ or unvoiced /d/?


Here's an example I just ran into. I'm trying to put some HTML in the label of my field.  $form['field_feedback']['und']['#title'] <- has the title $form['field_feedback']['und'][0]['#title'] <- has the title $form['field_feedback']['und'][0]['value']['#title'] <- has the title. (Works)   Why are there three populated #title attributes with only one being used?


Merge two custom post types into one admin page?

I am building a site with 4 custom post types. To make things easier for our client/admin, I'm wondering if there is a way to merge those custom post types into one list in the backend? Like if you look at normal backend admin page with the list and columns of posts, can a page like that pull in 3 other post types for easy sorting/searching?  I can't combine the CPTs into one, they must remain seperate outside of one 'viewing' page in the admin area if possible.  Any thoughts on how to do this?? Or even where to start looking/thinkging of how to develop this?


In a Ubuntu 14.04 server I am experiencing a massive hard disk activity which has no apparent justification: it comes as a burst, it lasts a few minutes and then disappears. It consumes system resources and slows down the whole system.  Is there a (command-line) tool which can be used to monitor the disk activity, listing the processes that are using the disk and the files involved? Something like htop for the CPU.


What is the difference between <? and <?php

Why people can use both <? and <?php? Why are they different ? What are the use cases for both (if there is any) ?


There have been news items in 2013 about weather.com moving to Drupal. I have been reading  and I have been unable to find out if the site is still running on Drupal.  How can I find out if weather.com is still running Drupal?


I am recalling the first day of integration class. The teacher taught us some history about how the particular symbols came into play. Let $y = f(x)$. Here is how he broke up $\int_a^b y$ $dx$: Draw two lines $x = a$ and $x = b$ and the polynomial $y = f(x)$. The area between the three equations and $x$-axis is the area that can be found using $\int_a^b y$ $dx$. Now split up the lines into rectangular strips of width $dx$. The integral is actually now the sum of the products of the lengths and $dx$. So it can be shown as $\Sigma_{x=a} ^b y$ $dx$. And he said that the integral sign is found by stretching (?) $\Sigma$ to $\int$. It did help me understand integration but the previous sentence went over my head. Is it true or was it a harmless prank by my teacher? Thanks in advance!


I have seen a match score card, where Mitali Raj (India) was shown retd out.  What is "retired out" in cricket? When is a player declared retired out?


My Ubuntu is running fsck on every bootup

On every bootup it's the same:  /dev/sda1: clean, 908443/38690816 files, 44176803/154733312 blocks   Is it some kind of option Ubuntu uses to ensure filesystem consistency or is there something wrong with my HDD? fsck takes up to 30s while booting and so about triples the time needed otherwise.  Full output (partly in German):  Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Begin: Running /scripts/local-bottom ... done. done. Begin: Running /scripts/init-bottom ... done. fsck von util-linux 2.20.1 /dev/sda1: sauber, 908443/38690816 Dateien, 44176803/154733312 Blöcke udevd[623]: unknown key 'SYSFS{idVendor}' in /lib/udev/rules.d/45-libticables.rules:6  udevd[623]: invalid rule '/lib/udev/rules.d/45-libticables.rules:6'   * Starting mDNS/DNS-SD daemon                                                 [ OK ]  * Starting Reload cups, upon starting avahi-daemon to make sure remote queues are populated                                                                   [ OK ]  * Starting configure network device security                                  [ OK ]  * Starting bluetooth daemon                                                   [ OK ]  ####* Starting all other stuff


How to identify predatory publishers/journals

What are the best strategies for assessing if a journal is a "vanity" or "predatory" journal that should be avoided (both for publishing in and reviewing for)? For example, how would one go about determining if a journal/publisher belongs on ?


Whenever I boot to Ubuntu 13.10, it goes to a black screen with my cursor that looks like an a X. There is also a System program problem detected message box in my used theme, and I can switch to console logins fine. I have already tried booting with nomodegui or whatever that is, and it doesn't solve the problem.


What is the term used for a place name that represents something other than the place itself?

There is a special term for when a place name is representative of something other than the actual place itself but I can't remember what it is.   For example: 'Brussels' may be used to refer to the European Union or 'Washington' to refer to the U.S. political establishment.  Does anyone know what this term would be?


Expected value of conditional choice probability

I would like to compute the conditional choice probability which is defined as follows \begin{equation} p_k=Prob(f(m_k)+u_k>f(m_i)+u_i, \forall  i\neq k|m) \end{equation} where $u_i, i=1,...,N$ are independently and identically distributed normal variables with $u_i\sim N(0,\sigma_i^2)$ and $m_i, i=1,...,N$ are independently and identically distributed standard uniform random variables, $m_i\sim i.i.d. U[0,1]$.  In words, $p_k$ is the probability that out of $N$ options, the choice $k$ has the greatest value conditional on having a realization for the vector $m$. Because $u_i-u_k\sim N(0, \sigma_i^2+\sigma_k^2)$, $p_k$ can be rewritten as \begin{equation}p_k=\prod_{i\neq k}\Phi\left(\frac{f(m_k)-f(m_i)}{\sqrt{\sigma_i+\sigma_k}}|m\right) \end{equation} where $\Phi(\cdot)$ denotes the CDF of standard normal distribution. Next, I would like to find the expected value of $p_k$ by integrating out the possible values of $m$ as follows \begin{equation} E[p_k]=\int_{(0,1)^N}\prod_{i\neq k}\Phi\left(\frac{f(m_k)-f(m_i)}{\sqrt{\sigma_i+\sigma_k}}\right) d\mathbf m \end{equation} Is it possible to use the properties of the uniform and standard normal distributions to get a more compact solution for $E[p_k]?$


Scientific reason behind electromagnetic induction

What actually happens inside a loop when placed in a changing magnetic field that EMF gets induced across it? And also if it is connected and the direction of the magnetic field is changed then subsequently the  direction of flow of current changes. To sum up I would like to ask the scientific reason behind the Faraday's law.


When a sentence starts with "No" and has multiple subjects, which subject does the verb agree with?

Should it be "No juice and coffee are served," or "No juice and coffee is served?"


Evaluate $\int \dfrac{x^2}{(x\cos x-\sin x)(x\sin x+\cos x)}dx$

$$\int \dfrac{x^2}{(x\cos x-\sin x)(x\sin x+\cos x)}dx$$  My attempts is as follows:-  Integrating by parts:-  $$\dfrac{1}{(x\cos x-\sin x)(x\sin x+\cos x)}\cdot\dfrac{x^3}{3}-\dfrac{1}{3}\int\dfrac{x^3\left(-x\sin x(x\sin x+\cos x)+x\cos x(x\cos x-\sin x)\right)}{(x\cos x-\sin x)^2(x\sin x+\cos x)^2}dx$$  $$\dfrac{1}{(x\cos x-\sin x)(x\sin x+\cos x)}\cdot\dfrac{x^3}{3}-\dfrac{1}{3}\int\dfrac{x^3\left(-x^2\sin^2x-x\sin x\cos x-x\cos x\sin x+x^2\cos^2x\right)}{(x\cos x-\sin x)^2(x\sin x+\cos x)^2}dx$$  $$\dfrac{1}{(x\cos x-\sin x)(x\sin x+\cos x)}\cdot\dfrac{x^3}{3}-\dfrac{1}{3}\int\dfrac{x^3\left(x^2\cos2x-x\sin 2x\right)}{(x^2\cos x\sin x+x\cos^2x-x\sin^2x-\sin x\cos x)^2}dx$$  $$\dfrac{1}{(x\cos x-\sin x)(x\sin x+\cos x)}\cdot\dfrac{x^3}{3}-\dfrac{1}{3}\int\dfrac{x^3\left(x^2\cos2x-x\sin 2x\right)}{(\cos x\sin x(x^2-1)+x\cos 2x)^2}dx$$  I thought numerator and denominator in the second would be quite similar, but its not, so I was not able to proceed from here.  Any directions?


.htaccess rewrite URL leads to missing CSS

I am trying to make my url from this:  example.com/view.php?id=15   To this:  example.com/watch/15   My code in .htaccess is as follows:  Options -Indexes Options +FollowSymlinks RewriteEngine On RewriteRule ^watch/([^/]+) view.php?id=$1 [NC]   Now if I go to example.com/watch/15 it loads the content but without any JS, CSS because in this case it looks for CSS and JS under the /watch folder which doesn't exist.  How do I make this option work properly? I don't want to create watch folder and copy-paste CSS and JS so it will embed properly.


Are there two roots for time in projectile equation because the projectile ascends & descends?

Question We can take the kinematic equations for constant acceleration and apply them to projectiles in free fall. One of the equations then reads: $$\Delta y=(v_0\sin \theta )t-\frac{1}{2}gt^2$$ where $v_0$ is the projectile's initial velocity, $\theta$ is the angle of projection, $g$ is the gravitational field strength, and $t$ is the time taken to reach some vertical displacement $\Delta y$. Rearranging into a quadratic function gives: $$\frac{1}{2}gt^2-(v_0\sin \theta)t+\Delta y=0$$ and this has the roots: $$t=\frac{v_0 \sin \theta ±\sqrt{(v_0\sin\theta)^2-2g\Delta y}}{g}$$ I have always thought that there are two roots because any projectile reaches the displacement $\Delta y$ at two moments: once while ascending and once while descending. Is this the correct way to interpret the roots? Does this physical interpretation always hold true, or are there exceptions? Motivation A colleague and I both solved  by Walter Lewin. I used the "+" when dealing with the two roots, and he used the "-". We both acquired the same result ($t=1.549\text{ s}$), but using two different methods. I don't want to post all of the details of our solutions because it would be too lengthy. I'm trying to figure out the mistake in my work or in my colleague's work, and our two approaches are mainly distinguished by how we dealt with the two roots for $t$.


Why is there no massless spin 1/2 particles with charge? Is there any underlying theory?

Whether any massless spin 1/2 particles cannot have charge? If so, why?


What film/TV program was set on a spaceship and...? (I can only remember the ending so have kept the title uninformative!)

Like the title says, I only remember the end of this. I think it was a film, but may have been an episode of something like The Outer Limits. I saw it on TV around 1999 (ish), and I think it was quite new then.  I've looked through all the episodes of the Outer Limits and haven't been able to find it, but maybe I missed it.  I remember that there was a spaceship with a number of crew aboard, and I think a robot. One of the crew was a drug addict. Something went wrong and the ship was going to explode, but there was only room for 2 (one woman, one man went) in the single escape pod. The other 2 (also one woman, one man) people on board (there may have been more earlier in the program) decided to overdose on the addict's drugs rather than just be blown up. You see the escape pod reaching some distance and see the main ship explode.  Then suddenly they 'wake up' in a room. The two people who overdosed are dead in that room, as are other people that had been on the ship who have been dead for a while. The 2 people left leave the room and find a long dead man guarding another door. They open the door and find what looked like a nuclear winter. ..And that's the end.  Any ideas on what this is?


Does quantum computing threaten blockchain?

As per Wikipedia,  are a way to maintain "a continuously growing list of records, called blocks, which are linked and secured using cryptography [... and] inherently resistant to modification of the data."  Blockchains are in current practical use, for example in the cryptocurrency . These implementations must make use of some particular approach to cryptography, which will involve assumptions intended to underwrite their security.  Are the current implementations of blockchain resistant to attacks using quantum computation?


How to unlock my iPhone without knowing my password?

I locked myself out of my iPhone, I don't know my password... it isn't disabled, but when I try to connect to iTunes I get this message: "To allow access, please respond on iPhone". I can't respond on my iPhone because I cannot get into it! Someone help me please. I've been trying to do this for over 3 hours and nothing is working!


Story Identification : Aliens revive museum humans

An alien race finds Earth.  Its landing party locates a museum or some such facility and one-by-one, the aliens revivify deceased humans in the museum.  Most who awaken (such as a Pharaoh) are quickly deemed to be uninteresting and inferior and destroyed. But the last such person sits up, looks around, and promptly disappears.  Does anyone recognize this story line?  I probably read this 50 years ago.


Upgrade Sony VAIO laptop from Windows ME to Ubuntu

What is the recommended version of Ubuntu to use to upgrade from Windows ME on the Sony VAIO laptop?


What is the difference between these two commands?

What is the difference between the command line sudo apt-get update and the command line sudo apt update?  Although I've been using only Ubuntu and Ubuntu-based distros in the last several years, I still consider myself an entry-level user when it comes about command lines and Terminal-related stuff. I mention this aspect because I need a novice-friendly explanation.   A bit of background info: on a regular basis I run the commands sudo apt-get update and sudo apt-get upgrade in my Terminal. And I also know that it is recommended to do so before installing any app, in order to avoid any errors.  But today I have decided to , and I noticed that, on their webpage there are mentioned these two lines:  sudo apt update sudo apt install snapd  And this is why I am puzzled. (By the way, these lines work fine in my case.)


Edit a tag info if original author is not active anymore

I wrote a pretty detailed tag wiki (over 800 words) for Kotlin but it seems like the original author of this tag wiki is not active anymore as he was last seen in April.  Is there any way my edit can still be approved for example by an administrator or something like that?


Optimal query pattern to count related entries in PostgreSQL

Assume I have the following table schema and data  create table categories(     id integer primary key,     parent_id integer );  insert into categories values     (1,0),     (2,0),     (3,1),     (4,1);   I need to count the number of children for each entry, i.e. the result should be   id | parent_id | count ----+-----------+-------   1 |         0 |     2   2 |         0 |     0   3 |         1 |     0   4 |         1 |     0   The following query produces the correct result but I'm worried about the performance. I guess that it loops through the table as many time as there are rows in it.  select *, (select count(*) from categories b where a.id=b.parent_id) from categories a   It is possible to optimize it?


Javascript dynamically created function expressions not working with onclick event

I am a Javascript beginner. i am creating function expressions dynamically and calling parameters with JSON from text file. the functions are being created correctly with the correct parameters and looping is incrementing fine. i.e it is all working. my issue is that when i call the dynamically generated function with an onclick event nothing happens and no errors. this is the function:  function imgurl(arr) {  for(var i = 1; i < arr.length; i++) {  arr[i].fname = function() { addImage(arr[i].image, 0.5, 0.75); };   /*$scope.addImage1 = function() {  //this is a sample of the function  addImage('image.png', 0.5, 0.75);  };*/  } };    here is the onclick event  <button type="button" class="btn image1" ng-click="addImage1()">Image</button>   the code imports an image into canvas when the button is clicked. i tested the dynamically generated functions by invoking them immediately with () and as they were invoked when the page loaded the function looped and imported all the images into the canvas perfectly i.e the function expressions work as expected. but when i try the onclick event i get nothing, not even an error.   then i manually wrote out a test function expression and the onclick event works. from the code above:  $scope.addImage1 = function() {  addImage('image.png', 0.5, 0.75);  };   so when i manually write out the function expression then the onclick event works but when i try with the dynamically generated expressions then the onclick does not work. i just want to mention again that the dynamically generated functions do work when i invoke immediately, i just cannot call with the onclick event.


Since Dumbledore can understand parseltongue without being a parselmouth, and Ron can mimic enough parseltongue to open the Chamber door without being a parselmouth,  it seems logical that someone like Dumbledore who has deliberately studies parseltongue enough to be able to understand conversations between parselmouths, should be able to mimic the sounds enough to be able to speak it, at least better than someone like Ron    However, through out the books there is no indication that Dumbledore could do any more than understand parseltongue spoken in the pensieve memory. Going through questions about parseltongue through this site gives me a similar impression. Is there any indication of whether Dumbledore could speak parseltongue or not? Is there anything preventing someone from learning to speak parseltongue? Could Dumbledore have a conversation with Harry or a snake entirely in parseltongue?    An answer at any level of canon is welcome


let $x$ be in finite group $G$ and let order of $x$ is $p$. If $h^{-1}xh = x^{10}$ for a finite group show that $p=3$

Let $G$ be a finite group, $p$ be  the smallest prime divisor of $|G|$ and x $\in$  G an element   of order $p$. Suppose $ h \in  G  $ is such that $h^{-1}xh = x^{10}$. Show that $p = 3$.   I cant solve this problem i think it should be solved without using any special theorem please firstly give me a hint .


Sum of series having binomial coefficients


If the Empire wanted to rule through fear, why did they cover up the deaths of the Jawas on Tatooine?

In the attack on the Jawas on Tatooine in A New Hope the Stormtroopers went to some lengths to indicate to observers that Sandpeople carried out the attack. They may not have fooled Obi-Wan but presumably others would have believed that Sandpeople were responsible. What is beyond doubt is the cover-up attempt.     Luke: It looks like the Sandpeople did this. There's Bantha tracks. They've never hit anything this big.   Obi-Wan: They didn't. But we are meant to think they did. These tracks are side-by-side. Sandpeople always ride single file to hide their numbers.   Luke: These are the same jawas that sold us R2 and C-3PO.   Obi-Wan: And these blast points, too accurate for Sandpeople. Only Imperial Stormtroopers are so precise.   What did the Empire hope to gain by covering up the attack? Would it really matter if people knew that they'd done it? They were, after all, in a pretty strong position at this point. The Jawas themselves hardly pose much of a threat. Even if the population of Tatooine was unhappy by the attack what did the Empire have to fear from that discontent. Especially in the light of this recent development.     Tarkin: The Imperial Senate will no longer be of any concern to us. I've just received word that the Emperor has dissolved the council permanently. The last remnants of the Old Republic have been swept away...The regional governors   now have direct control over their territories. Fear will keep the local systems in line. Fear of this battle station.   Why not just be open about the brutality of the Empire and their methods?    Edit: Whilst the linked question is along the same lines, neither answer deals with the Tarkin statement. The accepted answer argues that the attack on Tantive IV/the Jawas would cause unease in the Senate. This is rendered irrelevant on the disillusion of the Senate. The other answer says that killing Jawas is bad publicity for the Empire. As I say in the comments, if the Empire cared about this then they wouldn't have destroyed Alderaan. I'd like an answer that preferably deals with the Tarkin comments and the Empire's fear-based strategy. I've changed the question title accordingly.


How do I point a domain registered with Dynadot to a subdirectory of my Godaddy Hosting?

I have a domain registered with Dynadot and I'd like to use my GoDaddy hosting to build the site to save having to pay out for more hosting. I'd need to set it up on a subdomain e.g. subdomain.example.com, how do I point my Dynadot domain to that subdirectory?


Sample mean is always an optimal estimator of the mean?

Suppose we have $T_i,i=1..n$ i.i.d. with unknown distribution and we want to estimate $E[T]$. Note that in this setting we are not estimating E[T] as a parameter of a parameter-dependent family of distributions, therefore it is difficult to attach a meaning to a likelyhood function:  $L[E[T]]=P(T_i|E[T])$  as it would be done when for example estimating $\mu$ from maximum likelyhood, knowing that the underlying distribution is Gaussian.  Again what we would probably do is computing $\overline{T}=\frac{1}{n}\sum_i T_i$. And we would be sure that the estimator would be consistent and its variance would go to zero. For example we have trivially:  $E[\overline{T}]=E[T_i]$  and:  $\sigma^2[\overline{T}]=O(1/n)$  supposing that $T_i$ has finite variance.  Here is the question: can we prove that $\overline{T}$ is optimal in some way? To me conceptes from MLE estimators or sufficient statistics are a bit difficult to apply, since $E[T]$ is not a parameter of the distribution but maybe I am missing something? Can we "derive" the sample mean estimator to be optimal according to some criterion in the general case and without making assumptions on the underlying distributions ?


What are the advantages of publishing work in progress as a working paper?

Some fields like Economics and Maths have their work in progress published as "working papers" with notes like "work in progress, do not cite or quote without the author's permission."Sometimes they upload these to their own websites or to their universities websites. I don't see much of this going on in my own field (sociology). I have heard from people that are afraid of having their work scooped or that fear that work published in this way will not be considered as "unpublished" by journals and conferences.  What are the advantages of making work in progress available in this way?


I really don't understand the logic here.......  def transpose(A):     output = [['']*len(A)] * len(A[0])     for j in range(len(A[0])):         for i in range(len(A)):             output[j][i] = A[i][j]     return output   Input: [[1,2,3],[4,5,6],[7,8,9]]  Expected Output: [[1,4,7],[2,5,8],[3,6,9]]  My Output: [[3,6,9], [3,6,9], [3,6,9]]  I know I can use zip to solve this problem easily, but I just want to know why this code will return duplicated lists.   New update, I have added some print to understand the process  def transpose(A):     output = [['']*len(A)] * len(A[0])     for j in range(len(A[0])):         for i in range(len(A)):             output[j][i] = A[i][j]             print(j)             print(i)             print(output)     return output   And the outputs are:  0 0 [[1, '', ''], [1, '', ''], [1, '', '']] 0 1 [[1, 4, ''], [1, 4, ''], [1, 4, '']] 0 2 [[1, 4, 7], [1, 4, 7], [1, 4, 7]] 1 0 [[2, 4, 7], [2, 4, 7], [2, 4, 7]] 1 1 [[2, 5, 7], [2, 5, 7], [2, 5, 7]] 1 2 [[2, 5, 8], [2, 5, 8], [2, 5, 8]] 2 0 [[3, 5, 8], [3, 5, 8], [3, 5, 8]] 2 1 [[3, 6, 8], [3, 6, 8], [3, 6, 8]] 2 2 [[3, 6, 9], [3, 6, 9], [3, 6, 9]] [[3, 6, 9], [3, 6, 9], [3, 6, 9]]   So, for example, the very first step of the loop. j = 0 and i = 0. However, output[0][0],output[1][0],and output[2][0] are all changed by the loop. Why is that??????  I am so confused right now. I have written the same code in Java and it runs properly.  public class TransposeMatrix {     public static int[][] transpose(int[][] A) {         int[][] result = new int[A[0].length][A.length];         for (int j = 0; j < A[0].length; j++) {             for (int i = 0; i < A.length; i++) result[j][i] = A[i][j];         }         return result;     } }   The link of this problem is:


"I saw him crossing" vs. "I saw him cross"

I saw him crossing the road.   I saw him cross the road.   Which one is correct and why?


Schichttorte; a 20 layer German broiled cake

I am making the cake named above, which I found on a British baking site. It call s for 5 1/2 oz of reg flour-sifted, and 2 1/4 oz of sifted corn flour. ? Does anyone know if this recipe in this context is calling for actual corn "flour" or is it cornstarch?   Hope someone has the correct answer for me.  Thanks so much!


I am learning about Bias-Variance for classification. It is mentioned that Bias is the distance of main prediction (mean for regression, mode for classification) and variance is the average disagreement of main prediction from each prediction.  What is meant by average prediction here? Does that mean that we learn a classifier on particular sample from population and then calculate predictions for other samples from same population?


To prove the limit of $\frac{x^2+2\cos x-2}{x\sin^3 x}$ at zero is $1/12$

To Prove $$\lim_{x \to 0}\frac{x^2+2\cos x-2}{x\sin^3 x}=\frac{1}{12}$$ I tried with L'Hospital rule but in vain.


How do I preview tag wiki exerpt? How do I put a link there?

I've edited  to include a link into exerpt. But it shows Markdown source of the link instead of actual link.   How do I preview the exerpt while editing it? Where to find syntax and available Markdown features in exerpts? How do I include the link properly?


Prove that $f(A \backslash S) = B \backslash f(S)$

If $f:A \rightarrow B$ is a bijection and $S \subseteq A$, prove that $f(A \backslash S) = B \backslash f(S)$


Can viruses break out of virtual machines?

There's this third party software called Gabb. It's designed for a particular game. Basically, what it does, it runs multiple instances of that game at the same time, allowing me to play multiple accounts at once. I've read on many sources that it contains a virus that can leak out the game's account login info(username & password). I have the option to run it in a virtual machine where my unimportant accounts are. My question is, can the virus still leak out of that virtual machine and leak out my main account's login info?


MYSQL Inner Join Two Tables Same Column name Different Value

I have two tables like this:-  Tablea ------- id|Comp_name| 1 |abc  |  Tableb -------- ids|id|Comp_name| 2  |1 |def|    I'm trying to inner join these two table into one with query like this  SELECT * FROM tablea  INNER JOIN tableb ON tablea.id=tableb.id   The result is like this   id|Comp_name|ids|Comp_name| 1 |abc      |2  |def|   . How To separate Comp_name value into php ? I tried code like this but fail:-  foreach($query->result() as $row){ echo '<tr class="'.$class.'">          <td>             '.$row->Tablea.Comp_name.'          </td>          <td>             '.$row->Tablea.Comp_name.'          </td>


Transformation issue with SVG to GeoJSON conversion

I have a vector image in SVG format. (without georeferences)    I am trying to display it using OpenLayers to display properties of different polygons in it.  I tried converting it to GeoJSON but the resulting render appears to be stretched (ratios are not preserved).  Is there a transformation or a map projection that I am missing or recreating a GeoJSON from scratch the only relevant choice?


CMD MOVE can't replace directories in WIN 7

The MOVE command does not work when to ovewrite a directory. I have also tryed to run cmd with admin rights. I'm posting this question with more info so you can easily test it self.  Make your own folder somewhere and open command window at that location. Then copy and paste this block into cmd-window to create teststructure   MD aaa\test\a MD aaa\test\b MD bbb\test\b MD bbb\test\c MD ccc\test\a MD ccc\test\c ECHO hello > aaa\test\a\a.txt ECHO hello > aaa\test\b\b.txt ECHO hello > bbb\test\b\b.txt ECHO hello > bbb\test\c\c.txt ECHO hello > ccc\test\a\a.txt ECHO hello > ccc\test\c\c.txt   Now I want to move and merge all "test" folders in ".\test" The MOVE command is fine, but in win 7 it fails(Access Denied) when to overwrite existsing "folders". if you now try following block one by one, the first will be ok, but next will fail.   move /Y aaa\test .\ move /Y bbb\test .\ move /Y ccc\test .\   However I have found other solutions which does the the same.   XCOPY aaa\test test\ /E/Y XCOPY bbb\test test\ /E/Y XCOPY ccc\test test\ /E/Y RD aaa\test /Q/S RD bbb\test /Q/S RD ccc\test /Q/S   XCOPY and Then Remove Directory   ROBOCOPY aaa\test test\ /E /IS /MOVE   ROBOCOPY with the /Move option   COPY command is totally useless in this case...     I do really need MOVE command to get a batch file with this contetnt to work wich worked in XP.  move /y "%1" c:\mydir\   I tryed robocopy, but then it will move only the contents of the folder. not the folder completly.  robocopy "%1" c:\mydir /E /IS /MOVE   If you wish to help me, then you can do it in two ways..  1) Find a solution to get MOVE to work as in XP  2) Find a way to do the same as what  move /y "%1" c:\mydir\  does    A suggestion could be to get the folder name from the path and do something like this   // %1 = "c:\anotherdir\cool"  if %1 is path_to_a_folder then (    get %foldername of %1    robocopy "%1" c:\mydir\%foldername /E /IS /MOVE ) else move /y "%1" c:\mydir\    EDIT: Hey this works fine for directoryes, what more can i do so the script also can work with files?  robocopy %1 "C:\Users\azizkar\Desktop\ebben\%~n1" /E /IS /MOVE


Can someone give me a hint on how to prove this?

I'm supposed to prove that, for every integer $n > 0,$ it is true that $(1 + 2 + ... + n)$ divides $3(1^2 + 2^2 + ... + n^2)$.  Should I use induction?    This was given as an exercise in a chapter about divisibility in my algebra textbook.


Prove $\phi^n = \phi F_n + \text{(another Fibonacci number)}$ using mathematical induction.

I need to prove the following equation using mathematical induction and using the phi values if necessary.   $\phi^n = \phi F_n + \text{(another Fibonacci number)}$  In this proof, it is kind of hard for me to prove this with the part "another Fibonacci number".  Thank you in advance.  Help is much appreciated.


Basic template for Transactions in sqlserver

If I simply wrap my query with:  BEGIN TRANSACTION    COMMIT TRANSACTION   If anything fails inside of that, will it automatically rollback?  From looking at other code, they seem to check for an error, if there is an error then they do a GOTO statement which then calls ROLLBACK TRANSACTION  But that seems like allot of work, to have to check for IF( @@ERROR <> 0) after every insert/update.


Installed Ubuntu on previous Windows machine with partitioned drive

My machine had Windows installed with a HD partitioned in two parts. One for the System and one for my precious Files.  I've decided to see what's new on Ubuntu 13.04, so I installed it. But when I was installing, I choose the "Replace Windows 8 with Ubuntu" option and setting the LVM option, thinking that it would replace the first partition with Ubuntu and leave the second partition alone.  After that, I realized the mistake I've made. The second partition is lost and now the System has only one whole partition.  Are all my files lost? Is there any way to retrieve them?  Thanks in advance and sorry for the noobiness. I just had no idea what LVM was before setting it.


I wanted to get rid of Windows so I made bootable USB and installed Ubuntu but what I see now is I have only one disk "Computer" which has 290GB free and 4.5 GB used . In Windows I had 3 disk namely C , D and E . I had important data on D and E . Anyone can help me how to recover it ?


I came across a question ( mentioned below ) which is from a Mathematical Olympiad.  It says,  If $m $ and $n $ are positive integers such that      $n + (n + 1) + (n + 2) +...+ (n + m) = 1000 $   then how many $(m, n)$ pairs exists ?


Why do the satellites revolves on a circular path around a planet at orbital velocity?

We know that there is a particular velocity with which a satellite will move in a circular orbit ( orbital velocity ) but if its velocity is more than the orbital velocity but less than the escape velocity then it would move in a elliptical orbit, however  but my question is that why it moves in a elliptical orbit when it is moving with velocity more than the orbital velocity?  Further this question can be extended because it indirectly also asks that why is there a specific value of escape velocity and also why the escape velocity is $\sqrt2$ times the orbital velocity?    thanks in advance!


Clarification of two complex analysis questions

I am going through my weekly assignment of complex analysis but I am stuck at two points, since I don't understand a condition in the first case and what I'm being asked in the second one.  In the first part of the assignment I am given an entire function $f : \mathbb{C} \to \mathbb{C}$ such that  $$|f(z)| \leq \frac{1}{|\mathfrak{Im}(z)|}, \qquad \forall z \in \mathbb{C}$$   I have to prove that $f(z) = 0, \ \forall z \in \mathbb{C}$.  What is supposed to happen when $\mathfrak{Im}(z) = 0$? We are not working in $\overline{\mathbb{C}}$, so we don't assume that $f(z) = \infty$ for some $z \in \mathbb{C}$. How should I interpret this condition?  In another part of the assignment I am told to classify entire bi-periodic functions. I know what is meant by classification when one is  talking about e.g. manifolds or surfaces, but I am finding it hard to interpret in this case. At least this follows just from the definition:  Let $f$ be an entire bi-periodic function with periods $p_1, p_2 \in \mathbb{C}$, such that $p_1, p_2$ are $\mathbb{R}$-linear independent. Then we have  $$f(z + jp_1 + kp_2) = f(z) \qquad \forall z \in \mathbb{C}, \ \forall j, k \in \mathbb{Z_{\geq0}}$$    How should I categorize these functions?


Commands not working on Minecraft Realms?

I am an operator (OP) on my friends Realm. Today I tried to play and noticed that no commands would work for me, or anyone else granted OP. They only worked for the owner of said realm.   He has de-oped us and re-oped us with no cure to the problem. What's causing this?   Also another problem that when he tries to reload the realm it fails every single time, any options that would fix this problem?


Unicode properties and Firefox JavaScript

Here is how it works in Chromium:  > letter = "\\p{L}" < "\p{L}" > reg = RegExp( letter, "gu" ) < /\p{L}/gu > reg.test("é") < true > reg.test("&") < false   In Firefox I get an error:   >  letter = "\\p{L}" < "\\p{L}" > reg = RegExp( letter, "gu" ) > SyntaxError: invalid identity escape in regular expression   So is there a way to make it work in Firefox?


Terraria - How To Find Plantera Bulb Easiest Way

I am on hard mode and I have been exploring underground jungle for 3 days.  I cant find any Bulbs, and I think I am prepared to kill it now.  How do I find the Plantera Bulb in the easiest way?


I know there are lots of same type of questions posted on stackoverflow but I have something in custom and dont know how to solve this problem.  If any number is prefixed with ‘+’ or 0 (sequence of zero like 00) or ‘91-‘, then it should be removed automatically before group creation.  prefixed needs to be removed -    0 or sequence of 0 (00, 000, 0000 etc) + 91- +91-   Valid mobile numbers entered by users should be as below:    If mobile number is 10 digit, it should start with 9,8,7 or 6  If mobile number is 12 digit, first 2 digits should be 91 and 3rd digit should be 9,8,7 or 6  All other numbers should be considered invalid for domestic group creation.   What will be the php code for above as will be?  phone no ex-    +918877665544 or 0918877665544 or 0000918877665544 will give 918877665544 (length 12) +91-8877665544 or 91-8877665544 or 00008877665544 will give 8877665544 (length 10) +91-88776655440 (length 11) or 91-88-77665544 (- in between) will give gets skip or should giv blank   only digits are allowed after removing the allowed prefixes.  if any other it should skip (should give blank).  Note:- for all the cases it should have only one regex as this regex will be inserted from config settings.


What canon level will the 7th Star Wars movie be?

defines different canon level for the Star Wars Universe. In the end of the Wikipedia paragraph :  Leland Chee, December 6th, 2006: "Anything not in the current version of the films is irrelevant to Film only continuity." This statement confirms the existence of two separate continuities, the "film only" continuity maintained and followed by George Lucas himself, and the "films + EU" continuity that is used for licensed products; G-Canon, and Star Wars Canon.  So... since, as I understood, Lucas will only be a consultant on the 7th movie, will it be considered G-Canon ?


I developping an admin panel, i have the PDO stuff for my db. Here is my post PHP for update texte in my website:  $text1= $_POST['text1']; $text2= $_POST['text2']; $query = $con->prepare("UPDATE `home` SET text1='$text1', text2='$text2' WHERE id=1;"); $query->execute(); if ($query) {     echo 'good';....}   If i write quotes it's say my sql query is not good. I have tried quote() and prepare() but don't work too. How can i do for use quote in my input ?  PS: In all my query i have specials char like: é à ü ù and other (i'm french)


Maximum likelihood of a neural network vs crossentropy loss

Let's deal with a classification problem. I am thinking of a binary classifier but would be interested in classifying multiple categories, too. In logistic regression, we get the same parameter estimates whether we estimate the parameters using maximum likelihood or if we use the parameters that minimize cross-entropy loss. Can we say the same of a neural network, or do we use cross-entropy loss because of the relationship between likelihood and cross-entropy in logistic regression?


Non-static variable jTextField1 cannot be referenced from a static context

package test2;  public class NewJFrame extends javax.swing.JFrame {      private static void valueGen() {         String x = jTextField1.getText();         System.out.println(x);     }      public NewJFrame() {         initComponents();     }      private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {         jTextField1.setText("Hello");     }      public static void main(String args[]) {         valueGen();          java.awt.EventQueue.invokeLater(new Runnable() {             public void run() {                 new NewJFrame().setVisible(true);             }         });     }      private javax.swing.JButton jButton1;     private javax.swing.JTextField jTextField1; }   I have a program as shown above.  I need to access the value of jTextField1 from the function valueGen(). But I get the error:  non-static variable cannot be referenced from static context   What should I do in order to access the value of jTextField1 from valueGen()?


Hello I have a Problem with the alignment of the y-axis in TikZ! The y-axis of the last plot isn't aligned to the other two plots! trim axis left doesn't work! Can somebody help me? Thanks!  \documentclass[svgnames,a4paper,ngerman,fontsize=12pt]{scrreprt} \usepackage{tikz} \usetikzlibrary{arrows} \usepackage{pgfplots}  \begin{document} \begin{figure}[!h]\centering  \begin{tikzpicture}[xscale=8,yscale=5] \draw [->, thick] (0,0) -- (0,0.5)node[left]{$U,I$}; \draw [->, thick] (0,0) -- (1.1,0)node[below]{$t$};  \draw [blue, ultra thick, rounded corners] (0,0.3)--(0.1,0.3)--(0.15,0.22)--(0.2,0.22)--(0.22,0.02)--(0.8,0.02)--(0.85,0.4)--(0.88,0.3)--(1,0.3)node[above,blue]{$u(t)$}; \draw [red, ultra thick, rounded corners] (0,0)--(0.1,0)--(0.18,0.4)--(0.2,0.3)--(0.83,0.3)--(0.85,0.0)--(1,0.0)node[above,red]{$i(t)$}; \end{tikzpicture}  \begin{tikzpicture}[xscale=8,yscale=5] \draw [->, thick] (0,0) -- (0,0.5)node[left]{$P$}; \draw [->, thick] (0,0) -- (1.1,0)node[below]{$t$};  \draw [orange, ultra thick, rounded corners] (0,0)--(0.1,0)--(0.15,0.4)--(0.22,0.05)--(0.8,0.05)--(0.85,0.3)--(0.9,0.0)--(1.0,0.0);  \end{tikzpicture} \begin{tikzpicture}[xscale=8,yscale=5] \draw [->, thick] (0,0) -- (0,0.5)node[left]{$E$}; \draw [->, thick] (0,0) -- (1.1,0)node[below]{$t$};  \draw[purple, ultra thick, rounded corners] (0,0)--(0.1,0)--(0.2,0.2)--(0.8,0.3)--(0.9,0.4)--(1,0.4); \draw[thick](0.1,-0.01)--(0.1,0.01); \draw[thick](0.2,-0.01)--(0.2,0.01); \draw (0.15,0)node[below]{$E_{on}$}; \draw[thick](0.8,-0.01)--(0.8,0.01); \draw[thick](0.9,-0.01)--(0.9,0.01); \draw (0.85,0)node[below]{$E_{off}$}; \draw[decorate,thick,decoration={brace, mirror}] (0.2,-0.01)--node[below]{xxx}(0.8,-0.01) ;  \end{tikzpicture} \caption{Plot}\label{fig:PvIGBT} \end{figure} \end{document}


System of linear equations having a real solution has also a rational solution.

I saw this question     Let $A ∈ M_{m\times n}(\mathbb{Q})$ and $b ∈ \mathbb{Q}^m$. Suppose   that the system of linear equations $Ax = b$ has a solution in   $\mathbb{R}^n$. Does it necessarily have a solution in $\mathbb{Q}^n$?   and I thought I'd give an interesting, possibly wrong, approach to solving it. I'm not sure if such things can be done, if not maybe you can help me refine.    I considered the form of the equality as  $$ A^{(1)}x_1+\cdots+A^{(n)}x_n=b, $$  where $A^{(i)}$ is a column vector of $A$. I then noticed that for $x_i\in\mathbb{R\setminus Q}=\mathbb{T}$ then, and this is where I think I'm doing something forbidden, each $x$ has the represenation  $$ x_1  =  k_{11}\tau_1+\cdots+k_{1p}\tau_p \\  x_2= k_{21}\tau_1+\cdots+k_{2p}\tau_p \\ \vdots \hspace{4cm} \vdots \\ x_n=k_{n1}\tau_1+\cdots+k_{np}\tau_p,$$  where $\tau_i$ is a distinct irrational number, $k_{ij}\in\mathbb{R}$, and $p$ is the number of such distinct irrational numbers. I wound this out, but there may be a discrepancy with $p$ and $m$. I feel this method can lead me to the answer, but I'm not sure where to go from here.  EDIT$^1$:  I end up getting something like this, I believe, after substitution:  $$ A(k^{(1)}\tau_1+\cdots+k^{(p)}\tau_p)=b$$  Here, $k^{(i)}$ is the vector  $$\begin{pmatrix} k_{1i} \\ \vdots \\ k_{ni} \end{pmatrix}.$$  EDIT$^2$:  I think there is no discrepancy with $p$ and $m$ because $A\in M_{m\times n}(\mathbb{Q})$, $K\in M_{n\times p}(\mathbb{R})$, and $\tau\in M_{p\times 1}(\mathbb{T})$, so  $$ (m\times n)\cdot (n\times p)\cdot (p\times 1) = m\times 1. $$


How to remove unwanted colors in picture?

I took product photos for my company and am currently editing them. However, some of the white parts of the shirt look a little odd zoomed out. When I zoom in, I see the following:    I'd like to remove the red artifacts that appear on the text. Any advice on how to do that in Photoshop or Lightroom?


Get text from another class and set to field in javafx

I have a login application->(Login) that starts when i run the program in Netbeans, When login credentials are verified i hide the stage and start another stage->(Stardust).  I have a label in Stardust that is initially empty but after login should show the username. I have seen countless questions regarding this and most of the answers didn't even work for the one who asked so forgive me if you find this duplicate.  I have created a method for taking the username from Login into Stardust but when i try : label.setText(user); it gives a NullPointerException  as you can see when i am printing i get the name but it is not setting as label's text. Also if possible i would like this task to happen when this method is called.   //Requested Code  'static void launcher() {         Platform.runLater(new Runnable() {    public void run() {                     new Stardust().start(new Stage());         } }); }'     I called it like Login.launcher(); when login is successful in LoginController.java   public static void main(String[] args) {         Application.launch(Login.class);  }   is how i launch the Login from Stardust


Assigning unallocated partition to Ubuntu

I have an unallocated partition of size 200GB I want to assign it to Ubuntu while installing. How should I do this?


How do I delete all my mail from my Gmail account?

I want to clear my mail from my Gmail account, but don't feel like selecting every message (also the archived ones).  Is there an easy way to delete all my mail from Gmail without having to delete my account?


My supervisor published our work without informing us. Can we retract the paper from the conference in anyway?

We (myself and my thesis partner) worked on a research problem in 2017 as part of our undergrad thesis course in our university under a supervisor. We successfully defended our thesis in our thesis defence in our university and prepared an IEEE-formatted paper as per the request of our supervisor as he told us that we would be publishing it in a flagship conference in the following year. I personally mailed the final version of the paper to our supervisor. We followed up with him till July 2018 as the proposal had to be sent to that conference by July 2018. But our supervisor told us that he didn't want to publish it in that conference. He rather told us that we would publish it in a good journal in the immediate future. We tried to follow up with him on several occasions about that but he somehow skipped through the conversations. At the start of this month, my partner was searching through some research work in IEEE where he saw a paper titled exactly to that of our thesis work. When he dug in, he found out that our supervisor published the paper in that same conference without our names. The conference was in October 2018 and the paper was published in IEEE Xplore in December 2018. We collected the paper and saw that it was the same paper with the same title that I emailed my supervisor (only a few words here and there have been changed, about 90-95% is the same). He along with his name added his PhD supervisor (who is a dean of a renowned university in our country) and a Korean professor in that paper as authors. One similar case is  in which the victim was yet to confront his supervisor directly and also told later he was acknowledged at the end of the journal. But in our case, we didn't get any acknowledgment. Also when we confronted our supervisor with the matter, he told us that he forgot to include our names which sounded more like preplanned. He also told us to not raise the issue further and offered us to help to publish the paper by extending it in a journal in the future. We have talked to the department head about this. Although he was hurt by it, he hinted that the department won't be able to help much as there were two renowned and influential professors involved. Because our department gets benefited from them in several ways. We have worked so hard for this work for nearly one and a half years as well as spent some huge money to buy some equipment for collecting the dataset. We're totally distraught and shocked by this incident. We would like to remove that paper from that conference somehow as we've worked so hard for this. Is it possible though? If it is then what are the procedures of retracting the paper from that IEEE conference? Or should we just accept our supervisor's offer and move on from it? For your kind information, I have the email proof of sending the paper to my supervisor as well as our thesis book with our name in it as an acknowledgement that it is our work which was signed by our supervisor, department head, and an external professor during our undergrad defence.


Why the EM algorithm instead of a more direct computation?

Assume we have a probability distribution $P(y,z|\theta)$, where $x$ is the total set of variables divided into observable variables $y$ and hidden variables $z$, and data on observable variables $y$. We wish to determine $\theta$ that maximizes the likelihood $P(y|\theta)$.   (after my breaking their total set of variables $x$ into $y,z$ for clarity) presents the EM algorithm as choosing an arbitrary $\theta^0$ for a probabilistic model's parameters and then repeatedly solving for $m=1,2,\dots$ until convergence:  \begin{eqnarray*} \theta^m &=& \text{argmax}_\theta \sum_z \text{ log }p(y,z|\theta)p(z|y,\theta^{m-1}) \end{eqnarray*}  That requires maximizing $\theta$ over a summation over $z$.  My question is: why not simply more directly solve the problem "what is the most likely value $\theta^*$ for $\theta$ given $y$," that is:  \begin{eqnarray*} \theta^* &=& \text{argmax}_\theta P(y|\theta) & \\ &=& \text{argmax}_\theta \sum_z P(y,z|\theta) \end{eqnarray*}  which also needs to solve a maximization of $\theta$ over a summation over $z$, but does it in a single shot and is conceptually simpler?  In other words, why do we need the iterative algorithm, and why do we need the log?  Update: it's been suggested that this is duplicate of . It is indeed highly related, but the answer there says that EM is better but does not provide an explanation as for why. Also, it does not address the need to use the logarithm.


how to identify highest value key in nested dictionary?

As a python newbie, I have a dictionary d:  d={'a':{'1':4,'2':6},'b':{'1':5,'2':10}}   I need to find for each key ('a','b') the sub-key for the highest value and bundle them together in a new dictionary, newd, which looks like  newd={'a':'2', 'b':'2'}   what is the best way to achieve this?


Markdown stopped working inside of  and  tags!

In , at the bottom there's a section wrapped in <sub> </sub> (see screenshot below). As you can see, markdown no longer works in it: the links are not rendered correctly, and wrapping the text in _ didn't make it italic. According to the , the post has looked correctly at Jan 4.


public class Class_of_var  {   public  String[] su_name =new String[100];   }  `public class Main_Class {   public void show_all(int a)  {      Class_of_var arr = new Class_of_var() ;       for (int i = 0; i < a; i++)      {       System.out.println("Surname  " + arr.su_name[i]);       }   }  public static void main(String[] agrs) {      Add_Car Car=new Add_Car();     Main_Class m = new Main_Class() ;     Scanner sc = new Scanner(System.in);       int x = 1;     int a = 0;     do     {         int y=0;         System.out.println("enter 1 to add a car");         System.out.println("enter 3 to show all cars infromation");          y=sc.nextInt();          switch (y)         {              case 1:               *emphasized text*               Car.add_car(a);                 a++;                 break;              case 3:   *when i call the s_name in class_of_var the value will be null  *                     System.out.println("the a number" + a);                     m.show_all(a);                     break;          }      } while (x == 1);  }  }    public class Add_Car {     Class_of_var arr = new Class_of_var() ;     public void add_car(int a)     {        Scanner sc = new Scanner(System.in);      System.out.println("enter the surname of owner");     arr.su_name[a] = sc.nextLine();  }   } `


Calculate the limit of $\lim_{k\rightarrow\infty}(k!)^{\frac{1}{k}}$

$$\lim_{k\rightarrow\infty}(k!)^{\frac{1}{k}}$$ I want to determine the limit as formal as possible, that is, to prove, for example $$\lim_{k\rightarrow\infty}\frac{\ln(k!)}{k}$$ I had the intention of using the L'Hopital rule and I do not know that it does exist, despite only representing a number. But it is not very justified.  Can you use sanduche theorem? Can I limit?


Minimal residue making congruence system solvable (CRT)

A number when divided by $902$, $802$ and $702$ leaves remainder of $602$, $502$ and $402$ respectively. What would be the minimum remainder of when the number is divided by $2005$?  My attempt: For the given number $n$, $n + 300$ is divisible by $902$, $802$ and $702$. Hence $n + 300$ can be written as $\mathrm{lcm}(902,802,702)\cdot K$ where $K$ is the integer and we can keep varying $K$ from $1$ onwards to manually check the minimum remainder. However this is not a great approach. Any simplistic approach to this problem would be appreciated.


I've just started a cryptography course, so i am not experienced at all how to calculate such big numbers. Clearly, i can't use a calculator, because the number is too big, so i have to calculate it by hand.   Since $101$ is a prime number, i think i should use here Fermat's little theorem. Found some example and tried to solve it this way, but i am totally not sure, if it is correct and if my approach must be this one.   Calculate $5^{3^{1000}}\bmod 101$.  First of all i think i should calculate $3^{1000}\bmod 101$. From Fermat's little theorem i get to $3^{100}\equiv 1\bmod 101$.   Thus $1000=x100+0$ and $x=10$.   $3^{1000}\equiv 3^{999^{10}}  = 1 ^{10} \equiv 102\bmod 101 $  Later i have to calculate $5^{102}\bmod 101$.  Again by Fermat $5^{100}\equiv 1\bmod 101$.  $$102=100\cdot 1 +2$$  Here i am not sure how to move on... I think that my solution is wrong, but i'd love to see your suggeststions and remarks how to solve the problem.  Thank you very much in advance!


D'Alembert's Principle: Necessity of virtual displacements

Why is the d'Alembert's Principle  $$\sum_{i} (  {F}_{i} - m_i \bf{a}_i )\cdot \delta \bf r_i = 0$$  stated in terms of "virtual" displacements instead of actual displacements? Why is it so necessary to "freeze" time in displacements? Also, what would $\sum_{i} (  {F}_{i} - m_i \bf{a}_i )\cdot d \bf r_i$ correspond to if anything at all? In other words, what will be the value of the expression with real displacements instead of virtual ones?


Are the spaces $S^1$ and $S^2$ homeomorphic?

Is the following statement is true/false ?  Is the spaces $S^1$ and $S^2$  with  their topology inherited from $ \mathbb{R}^2$ and $\mathbb{R}^3$ respectively are homeomorphics ?   My thinking  : yes , I think  both are homeomorphics  because both $\mathbb{R}^2 - \{0\} $ and $\mathbb{R}^3-\{0\}$ are connected


How do you add an index field to Linq results

Lets say I have an array like this:  string [] Filelist = ...   I want to create an Linq result where each entry has it's position in the array like this:  var list = from f in Filelist     select new { Index = (something), Filename = f};   Index to be 0 for the 1st item, 1 for the 2nd, etc.  What should I use for the expression Index= ?


Using trigonometric identities to simply the following expression $\tan\frac{\pi}{5} + 2\tan\frac{2\pi}{5}+ 4\cot\frac{4\pi}{5}=\cot\frac{\pi}{5}$

I know this is simple, but I just can't seem to get it... The question is to simplify:  $\tan\frac{\pi}{5} + 2\tan\frac{2\pi}{5}+ 4\cot\frac{4\pi}{5}$  To get: $\cot\frac{\pi}{5}$  How does one go about this?


Solve $z^3 + 1 = 0$ where $z$ is a complex number

I'm working on this problem and I got stuck, here is my attempt.     Find all $z\in\mathbb{C}$ such that $z^3 + 1 = 0$.   Solution. Since $z$ is a complex number, then we must have $z = x + yi$ where $x,y$ are real numbers, hence $$\left(x + yi\right)^3 = -1$$ or $$x^3 + 3x^2yi - 3xy^2 - y^3i = -1$$ by equality of the real and imaginary part, we obtain the system  $$\mbox{$x^3 + 3xy^2 = - 1$ and $3x^2y - y^3 = 0$}$$ and this is where I got stuck, I even made some substitution to eliminate one variable but it didn't help matters.   Please someone tell me what to do next. And please don't try solving it using polar forms, just algebraic manipulation. Thanks.


I am new at java and I am currently working on a project where I need to do some special work with data. My currently problem is that I have a String matrix [5000][60000] (actually filled with '0' and '1' and I need to transforme this matrix in another with only the index. I am working with huge datasets, but I'll give a small example to make myself clear.  The idea is to read the matrix of string, analyse column by column what is '1' and then put that index (row number) in another matrix of int, as showed next:  String Matrix [2][5]= 0 1 0 0 1 1 0 1 0 1 0 1 1 1 0   I want to transforme this in -> int[][] List = { {2},{1,3},{2,3},{3},{1,2}}  Maybe this is a little basic for this forum, but any help would be very appreciated.


If $x\leq y + z$, then how can I show that $x/(1+x) \leq 1/(1+y) +1/(1+z)$? I am trying to do this algebraically by dividing through the initial expression by $1+x$. But, I am not get anywhere with it.


I have a large set of aerial images (thermography) some of them are very tilted due to the airplane turning. I want to merge all the images into a unique orthorectified image. I have not the GPS information but I know the place where the termography was taken. Which is the best way to proceed? Is there any free software available?  I have been trying Microsof ICE but the results are very distorted.


Problem installing Nvida graphics card driver

Xubuntu AMD 64.  Nvidia K600 card.  Drivers and software file is NVIDIA-Linux-x86_64-435.21.run     While installing process stops and message: something like,      "must be installed at root"   The Terminal message is:       nvidia-installer: Error opening log file   '/var/log/nvidia-installer.log' for writing (Permission denied);   disabling logging.   Linux novice.  Are there any other places to look for a driver for that card?


Isn't it time to remove the age from network profile?

Since the  about two years ago, age is no longer displayed on user profiles.  However, it's still visible in the :        I can't see any  point leaving it there when it's removed from all site profiles. Can it please be removed from the network profile as well?


I was wondering if anyone knows of a plugin, extension, process, etc. for mapping shadow locations based on date/time using raster data? I have searched and what I have been able to find all seems to require vectors or multipatch data. I have DSM rasters produced from LiDAR and would ultimately like to use those as the source for identifying locations of shadows, as I would like to the surrounding features in the raster to be used as sources of impact (i.e. trees). I am open to all options, but QGIS, Grass, and ArcGIS are preferred.


In older versions iTunes played automatically the entire songs in an albume when I selected and pressed the play button. Now it only plays the first song then stops. What do I need to do to play the whole album?


Disable automatic customising folders in Windows 10

Windows File Explorer has long had a feature whereby it tries to customise folders based on what files are in there.  Is there any way to disable this in Windows 10?  Specifically I have a problem that I create a lot of audio-visual files, and this leads Windows to often re-categorise folders as music - so that File explorer in detail mode displays columns like 'artist' and 'album'. I basically NEVER want this, and I therefore seem to be forever manually changing folders back to 'documents' (by right-clicking in File Explorer and selecting 'Customise').  Frustratingly, Windows invariably then re-categorises the folder back to 'music' as soon as I add a couple more .mp3's to the folder, so I have to manually change it back again.  Hence my question: How can I stop Windows doing this? I don't really want to change things on a per-folder basis (because this problem affects a lot of folders) - I would prefer to just change one setting to stop Windows ever auto-customising any folder anywhere on my file system.  Thanks for any help!


How to put specific string in into array?

I have a string like this:     [Rise] and rise [again] until lambs become [lions].   I want to get all the string inside the [] (Rise, again, lions) and put it in to an array. How can I do this?  Edit: Thank you guys, I already found the solution here:


I often use the ⌃+O shortcut in bash (from ):     [G]o back to [a command in history] and press ⌃+O instead of ↩. This will execute the command and bring up the next command in the history file. Press ⌃+O again to enter this command and bring up the next one.   It seems this shortcut is not available on OS X; ⌃+O simply does nothing. A web search turns up the , but I don't see how I can accomplish the same thing as ⌃+O with it.  Is it possible to somehow get ⌃+O behavior in Terminal.app on OS X?


In general relativity, is it proper to say that mass curves the three spatial dimensions and also that mass curves the fourth dimension?

In general relativity, is it proper to say that mass curves the three spatial dimensions (x1, x2, x3) and also that mass curves the fourth dimension x4?


Show that $x^2 + y^2 = z^n$ has positive integer solutions for $n = 1,2,3,...$

I am working through Kevin Houston's book . The question I am currently stuck on is to show that  $$x^2 + y^2 = z^n$$  has positive integer solutions for $n = 1,2,3,\dots$  My work thus far:  $f: \mathbb{N}^2 \rightarrow \mathbb{N}$ defined by $f(x,y) = x^2 + y^2$ with image $A = \{2,5,8,10,13,17,\dots\}$  $g: \mathbb{N} \rightarrow \mathbb{N}$ defined by $g(z) = z^n$ with image $B = \{1,2^n,3^n,\dots\}$  If I can show that $A \cap B \neq \varnothing$ for $n \in \mathbb{N}$ then this shows that there are integer solutions for all $n$. How can this be shown?


What data type can be used to support file uploads in Salesforce?

I have a custom object and I want to add a new field to support file attachments. For example, while creating new record, I want the user/admin to have an option to attach files to that record during creation. I also have an active process that will automatically sent email with the data to the user. I want to sent that attachment/file as well in the email.


I currently have a cheap begginer’s MTB. A Toseek Brandon 27.5er 1x8 with hydraulic disc brakes and I came across a circular drop bar handlebar close to my original flatbar diameter. Is there a possible way to connect my current hydraulic disc brakes to drop bar brake levers?


why can't I change only a single element in a nested list in Python

I just met something really strange of Python:  >>> out=[[0]*3]*3 >>> out [[0, 0, 0], [0, 0, 0], [0, 0, 0]] >>> out[0][1] 0 >>> out[0][1]=9 >>> out [[0, 9, 0], [0, 9, 0], [0, 9, 0]]   well, obviously, what I want is :  [[0, 9, 0], [0, 0, 0], [0, 0, 0]]   isn't strange?  I'm not very familiar with Python, but Python always impresses me with its intuitive behavior. But how it comes up with this? ... and how can I get what I need?  thanks!  Watt


How do StackOverflow questions appear in Google search results so quickly?

How is it that questions posted to the Stack Overflow show up as #1 in Google search results just minutes after being submitted? What SEO practices are being used to generate this sort of up-to-the-minute accuracy?


Am I able to use a controller to play the PC version of Minecraft? If so, can I just plug it in and play or do I have to do something else before being able use one?


What will be the formula to find how many Fibonacci terms are there below a given no., $n$?

So if I take a number, $n=10$, $$f(n)=6$$ Because there are only 6 Fibonacci terms below it ($1,1,2,3,5,8$). So is there any formula for this?


Calculate object size when I have physical pixel size

How do I calculate the object size when I have    focal length = 25mm distance to object = 700mm CCDs pixel size = 4,4µm ?   My camera is  one.  Appreciated!   Edit: Could this work:  real height = (object px height * pixel size * distance)/(focal length) ?


Calculate Lagrange Points between Sun and Earth

How to calculate the positions of all 5 Lagrange Points between Sun and Earth? (Please give solution for all points especially for L4 and L5)


How do I remove an account from Google multi-login?

I have three accounts among the multiple accounts I have for Google's products. One of them belongs to a friend who accidentally made his account one of mine when he was using my PC.  How do I remove his account from my Google multiple accounts? Logging out from his account doesn't work. His account still displays under the user dropdown even though I can't log in to it.


Is it possible to export Latex to non pdf format? HTML, rtf, doc, ePub, odt will be good.  I read about that, but it seems obsolete now. Any new solutions for such important thing?  My OS is Windows.


Running a desk fan off a car battery: How long will it last?

I'm going on a road trip and will be sleeping in the bed of the truck at night.   I want to be able to have a fan running during this time.  I have a couple old car batteries sitting around, and I was thinking I could charge them up before I leave home, and then use them to power the fan at night.  The engine will not be running when I am using the fan, and I don't want to drain the battery that's used for starting the engine.  The thought is that I get a power inverter so that I get 120 VAC out to power typical AC desk fans (the smaller the better).  I want to calculate how long a battery can power such a fan.  Let's say the fan is a 120 V, and on the "Low" setting consumes 30 W. Let's say the battery is a 600 CCA, 12 V, lead-acid car battery, with a 50 Ah capacity (20 Ah Rate).  How can I calculate the time that the battery will last?  I know that the power rating of the fan can give the current used (P=IV), and the capacity of the battery can tell me how long at whatever current (Capacity = Amps*hours).  But I don't know which voltage to use (12 or 120), or how to incorporate the inverter or the part about the 20 Ah Rate.  I'm also open to other ideas for running a fan with the engine off.   Another additional thought is to connect the battery in parallel to the truck's battery and that way it would be charging when I drive during the day, but the batteries are different capacities, and I don't know if there would need to be other hardware to prevent my truck battery from being drained.  If this can't be done then I will just drain the battery and when it's dead, I'll just have to wait to get back home to charge it.  Thanks!


ryan@Dell-Latitude-E6330:~$ sudo apt-get install mate Reading package lists... Done Building dependency tree        Reading state information... Done Note, selecting 'mate-desktop-environment' instead of 'mate' Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  mate-desktop-environment : Depends: mate-desktop-environment-core (= 1.20.0+2~16.04.york0) but it is not going to be installed                             Recommends: atril (>= 1.20) but it is not going to be installed                             Recommends: engrampa (>= 1.20) but it is not going to be installed                             Recommends: eom (>= 1.20) but it is not going to be installed                             Recommends: mate-calc (>= 1.20) but it is not going to be installed                             Recommends: mate-applets (>= 1.20) but it is not going to be installed                             Recommends: mate-icon-theme-faenza (>= 1.20) but it is not going to be installed                             Recommends: mate-media (>= 1.20) but it is not going to be installed                             Recommends: mate-notification-daemon (>= 1.20) but 1.18.1-1~16.04.york0 is to be installed                             Recommends: mate-power-manager (>= 1.20) but 1.18.1-3~16.04.york2 is to be installed                             Recommends: mate-screensaver (>= 1.20) but it is not going to be installed                             Recommends: mate-system-monitor (>= 1.20) but 1.18.1-2~16.04.york0 is to be installed                             Recommends: mate-utils (>= 1.20) but it is not going to be installed                             Recommends: pluma (>= 1.20) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   Is there any way I can install Ubuntu MATE correctly?


Succession of the Iron Throne after GoT Season 5 (spoilers) - who's in line?

So at the end of Season 5 of Game of Thrones,      Stannis Baratheon dies (probably).   Suppose that Tommen is discovered to be the son of Cersei and Jaime, due to      The Spanish Inquisition! Umm, I mean, the meddlesome High Sparrow and the faith militant looking for muck to stick to the current royals.   Also, suppose Gendry is unknown to the general public.  Now, by the laws and customs of the 7 kingdoms, and assuming you're not a Targaryen loyalist - who's next in line for succession?  Also, more specifically,       Are there some distant Baratheons (third-degree cousins or something) who might fit the bill? All of Robert's brothers are dead, and he has no cousines, and IIRC also no second-degree cousins.


If a player run behind a wall, use Hide, then comes out, they will still be "hidden"?

If a player run behind a wall, use Hide (as an action), then comes out, they will still be "hidden"?  I'm the DM at this table (Lost Mine of Phandelver, 5e), and our Halfling Rogue, is doing that to gain the advantage attack from .  His actions goes like following:   Run behind a wall (in the corner or behind the stairs for example). Use  to Hide as a bonus action. On his next turn, move 5 feet (just to get out of the wall) and attack (with a bow) the enemy with advantage from . repeat.   When he uses the hide action, I ask him for a Stealth check, then I compare with the enemies Passive Perception.   Because he is a Rogue with +7 stealth, is very hard to actually detect him.  Are we using Hide correctly? Should I keep letting he have the Unseen Attackers advantage?


Why am I getting this local variable referenced before assignment?

I am using this code to log keys and am trying to get it to run a function whenever 10 keys are pressed.  from pynput.keyboard import Key, Listener import logging import time log_dir = "" amountofkeypressed logging.basicConfig(filename=(log_dir + "key_log.txt"), level=logging.DEBUG, format='%(asctime)s: %(message)s') def everysec():     if amountofkeypressed == 10:         print("HI") def on_press(key):      amountofkeypressed = amountofkeypressed + 1     everysec()     logging.info(str(key))  with Listener(on_press=on_press) as listener:     amountofkeypressed = 0     listener.join()   Any way to fix this?


I think that the following statement is correct.     Let $n \geq 3$ and let $p$ be prime. Show that $\sqrt[n]{p}$ is not contained in a cyclotomic extension of $\mathbb{Q}$.   My idea for a proof is that, when $n \geq 3$, the minimal polynomial of $\sqrt[n]{p}$ over $\mathbb{Q}$, $x^n-p$ has complex roots (since they are of the form $\zeta_n\cdot\sqrt[n]{p}$). Since $\sqrt[n]{p}$ is real, we have that $\mathbb{Q}(\sqrt[n]{p})$ contains $\sqrt[n]{p}$ but not the complex roots of its minimal polynomial. This implies that $\mathbb{Q}(\sqrt[n]{p})$ is not normal.   Therefore, $\mathbb{Q}(\sqrt[n]{p})$ cannot be an intermediate extension of any cyclotomic extension, since cyclotomic extensions are abelian (all intermediate extensions are normal). This implies that $\sqrt[n]{p}$ is not contained in any cyclotomic extension of $\mathbb{Q}$.  My question is whether this statement is correct, and if so, if my proof is correct. Moreover, does it hold more generally for cyclotomic extensions over fields with characteristic 0? Is $p$ prime necessary, or does it work for any $p \in \mathbb{Q}$ such that $\sqrt[n]{p}$ is irrational?


Moderator inbox messages are not dismissed from chat / mobile notifications

When I read a moderator inbox item, like this one:    … it still shows as an unread inbox item in chat and the mobile view:    I read the question, so it should be marked as such in the "old style" inbox.


I am running a multisite network on the latest version of WP. I am the Super Admin.  I setup a user as "Administrator" on a site in the network. The Admin User cannot see the plugins menu.  I completely Network Deactivated all plugins and re-Activated them at the site level.  The Admin User still cannot see the plugins menu.  How can I grant Plugin access to a secondary/alternate Admin?


I want to reverse the last x elements in a list in python. For example - Reverse the last 3 elements.  list = [1,2,3,4,5,6,7,8]  # Output needed = [1,2,3,4,5,8,7,6]


For what values of $x_1, x_2, x_3, x_4$ is the matrix $A$ invertible?

For what values of $x_1, x_2, x_3, x_4$ is the matrix $A=\begin{pmatrix}1 & 1 & 1 &1 \\ x_1 & x_2 & x_3 &x_4 \\  x_1^2& x_2^2 & x_3^2 & x_4^2\\  x_1^3& x_2^3 & x_3^3 &x_4^3 \end{pmatrix}$  invertible?   Okay, I know what those are Vandermonde matrix, but how do I find for what values is matrix invertible?  Do I need to find $\det A^{-1}$ and than definition area or what? Help!


Compute $\lim_{n\to\infty} \int_{0}^{\pi/4}\tan^n x \ dx$

I'm trying to find some nice proofs for the following limit  $$\lim_{n\to\infty} \int_{0}^{\pi/4}\tan^n x \ dx$$  One way is to use the integration by parts. What else can we do here? Are there some fast ways? All answers will have my upvote. Thanks!


finding largest increasing subset of an array (non-contiguous)

How can I find the largest increasing (non-contiguous) subset of an array? For example, if A= array(50,1,4,9,2,18,6,3,7,10) the largest increasing non-contiguous subset is either (1,4,6,7,10) or (1,2,6,7,10). I can intuitively see how to find the subset, but I don't know how to design the algorithm.


Segmentation fault in scanning long long int in C

I'm trying to write a simple program to calculate the number of common factors for two numbers.I am stuck with segmentation fault(core dumped) occurring while scanning the second number.I don't understand where is the fault?  #include <stdio.h> #include <stdlib.h>  int main() { long long int first,second,t,k; long long int i,count=0; scanf("%lld",&first); scanf("%lld",&second); //storing the lowest of two numbers in t   if(first<second){     t=first; } else{     t=second; } //initialising an array to be used as flags int com[t]; for(i=0;i<t;i=i+1){     com[i]=1; } for(i=0;i<t;i=i+1){     if(com[i]==1){         if(first%(i+1)==0&&second%(i+1)==0){             count=count+1;         }         else{             for(k=2;k*(i+1)-1<t;k=k+1){                 com[k*(i+1)-1]=0;             }         }     } } printf("%lld\n",count);  return 0; }


No more than one record creation and check record collision of similar type

I've created a custom object for Leaves which allows the users under my org to apply for leaves. I've added three types of leaves such as Casual Leave, Sick Leave & Leave without Pay. I've used an Apex Trigger to check and limit the creation of only one record by one user per day but this Apex is creating a problem in org because it isn't allowing the users to apply for pre-planned leaves, i.e. if a user is applying for Sick Leave for the day he/she should also be allowed to apply for other leaves like Casual & Unpaid for different dates on the same day.  Fields I've used:    Start_Date__c (Date type) End_Date__c (Date type) Leave_Type__c (Picklist type)   I want to use a trigger dependent on the Start_Date__c & Leave_Type__c  The Apex Currently in use:  trigger LeaveRecordDuplicateTrigger on New_Casual_Leave__c (before insert) {     for(New_Casual_Leave__c a:Trigger.new)     {         string uid = userinfo.getName();         List<New_Casual_Leave__c> acc=[select Id, CreatedDate, Contact__r.Account.Name,   Start_Date__c, Leave_Type__c from New_Casual_Leave__c                                          where (Contact__r.Account.Name = :uid                                          AND CreatedDate = TODAY)                                          and Leave_Type__c =a.Leave_Type__c];            if(acc.size()>0)            {                a.adderror('One leave is already applied for the Day For ' + uid);            }        }    }   //Getting error while using the above code: Error: Compile Error: Unexpected token 'a.Leave_Type__c'. at line 5 column 229   What changes to be made to avoid errors? Where am I going wrong?


How to display all letters in a string except the first

I want to display an input() string and want to display it so it prints all the letters of the string except the first letter.  string1 = input("enter first string") string2 = input("enter second string") print(string1[1] + (string2 - [0]))   I expected it to display as (for examples if string1 was pizza and string 2 was a salad) "palad"


Evaluating the nested radical $ \sqrt{1 + 2 \sqrt{1 + 3 \sqrt{1 + \cdots}}} $.

How does one prove the following limit? $$   \lim_{n \to \infty}   \sqrt{1 + 2 \sqrt{1 + 3 \sqrt{1 + \cdots \sqrt{1 + (n - 1) \sqrt{1 + n}}}}} = 3. $$


How to install the iball 3.5gh-75 modem in ubuntu 13.10?

how should i can install my iball3.5gh-72 modem in Ubuntu 13.10


How to remove the association between two Gmail accounts?

I want to remove that other account. Both of them are Gmail accounts. How could I do?


how to decide on how to model something that doesn't satisfy all assumptions of linear regression

I'm new to model building and i"m trying to figure out how to create a model if my data doesn't follow a linear regression (doesn't meet all assumptions). For example, suppose I want to model prices of house insurance premiums. It's a multivariate model with my Y = the premium, and X's being many things such as customer characteristics, house characteristics, and a mix of continuous variables, categorical variables etc etc.  If it doesn't meet the assumption of linear regression (normality, constance variance, etc etc), is the first step to try to transform it to make it normal?  If so, how do I know which transforms to use?  Or is it better to create interactions with my equation. i,e Y = X1 + X2 + X1*X2, etc etc) how do I know what type of interactions I want to create?  Or is it better to use non-linear techniques?


Help me I cant do updates with these two errors :(

These are the two errors:      I need help removing them Please help i want to check for updates Ubuntu 13.04  it still goes through but i want to get rid of them


How to read datasheets for TTL logic gates regarding maximum output current conditions

From what I have been reading, the input stages to BJT TTL logic gates are emitter terminals of transistors. As such, when the input to these gates is logic low the base-emitter junction of these input transistors will be forward biased and source current (sinking into the first stage). Further, this is the reason we find that tables similar to the following in some datasheets :    I am referring to the polarity of the current when considering polarity of logic levels. Specifically, the fact that maximum operating condition of -800uA for a logic level high is non-intuitive. Should it not be that when a gate is driven LOW the second-stage gate actually sink current into the first-stage? That is, shouldn't sinking current (logic low output state) be negative and sourcing current (logic high) be positive?   My concern is how this maximum current sink metric is related to the maximum current that may be sourced when the output of a gate is driven to a logic high state. Specifically, I had the following condition as of late:     I was recently designing a circuit that used a 74LS163 counter where the outputs were fed into some second stage logic. However, I placed some LED indicators temporarily at counter output while prototyping this circuit in order to see what the count value was at a given time. I used series resistances of 1k to severely limit the current in order to not load the output driver too much, but saw a very significant output voltage drop anyway.   Specifically, The LED I was using had a forward voltage of 2.5V. The nominal, unloaded, output of the counter was 4.5V. With the 1k series resistance we find that a mere 2mA would be drawn to drive the LED. I found that the LED indeed was dimly lit, but the output voltage dropped 1V to 3.45V despite such low current demand.   tl;dr : This led me here. The maximum current when the output is driven high is given as a maximum sinking current, but obviously the counter sources some level of current at this voltage. How do these values shown in the datasheet relate to sourcing current at logic HIGH and sinking current and LOGIC low?


how do I save files directly to the cloud from ubuntu?

I have a google drive account that I got with my chromebook but I don't know how to back up my files from my desktop.


How do I get the phone numbers of my Facebook Friends?

There was a time that somehow Facebook synced to my phone and that was great but I did not want all of them. How can I manually select the Facebook numbers and then export it to my phone via Contacts or Microsoft Exchange ? Where is this option ?


Possible Duplicate:          I've never understood the purpose of the command \protect? When and why should it be used?


SO policy on directing questions to specific entities

Specificly, this  was just asked  Due to this  by instagram which states     We are actively monitoring Stack Overflow and we will be removing the   Google Group soon. If you have questions that have not been answered,   please post to Stack Overflow or report bugs with the Bug Tool.


App Store won't update iTunes; inconsistent with iWork

I have updated my (Late 2009) Mac Mini to Mavericks. "About This Mac" shows "OS X 10.9 (13A603).  However, I have not been able to update iTunes to version 11.1.2. The App Store shows that the update is available. It also shows several instances of it in my update history. After clicking "Update", the button quickly changes to "Installed". Closing and re-opening the App Store shows the update as available again. Checking within iTunes shows it is at version 11.1.1, so not actually updated. (Repeated several times)    The iWork apps (Pages, Numbers, and Keynote) have actually been updated, showing the correct versions. However, I occasionally one or more will also show up in the App Store as available as well; the behavior is similar to iTunes. If I scroll down, there are multiple instances in my update history as well.  Things I have tried:   Rebooting. Selected "Store -> Check for Unfinished Downloads..." This appears to re-install the iWork apps, as evident by progress bars in Mission Control, even when they are not listed as needing an update. It does not seem to do anything for iTunes. Delete iTunes and reinstall. OS X does not allow iTunes to be deleted. I have not yet tried this with iWork. Selected "Debug -> Reset Application" (there is a ) Selected "Debug -> Clear Cookies" Selected "Debug -> Show Download Folder", and deleting the files there. A subsequent check for unfinished downloads puts them back.   These have had no effect, unless I described it above.  What can I do to get the updates properly installed?  Update: After letting the issue sit for a few days, the App Store no longer shows the iTunes update as available; but iTunes itself is still at 11.1.1.


Can't change place of footer and header page numbers

I'm using the command \pagestype{myheadings} to make sure that the page header contains nothing else that the page number. However, I can't manage to make the page number of the first page of chapter to be displayed up in the page corner. Here is a sample code of what I'm doing so far: \documentclass[12pt,a4paper]{book}  \usepackage[T1]{fontenc} \usepackage[french]{babel}  \pagestyle{myheadings}  \title{Test book} \author{Someone} \date{\today}  \usepackage{lipsum}    \begin{document}     \sloppy     \maketitle          \chapter{First chapter}     \lipsum[1-100]          \backmatter     \tableofcontents \end{document}   Best rgards!


Is it technically correct to say I have "one exam" if I actually have four exams?

If a college student asks one of his fellow students the question:     Do you have one exam?   and the student replies:     Yes, I have one exam.   when he actually has four exams, is the answer technically false?


I am playing a frenzy Barb and trying to figure out which weapon to put into my mainhand. First weapon is slow but hits hard, second is fast but hits not as hard as the first one. This  shows a higher attack speed when I put the faster weapon into the mainhand. Does that mean that you always put the faster weapon into the mainhand?


Can a non-EU national move between Schengen countries without a passport?

My passport is in the hands of an embassy right now, because of a visa application. I paid more to expedite the process but, just in case the passport doesn't make it back to my hands in time, I would like to know if I can go from France to Spain (short stay) without the passport with me. I have seen  and I've read the answer but it seems to conflict with the following quote :  Going to another EU country during my short-term visit – less than 90 days If you have entered an EU country with a Schengen visa, you can travel throughout the Schengen area for as long as your visa is valid, and for a maximum of 90 days during an 180 day period. You will not need a separate visa for each Schengen area country and you will not need to show your passport at each internal border.  I have a photocopy of my passport biometrics page, if that helps.


Continuous, absolutely integrable, unbounded function

For my course in Fourier analysis I need an example of a continuous unbounded function that is absolutely integrable. I can't seem to think of one and so need some help with this.  I also need an continuous bounded function that isn't absolutely integrable and I was thinking $f(x)=\begin{cases} \frac{\sin(x)}{x}, \text{if } x\neq 0 \\ 1, \text{ if  } x=0\end{cases}$. Is this correct?


How can I quickly toggle monitor orientation with a shortcut key?

While looking if someone asked this question before, I landed on .  I'd like to do something similar (shortcut or terminal alias/command) on Linux/Ubuntu to be able to quickly switch the external monitor between landscape and portrait mode instead of having to go to Displays setting it and confirming the configuration.  Jacob Vlijm provided a  which works. If you have another idea I'd love to know about it.  Update: I have updated Jacob's script to work .


How do i add online GeoServer layers on android mobile app

I am trying to develop an android app, and in this app I want to display a Google map and on this map I also want to add some layers on the Map which I have created from GeoServer.    Basically my requirement is that I want a Google map with some layers of GeoServer in my android app. which layers are online on my server not on my localhost  I am new for the android app as well as GeoServer.


getActualMaximum function returns the non-existent value in kotlin

I have the following code to get the last day of the month but what is strange is that returns 31 for the last day. On that month of the year there should be only 30 days. Therefore, when I tried to parse the string data, I get Caused by: java.text.ParseException: Unparseable date: "2020/6/31 00:00:00"  Some tips or example will be lovely. I would love to hear from you!   val cal: Calendar = Calendar.getInstance().also {             it.clear()             it.set(Calendar.YEAR, 2020)             it.set(Calendar.MONTH, 6)         }         val lastDaysOfMonth = cal.getActualMaximum(Calendar.DAY_OF_MONTH)