This is a question I have when I read proof of "group of order $15$ is cyclic". So let $H$ and $K$ be Sylow $p$-group of $G$ with order $3$ and $5$ respectively. I understand that they are normal subgroups and $H\cap K = \{e\}$ since $\gcd(3,5)=1$. But I just don't see why $HK = G$? The best I can do is to conclude that $HK$ is a subgroup of $G$.

How do I prove group of order 15 is abelian?  Is there any general strategy to prove that a group of particular order(composite order) is abelian?


As a developer, I am writing a commit message to rollback an update. In my message I want to describe what I am doing which is the opposite of an update. I am looking for something like the word downgrade for upgrade.  If you wonder what is the difference between update and upgrade, check this link. .  The word downdate quite exist (at least on the Urban Dictionary) but it means a .

The antonym of "upgrade" is "downgrade", quite broadly used.    What is the antonym of "update"?    Update: Though, I hoped for something like "un-update" because reverting or uninstalling updates are much lengthier. Update2: After having further answers about "Restore", et al, I decided to restore the phrase from my original update.      Yes, I can revert updates (uninstall   service packs, hotfixes or restore   the operating system to a previous   state/image)


i need a to transfer the current date time into ios8601 format, something like :  date and time in format: 01 Jan 2014 BST 12:00 PM  eventually on my jsp , i wish to put the formated date in   <time datetime="{date and time in ISO8601}">{date and time in format: 01 Jan 2014 BST 12:00 PM}</time>   my current try out:      TimeZone tz = TimeZone.getTimeZone("BST");     DateFormat df = new SimpleDateFormat("dd-MM-yyyy'T'HH:mm'Z'");     df.setTimeZone(tz);     String nowAsISO = df.format(new Date());   but the result doesnt look like what i expect to get......

Given:  DateTime.UtcNow   How do I get a string which represents the same value in an -compliant format?  Note that ISO 8601 defines a number of similar formats. The specific format I am looking for is:  yyyy-MM-ddTHH:mm:ssZ


Whenever I execute sudo apt-get update I get this error message:  W: Failed to fetch http://ppa.launchpad.net/jolicloud-team/ppa/ubuntu/dists/natty/main/source/Sources  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.   I've checked my /etc/apt/sources.list file, but there is no reference to  . Could anyone help me?

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


I am currently on a tutorial regarding Python GIS. There's an exercise that asks to create a function that takes a list of Shapely Point objects as a parameter and returns a LineString object of those input points. The function should first check that the input list really contains Shapely Point(s). What I did is this. from shapely.geometry import LineString  def createLineGeom(points):     for i in points:         if str(type(i)) == "<class 'shapely.geometry.point.Point'>":             pass         else:             return print(f'Invalid input: Type not shapely Point, {i}')     return LineString(points)  Can someone show me a more appropriate way of checking if the input is a shapely point object? Thanks

What is the best way to check whether a given object is of a given type? How about checking whether the object inherits from a given type?  Let's say I have an object o. How do I check whether it's a str?


Two light sources emit light at the same moment but in opposite directions. At what speed the distance between two light fronts is increasing? c or c * 2?  Note, that there is only one coordinate system here - a system, where these two light sources are placed and they don't move.

Let's say we have $2$ particles facing each other and each traveling (almost) at speed of light.    Let's say I'm sitting on #$1$ particle so in my point of view #$2$ particle's speed is (almost) $c+c=2c$, double light speed? Please say why I am incorrect :)    EDIT: About sitting me is just example, so in point of view of #1 particle, the second one moves at (almost) $c+c=2c$ speed?


When I shine a red laser behind me at a wall I see a strange reflection occurring on my laptop screen Why does this happen? The pattern on my screen occurs exactly where the laser is hitting the wall. When I shine the laser on a reflective surface(glass) I still see the same pattern on my monitor as well as the reflected laser in front of me.

I was up late working with my red LED headlamp on and when I was looking at the black part of my LCD (Apple Retina Macbook Pro) screen I noticed this interesting diffraction pattern. I'm confused because all I can think of that would cause this are Fourier and Fraunhofer patterns which I thought required more advanced optics the light to be collimated. One friend suggested it might be the polarizer. Any thoughts?  Unfortunately, the picture doesn't show this, but along the x and y axes there were discrete points not a continuous streak. Sorry for the horrible photo quality.


I have the following setup for a community website:

Friend Requests

             getRequests.js appends the following into the container div:
              Random Guy
     <button data-id="4" class="accept">Accept</button>     <button data-id="4" class="deny">Deny</button>

   friendResponse.js has the following:  $(function(){   $(".accept").click(function(){     var id = $(this).attr("data-id");     $("#"+id).remove();   }); });   So, you would expect that when I click the accept button, the container with id=1 should get removed, but for some reason, it doesn't.   And also, to add to the peculiarity, the code works if I inject it through the console.  And, for the record, the script is not showing any errors.

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


This code snippet works as expected for the int type:  public class Test  {     public int Value     {         get => _Value;         set         {             if (_Value != value)                 _Value = value;         }     }     private int _Value; }   When int is replaced by the generic T, the compiler complains with:     Operator '!=' cannot be applied to operands of type 'T' and 'T'   Why does this happen and is there a way to solve it?

According to the documentation of the == operator in ,      For predefined value types, the   equality operator (==) returns true if   the values of its operands are equal,   false otherwise. For reference types   other than string, == returns true if   its two operands refer to the same   object. For the string type, ==   compares the values of the strings.   User-defined value types can overload   the == operator (see operator). So can   user-defined reference types, although   by default == behaves as described   above for both predefined and   user-defined reference types.   So why does this code snippet fail to compile?  bool Compare<T>(T x, T y) { return x == y; }   I get the error Operator '==' cannot be applied to operands of type 'T' and 'T'. I wonder why, since as far as I understand the == operator is predefined for all types?  Edit: Thanks, everybody. I didn't notice at first that the statement was about reference types only. I also thought that bit-by-bit comparison is provided for all value types, which I now know is not correct.  But, in case I'm using a reference type, would the == operator use the predefined reference comparison, or would it use the overloaded version of the operator if a type defined one?  Edit 2: Through trial and error, we learned that the == operator will use the predefined reference comparison when using an unrestricted generic type. Actually, the compiler will use the best method it can find for the restricted type argument, but will look no further. For example, the code below will always print true, even when Test.test<B>(new B(), new B()) is called:  class A { public static bool operator==(A x, A y) { return true; } } class B : A { public static bool operator==(B x, B y) { return false; } } class Test { void test<T>(T a, T b) where T : A { Console.WriteLine(a == b); } }


I am an US citizen living abroad, I understand that I need to pay taxes even abroad, but how do I pay taxes if I'm not working for a US company?

I hope this question is appropriate for SE Money but based on this one I think it is   If you are an American citizen not living in the US but a bona fide resident of European country and you work for a European company which has no clue what a W2 is what do you do when you report your taxes?  I'm also curious about FBAR reporting.   "The aggregate value of all foreign financial accounts exceeded $10,000 at any time during the calendar year to be reported."  That's a rather low number especially if it's just used for a small buffer to pay bills and collect pay checks and not used for investing.  Anyone with a similar experience?


Recently I faced this question the answer was kinda wiered to me public class Q22 {     public void doIt(int x, Person y){         x=5;         y.number=8;     }     public static void main(String[] args) {         Person p = new Person();         int x = 0;         new Q22().doIt(x, p);         System.out.println(x+" , "+p.number);     } }  class Person{     public int number; }   Outputs : 0 , 8  instead of 5, 8  Why on the earth this happens? Could someone please explain to me with thanks.

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


Which is the correct gerund clause that should be used here?    People killing animals is a bad thing.. or People's killing animals is a bad thing..  John being late is a bit inconvenient. or John's being late is a bit inconvenient.   (At the beginning of sentence,Is the subject before the gerund expressed as a possessive noun?)

The rule says that we can use a possessive adjective or an object pronoun before a gerund. Is there a rule  that says when to use each or are they interchangeable? Some say that it's wrong to use an object pronoun before a gerund.


When I render my UV mapped object it shows fine in the design stage but the rendering looks very wrong. What is happening and how do I fix this?

In my 3d scene view, with display mode set to "textured", my texture looks fine. But when I render it the texture stretches all over the place. All my settings are at default, just a single sun object for lighting.


import javax.swing.*;  public class Main {  public static void main(String[] args) throws FileNotFoundException {     File file = new File(args[0]);     Scanner input = new Scanner(file);     int i = 0;     String names[] = null;     int slices[] = {};     while (input.hasNext()) {             names[i] = input.next();             slices[i] = input.nextInt();             i++;         }     JFrame f = new JFrame("Pie chart");     f.setSize(600, 350);     f.setDefaultCloseOperation(         JFrame.EXIT_ON_CLOSE);         f.add(new PieChart());         f.setVisible(true);      } }   Here is my second file...  import java.awt.*; import javax.swing.*;  public class PieChart extends JComponent {  public void paintComponent(Graphics g) {     Graphics2D g2 = (Graphics2D) g.create();     Graphics2D g3 = (Graphics2D) g.create();     g3.setColor(Color.BLACK);     g2.setColor(Color.BLUE);     for (int i = 0; i < 5; i = i + 1) {         g2.fillRect(230, 20 * i + 50 , 20, 20);          g3.drawString("swallow", 255, 20 * i + 65);          g3.drawString("37.0%", 385, 20 * i + 65);                }     g2.fillArc(50, 50, 150, 150, 0, 360);        }    }   I am trying to read from a text file into two separate arrays. I want one array to hold the names and then one to hold the values. I then want to be able to then access the values from the array from my second file. My current problem is that it isn't accepting the input.next(); into the arrays for names[] and slices[]. How can I fix this?  Here is a sample text file:  swallow 10 magpie 5 fairywren 7 osprey 2 fantail 3

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have a PowerEdge R630 on Ubuntu 16.04 LTS and want to update it to ubuntu 18.04. In 16.04. PowerEdge R630 is in support list of ubuntu but in Version 18.04. DELL PE R630 is not listed, should i nevertheless updating to 18.04 or is there a high risk?

I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it?


He said "aaron here" is that correct? How about "aaron is here"

Why Michael, 's host at the start of each video says "Michael here" instead of "Michael is here"?   Is it grammatically correct or just a slang / simplified way of speaking?


My father & mother in laws, recently applied for a family visit visa to come and take part at my son’s birthday and spend sometime with our family. I sponsored their entire trip and showed evidence of funds available in my savings account. I provided my payslips & bank statements of 8 months. Also for accommodation I provided UK land registration documents + house inspection. But in the refusal letter they say “some of the cost” which is not true. I gave a complete breakdown of how much a 24 days trip will cost and I submitted my savings account which had 3x more funds available. The applicants who are both retained elderly, provided their property assets and rental income documents. Their main source of income in Bangladesh is generated from the rents. For a 24 days trip, their were sufficient funds available from both sides.  However, we are now aware that the applicants bank statement did not show enough regular transaction, although fund balance were good. This was picked up by ECO and used it to refuse. Since there are no opportunity to appeal, we can’t explain the fact that the applicants are both elderly and don’t always use the bank to put the money in and out. My father in law is old fashioned and prefers to deal with everything in cash. In fact cash is still widely used in Bangladesh economy.  We want to reapply but would like to get it right next time around, any advice will be greatly appreciated? Also they say, because they haven’t traveled to anywhere else before, then apparently they will not leave the UK! But...they are both in their late 60’s. That generation of Bangladeshis rearly has the opportunity to go abroad, they only want to come to the UK due to family, their daughter, me and the grandchildren. We go to Bangladesh to visit them, and the kids just wanted to have them over for few weeks to return the favour.

Many of the UK visa refusals we see here share a common pattern and the prevailing reasons refer to V 4.2 (a) and (c).    I do understand that, while the applicants may describe very different individual circumstances, there's a consistent pattern and, broadly, fall into specific categories:    Credibility (lifestyle, lack of ties, visit history, lies & omissions) Funding (insufficient funds, provenance of funds, funds parking) Sponsorship (family, friends, employer)   Question: What most commonly triggers a UK visa refusal where V 4.2 (a) and (c) are given as the grounds?  Secondarily: Given that there is a clear pattern, to what extent are these refusals predictable? Does sponsorship make a difference? Is there a set of personal circumstances, however abstract, where a refusal is all but guaranteed? For example, why do those we see here on TSE who sought entry for the PLAB or British Army appear to be refused with a common theme? Is there a uniform shortcoming or is it just discrimination?   PLAB: What is about applications for a visa, for the purpose of sitting the Professional and Linguistic Assessments Board (PLAB) exam, that seem to invite refusals. After all, the test is given so that international medical graduates can show that they qualify to practise medicine in the UK. The first part, PLAB 1, can be taken in centres outside of the UK. However, PLAB 2 can be taken only in the UK. Why can't you can't get a visa just to sit the exam, promising that you'll leave immediately after?    British Army: Since Commonwealth citizens are eligible to apply online to join, even those who don't reside in the UK, why is it so difficult to get a visa just to attend an interview to see whether you are suitable? Even with an invitation from the Army, such visa applications seem to be unsuccessful. Isn't a career in the British Army a valid reason?     Lastly:  After such a refusal, what approaches would increase the chance of a successful application?


Sorry this look very childish question .But why my String value is not changing. my code is below  class Car{  public static void car(String name) { name="Bmw"; } }  public static void main(String[] args) {      String name="honda";  Car.car(name);  System.out.println(name);     }  out put:-honda   I know java is pass by value . so i was thinking that honda will become bmw. Please give explaination on this.Thanks in advance!


I want to solve this equation: $3x+4y=14$ I present you what I have so far: $\gcd(3,4)=1$ which is not $14$. I notice that: $3(6) + 4(-1) =14$ So using Bézout : $3(6-4k) + 4(-1+3k) = 14 (1)$, where $k$ integer. So we have $k>1/3$ and $k<3/2$. So $k = 1$. By replacing $k$ in equation $(1)$ we get: $a=2, b=2$, which indeed solves the equation. However, I dont get my previous solution $(a,b)=(4,-1)$ which is also correct. Am I applying Bézout wrong? Or am I not supposed to find the solution that I used to find the new ones, if they exist? Do I have $2$ solutions and that's it or am I missing something? Thank you.

Does there exists more than one set of numbers $(m,n)$ so that $132m+34n=\gcd(132,34)$?   I was comparing to, and thinking about how and why euclids algorithm solves for one set.   How might one find the other sets?


I'm given matrix N by N  $$\begin{pmatrix}a & b & 0 & 0 & 0 & ... & 0 \\\ c & a & b & 0 & 0 & ... & 0 \\\ 0 & c & a & b & 0 &... & 0 \\\ ... & ... \\\ 0 & 0 & 0 & ... & c & a & b \\\ 0 & 0 & 0 & 0 & ... & c & a \end{pmatrix}$$  I need to find such $a, b$ and $c$ so that the matrix is singular    What I tried: Singularity means determinant is zero. Let determinant of the matrix be equal to $D_n$ where $n$ is the size of the matrix, in this case I derived the relation, by definition of determinants:  $D_n = a D_{n-1} - bc D_{n-2}$ - a homogenous difference equation of second order. I solved it under the conditions that $D_0 = a$ and $D_1 = a^2 - bc$. Unfortunately the answer for closed form of $D_n$ turned out to be rather complicated which lead me to believe that my approach is probably faulty. Is there a possible different approach maybe? Thank you

How to show that the determinant of the following $(n\times n)$ matrix  $$\begin{pmatrix} 5 & 2 & 0 & 0 & 0 & \cdots & 0 \\ 2 & 5 & 2 & 0 & 0 & \cdots & 0 \\ 0 & 2 & 5 & 2 & 0 & \cdots & 0 \\ \vdots & \vdots& \vdots& \vdots & \vdots & \vdots & \vdots \\ 0 & \cdots & \cdots & 0 & 2 & 5 & 2 \\ 0 & \cdots & \cdots & \cdots & \cdots & 2 & 5 \end{pmatrix}$$  is equal to $\frac13(4^{n+1}-1)$?    More generally:     How does one compute the determinant of the following  (where the three diagonals are constant)?      $$M_n(a,b,c) = \begin{pmatrix} a & b & 0 & 0 & 0 & \cdots & 0 \\ c & a & b & 0 & 0 & \cdots & 0 \\ 0 & c & a & b & 0 & \cdots & 0 \\ \vdots & \vdots& \vdots& \vdots & \vdots& \vdots & \vdots \\ 0 & \cdots & \cdots & 0 & c & a & b \\ 0 & \cdots & \cdots & \cdots & \cdots & c & a \end{pmatrix}$$      Here $a,b,c$ can be taken to be real numbers, or complex numbers.   In other words, the matrix $M_n(a,b,c) = (m_{ij})_{1 \le i,j \le n}$ is such that $$m_{ij} = \begin{cases} a & i = j, \\ b & i = j - 1, \\ c & i = j + 1, \\ 0 & \text{otherwise.} \end{cases}$$  There does not seem to be an easy pattern to use induction: the matrix is not a diagonal  of the type $M = \bigl(\begin{smallmatrix} A & C \\ 0 & B \end{smallmatrix}\bigr)$ (where we could use $\det(M) = \det(A) \det(B)$ for the induction step), and there are no lines or columns with only one nonzero entry, so  gets complicated quickly.  Is there a general pattern that one could use? Or is the answer only known on a case-by-case basis? It's possible to compute the determinant by hand for small $n$:  $$\begin{align} \det(M_1(a,b,c)) & = \begin{vmatrix} a \end{vmatrix} = a  \\ \det(M_2(a,b,c)) & = \begin{vmatrix} a & b \\ c & a \end{vmatrix} = a^2 - bc \\ \det(M_3(a,b,c)) & = \begin{vmatrix} a & b & 0 \\ c & a & b \\ 0 & c & a \end{vmatrix} = a^3 - 2abc \end{align}$$  But there is no readily apparent pattern and the computation becomes very difficult when $n$ gets large.


I'm trying to figure out how the Photos app works.  I had the idea that each time you start to edit a photo, a sidecar (AAE) file is created.    However, I edited several photos and I couldn't find any AAE files created.  Where are the sidecar files that should have been created?  I'm searching AAE files with a Terminal search: find / -type f -iname *.aae 2>/dev/null  Any help much welcome.

I'd like to know where the sidecar files for Photos are located in the Mac (Finder).    Thank you.


How to show that the set: $$ Z=\{ (\cos t ,\sin t, t) | t \in \mathbb{R}\}$$ is not algebraic?  Thank you

I want to prove that the set $\{(\cos(t),\sin(t),t)\in A^3(\mathbb R); t\in \mathbb R \}$ is not an algebraic set.   I already proved that the set $\{(\sin(t),t)\in A^2(\mathbb R);t\in \mathbb R \}$ is not algebraic but the method that I used doesn't seems to be general.


Also: I don't use wubi, I do have a 8gb USB if you need it, and I can't really backup anything.

I first had windwos 7, then I installed Ubuntu alongside and when my laptop starts I can choose between ubuntu and windows (the ubuntu boot screen) .  Now I have installed another ubuntu inside the windows 7 using virtual box. I want to remove that first ubuntu installation and free up its partiotion. Can I do it without making any problems for the windows and boot screen?


If neither x1 nor x2 is significant for y (y=x1+x2 +x3+𝜀). Is it necessary to make the model y = x1 + x2 + x1*x2 + x3 +𝜀? (In fact, the interaction term X1X2 stands out in my analysis.)

Is it ever valid to include a two-way interaction in a model without including the main effects?  What if your hypothesis is only about the interaction, do you still need to include the main effects?


Let $~f~$ be a non-negative continuous function on $~\mathbb{R}~$ such that $$~\int_{0}^{∞} f(x)~dx~$$ is finite,then $$~\lim_{x\to ∞} f(x) = 0~.$$   Is this statement true? I am trying to find a counter example. And I don't know how it is false.

I'm trying to prove  the following claim:     If $f$ is continuous  and $\displaystyle\int_a^\infty |f(x)|\;dx$ is finite then $\lim\limits_{ x \to \infty } f(x)=0$.   Here the counter example of all these sine functions won't do, since  their infinite integral does not converge absolutely.   Any hints for a proof?


I am sorry this is a bit long, I tried to keep it as short as possible. So please bear with me.  I am currently in the final year of my undergraduate course and am planning to apply for masters in computer graphics, and although I have a significant experience in graphics (by working on shaders and image effects for games as I am heavily interested in game development), I don't have any academic research work, or recommendations in that field and moreover none of the professors in my university are actively working in that field whom I can work with.  I do have research based work in AI and natural language processing including a research paper but only because a lot of my professors and peers were enthusiastic in the field whom I could work with and also I had somewhat interest in that field. But its not something I would want to pursue masters in.  My question is how do I make my application such that I can represent myself as a valuable and worthy candidate for a course in computer graphics even though I have little experience in it. And also will showing in my application (SOP) that I have research work in AI and not in computer graphics weaken it, as it will portray me as someone whose not focused towards this track, or for some other reason? Or would it actually be beneficial to include that?

Can I be admitted to graduate school in a different field from my degree?  Specific cases include:   If I've taken plenty of advanced courses in field X in the process of completing a degree in another field, can I apply to graduate school in X? What if I haven't taken many courses in X, but I have acquired a good grasp of X through self-study or working in a related field? What if I've never studied X, but I have done very well in an unrelated field?  Could I be admitted to graduate school in X on the basis of general intellectual promise, and then make up the missing background after enrollment?   Note that this question is an attempt to provide a comprehensive answer, to avoid the need for a profusion of field-specific questions on this topic (see the associated ). Please feel free to edit the question or answer to improve them.


There are many good answers to my question, but none of them is complete. So I can't accept any. The perfect answer would be created by merging many answers that are already written. What should I do? Create a community wiki answer containing parts of each of the answers and then accept it? Leave the question without any accepted answer?

on StackOverflow, I asked a . There are many good answers but I can not accept just one of it. I would prefer to create my own answer where I summarize all answers. Is that allowed?


I have a computer with 3 OS installed on it :   Blinux Blinux exam Windows 7   (Blinux is a custom version of OpenSuse that we use in my school).  I have recently restored my computer with the image file provided by my school, and updated to the last version of Blinux.  Before the update, the grub looked like this :   Blinux 2.0 STD Advanced options for Blinux 2.0 STD Blinux 2.0 EXAM STD Advanced options for Blinux 2.0 STD Windows Boot Manager   And after the update, it changed to :   Blinux 3.0 STD Advanced options for Blinux 3.0 STD Blinux 3.0 STD Advanced options for Blinux 3.0 STD Windows Boot Manager   So according to grub, the exam partition is gone. Actually it's still here but it is now the first option in grub, the normal Blinux is now the third.  However, the OS names in /boot/grub2/grub.cfg are the correct ones and, in any case, trying to run grub-install /dev/sda to update the configuration file results in:     WARNING! You are trying to invoke the unsupported grub-install script   with a parameter. To really do this, call grub-install.unsupported.   You should rather call "yast2 bootloader" or create configuration   files appropriate for the intended target.   If I run grub-install without /dev/sda as parameter it opens YaST2 so I tried to reinstall grub from it but it didn't change anything.  If I run grub2-install or grub2-install /dev/sdathe installation finishes without problem but it still doesn't change anything.  I think that grub is loading its configuration from another file but I can't manage to find it.  Any guesses?

I am setting up my system. The features of it are:   GPT partition table (not sure how important this is) Triple boot - Gentoo, Debian and Mint. Custom kernel (kernel git repo) shared amounst distros.   Now I am wanting to write my own lines for grub and not have the distros place their own lines in grub. I also don't really want one distro to have the role of creating the grub.conf file.  As everybody is advocating the scripts, there is no one mentioning about hand crafting one. I am fairly sure editing it by hand is safe, so long as I make sure no script touches it.  Another solution that I might be forced into is to configure every distro the same way (no kernels in menu, keep the custom config synced between distros), or just use one distro to manage the boot.  How should I implement this?


And, will may my applications be as is? Am I going to have any compatibilty issues with applications? Is it possible even using a live cd to install the newest version of Ubuntu over the existing one.

can anyone tell me how to upgrade from ubuntu 12.04 to 12.10 from a Cd


I have a shapefile of lines and I would like to know an Arcmap tool to create a new shapefile  with orthogonal lines from the midpoint of that existing line shapes. I know that it is possible to do it manually, but I have so many lines so it would be an impossible way.  Does anybody know an automate way to do it?      Yes, perpendicular lines that cross the middlepoint of the existing lines. An example would be like this:

For an existing set of line features, I would like to generate a perpendicular line, of say 1km, at the midpoint of each existing line feature in ArcGIS.  I imagine that The methodology would be to:   create a tangent line at the midpoint of each existing line feature calculate the angle of the tangent line based on the angle of the tangent line, calculate the location of the endpoint of the new line create the new line with the calculated endpoint of the new line and the existing midpoint of the old line   Let's assume that we are in a UTM projection and can use coordinates to calculate distance and direction.  How would I do this with ArcGIS tools or with ArcPy?


Show that the exponential generating function for  Stirling numbers of the second kind is given by the following relation:  $$\sum_{n\ge k} {n \brace k} \frac{x^n}{n!}=\frac{\left(e^{x}-1\right)^{k}}{k!}$$   $$\sum_{n\ge k} {n \brace k} \frac{x^n}{n!}$$ $$=\sum_{k=0}^{\infty} \frac{1}{k!}\sum_{n=k}^{\infty} \frac{x^n}{n!}\sum_{i=0}^{k}\binom{k}{i}\left(k-i\right)^{n}\left(-1\right)^{i} $$ $$=\sum_{k=0}^{\infty} \frac{1}{k!}\sum_{n=k}^{\infty} \frac{x^n}{n!}\sum_{i=0}^{k}\binom{k}{i}\sum_{j=0}^{n}\binom{n}{j}k^j(-i)^{n-j}\left(-1\right)^{i}$$ Another way I tried: $$\sum_{n\ge k} {n \brace k} \frac{\color{red}{x^n}}{n!}$$ $$\sum_{n\ge k}\color{red}{\sum_{i=1}^{x}\binom{x}{i}i!{ n \brace i}}\color{blue}{{n \brace k}} \frac{1}{n!}$$ $$\sum_{k=0}^{\infty}\color{blue}{\frac{1}{k!}}\sum_{n=k}^{\infty}\frac{1}{n!}\sum_{i=1}^{x}\binom{x}{i}i!{ n \brace i}\color{blue}{\sum_{j=0}^{k}\binom{k}{j} (-1)^{j}(k-j)^n}$$ It would be nice if someone show the relation directly.

I want to prove in particular this result- $$ \newcommand{\gkpSII}[2]{{\genfrac{\lbrace}{\rbrace}{0pt}{}{#1}{#2}}} \sum_{k \geq 0} \gkpSII{2k}{j} \frac{\log(q)^k}{k!} =       \frac{1}{\sqrt{2\pi}} \int_0^\infty \left[       \sum_{b = \pm 1} \frac{1}{j!} \left(e^{\sqrt{2 \log(q)} t}-1\right)^j       \right] e^{-t^2 / 2} dt $$ Hence to start my attempt I found this result that- $$\sum_{k \geq 0} \gkpSII{2k}{j} \frac{z^{2k}}{(2k)!} =       \frac{1}{2 j!}\left[(e^z - 1)^j + (e^{-z} - 1)^j\right]$$ But I couldn't find its proof anywhere. So I need hints/answers to prove the latter result. I found this formula mentioned in a  with this  But I cannot understand anything in that


my HTML is as below:
          perm_identity

one1

two1

three

       Select Service

   I changed the syntax to have the div id "dropdown" inside div id "background_div" (child/parent) because I thought it may help me centre using some sort relative CSS function. I originally had the two divs as siblings... Basically, all i'm trying to achieve is getting the dropdown div smack bang in the middle of the background_div . Be nice to do it in a responsive way too.  Can anyone please provide some CSS script to help me achieve?  Thank you!

How can I horizontally center a
 within another
 using CSS?

Foo foo


The program is running without any error when i'm trying to start Thread from main() but Why i'm getting NullponterException when i'm trying to start Thread from constructor.  class MyThread extends Thread {      static MyThread obj;     MyThread()     {         obj.start();          for(int i=1;i<20;i++)         System.out.println("getName:"+obj.currentThread().getName());     }     public void run()    {        for(int i=1;i<20;i++)      System.out.println("getName:"+obj.currentThread().getName());    }      public static void main(String... s)    {       obj=new MyThread();     } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


when i created shared folder getting error   , The VirtualBox Guest Additions do not appear to be available on this virtual machine, and shared folders cannot be used without them. To use shared folders inside the virtual machine, please install the Guest Additions if they are not installed, or re-install them if they are not working correctly, by selecting Insert Guest Additions CD image from the Devices menu. If they are installed but the machine is not yet fully started then shared folders will be available once it is.

I've recently installed Ubuntu on Oracle's Virtualbox.  Now I want to install the guest additions.  I started up my Ubuntu guest OS, clicked "Devices" and chose "Install Guest Additions". Nothing happened, and I don't see the CD icon on my desktop.  How can I make this work?


The task is on translating. I want to know is it acceptable to use Perfect Gerund (action of the Gerund has happened before the main action) instead of Gerund.     "I've been a bad wife to him", - she thought. "Just yesterday I scolded him for not wiping/not having wiped his feet before he entered the kitchen. I'll never see him again."

I have read in  about perfect gerunds. There are two kind of usage in the website,one about "being" and other about  "having". The website describes about them as follows:     The perfect gerund refers to a time before that of the verb in the main clause . However, it is only used if the time of the action expressed by the gerund is not obvious from the context:   He denied being married. (the simple gerund being refers to the same time as   denied: He denied that he was married.)      He denied having been married. (the perfect gerund having been refers to a time before   denied: He denied that he had been married.)   My question: What's the difference in the meaning between these two sentences? I don't quite understand the definition of this website.


I have a scene which has a spot light as the main light source. To get the scene as bright as I want, I have to set the value for the strength to be quite high, something like 5000. The problem is, some textures get too bright and start losing details.  My question is, is there any way, maybe through nodes, to make an object not being influenced by a certain light source?  Thanks in advance - Marten

Is (or will be) there any sort of light linking in Cycles, or a method to get a light to affect only certain objects that doesn't involve compositing two or more different render layers? Sort of what 3Dstudio does with the Include/Exclude methods.


I have the following json data like this:  var myjson = [{"orders":[              {"id":16,"status":"completed","total":"45.00"},              {"id":17,"status":"completed","total":"55.00"}              ]}];   But I need to be able to get the json data from a remote source with a url like this:  https://example.com/wc-api/v1/orders?consumer_key=ABC&consumer_secret=123   In browser will display the exact same JSON data as above, but how can I use it in my javascript?  There are similar answered questions out there, but none of the solutions seemed to work. Please make it understandable for a beginner with little javascript/jQuery experience, thank you! :)  EDIT:  I tried this solution:  var page_content; $.get( "https://example.com/wc-api/v1/orders?consumer_key=ABC&consumer_secret=123", function(data){     page_content = data; });   I get this error in the console:  XMLHttpRequest cannot load https://example.com/wc-api/v1/orders?consumer_key=ABC&consumer_secret=123. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.   Please help :(

I need to do an  request in JavaScript. What's the best way to do that?  I need to do this in a Mac OS X dashcode widget.


Why would something potentially very dangerous, such as hypoxia induce something pleasurable like euphoria? Are there any evolutionary hypotheses for this link? I'm thinking that something like the  would actually select against it, but that's probably too new.

If a trait would be advantageous to an organism then why hasn't it evolved yet?  Conversely, if a trait is not advantageous or mildly disadvantageous, why does it exist?  In other words why does evolution not make the organism more "perfect"?    This is a general question that would be applicable for any kind of trait. Please keep the answers precise and scientific.   Read this meta post for more information:


I know $H$ is a subgroup. That is easy to verify. But is it a cyclic group? How would I write out the left cosets?   P.S. I used the cycle notation for permutations.

I have an exercise where I am supposed to find the left and right cosets of H = {(1), (12), (34), (12) ○ (34)} in S4. But how do I generate the cosets? As I have understood it you are supposed to pick a number that is not in the set H and multiply it with every number in H. But this does not exactly give the right answer. I would really appreciate it if someone gave an easy to understand explanation of how to generate the left and right cosets.


I am trying to make a website with some basic functionality, which currently just includes a navigation bar and the main content area. I wish for this main content area to take up the remainder of the vertical screen space with the exception of a slight margin on the bottom.  I have tried setting my various containers heights to 100% and that hasn't seemed to work; I was told this is due to the parent element not having a height associated with it (The body element is the parent elements). I have searched around SO and found various answers, but I haven't been able to implement them successfully.   The post most noteworthy is this one:   My issue is that I am hoping that there is a solution to do this without putting everything into an overarching flexbox container.  The following codepin is similar to what my current website looks like:   I wish for this section to be extended to the bottom of the page:

             PLACEHOLDER
             FOR TEXT, AND
             THINGS

I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ }

...

...

     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.


I'm Trying to make a door that opens when you shoot an arrow in the middle, but I can't find a way to add coordinates to the parameters. Is there a way? (the current working command is /testfor @e[type=Arrow] )

What are the basics of Minecraft commands? If I were to start from scratch, with no knowledge on the topic, what are some things that I need to know?


In my controller I have three methods:      public ActionResult DisplayPostsComments()     {         var viewModel = new DisplayPostsCommentsWiewModel();         return View(viewModel);     }       [HttpPost]     public ActionResult DisplayPostsComments(DateTime start, DateTime end)     {         List<PostModel> postList = new List<PostModel>();         var posts = postDAL.GetPost(start, end);         var comments = commentDAL.GetComments(posts);         var viewModel = new DisplayPostsCommentsWiewModel(posts, comments);         viewModel.start = start;         viewModel.end = end;         return View(viewModel);     }       public ActionResult DeleteComment(int commentId, DateTime start, DateTime end)     {         // commentDAL.DeleteComment(commentId);         return RedirectToAction("DisplayPostsComments", new { start = start, end = end });     } }   I expect   return RedirectToAction("DisplayPostsComments", new { start = start, end = end });   to call the second method with parameters. But what I've achieved is a call to the first method. What I'm doing wrong?

When you call RedirectToAction within a controller, it automatically redirects using an HTTP GET.  How do I explicitly tell it to use an HTTP POST?  I have an action that accepts both GET and POST requests, and I want to be able to RedirectToAction using  POST and send it some values.  Like this:  this.RedirectToAction(     "actionname",     new RouteValueDictionary(new { someValue = 2, anotherValue = "text" }) );   I want the someValue and anotherValue values to be sent using an HTTP POST instead of a GET. Does anyone know how to do this?


I know that this will have something to do with Holder's inequality but I am at a loss as to how the $L^p$ and $L^q$ convergence in $f$ and $g$ dictate the convergence in $L^1$. Any help is appreciated.

The question is: if $f_i$ is a sequence of functions in $L^p$ converging to $f$ and $g_i$ a sequence in $L^q$ converging to $g$ show that $f_ig_i$ converges to $fg$ in $L^1$ for $p,q$ finite and $\frac{1}{p}+\frac{1}{q}=1$. Does this result hold if $p=1, q=\infty$?  So I think I showed the first part. $||f_ig_i-fg||_1=||f_ig_i-f_ig+f_ig-fg||_1\leq||f_ig_i-f_ig||_1+||f_ig-fg||_1 = ||f_i(g_i-g)||_1+||g(f_i-f)||_1\leq||f_i||_p||g_i-g||_q+||g||_q||f_i-f||_p$   (by Holder's inequality) which goes to $0$ as $i\rightarrow\infty$.  However the second part of the question throws me off because I don't see why this proof doesn't work just as well for $p=1,q=\infty$.  Am I missing something? Does the second part also hold?


I know 12.10 is no longer supported and that transition period ended in May or July 2014. I simply wanted to upgrade to 13.10, and from there on to 14.05 doing the usual  sudo do-release-upgrade command and everything that comes with it, but it dosen't seem to work. the commandline message I get after a while is   Error during update   A problem occurred during the update. This is usually some sort of  network problem, please check your network connection and retry.   W:Failed to fetch  http://us.archive.ubuntu.com/ubuntu/dists/saucy/universe/source/Sources  404 Not Found [IP: 91.189.91.14 80]  , E:Some index files failed to download. They have been ignored, or  old ones used instead.    Restoring original system state Aborting Reading package lists... Done     Building dependency tree           Reading state information... Done Building data structures... Done    Any ideas on what's going on? The menu from software updater is also giving me the message that the repository can no longer be accessed (since 12.10 is not supported anymore).   What are my options? Thanks

Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc


I'm trying to install Windows 7 from a CD to a HDD connected via USB. Windows complaints about not being able to install itself to USB-connected drives. All guides I found involve downloading a set of files from Microsoft, which include a .bat I should run. However, I only have Linux installed.  Is there a way to install Windows 7 to the HDD without having Windows installed somewhere else in the first place?

I wanted to take a sneak peek at Windows 7 so I thought of installing it. I have Windows Vista on my laptop which came pre-installed with it. I didn't want to mess with it.  So I created a partition (20 GB) in my USB external hard disk and tried to install Windows 7 on that partition. But when I booted from a Windows 7 DVD and selected the target partition on USB hard disk, it said it cannot be installed.  Is there any way to install Windows on an external USB hard disk?


I know people have asked this  but that was like 3 years ago. So my question was if I buy a xBox / PS3 in US then:  1) Will I be able to download games here in India? 2) Will I be able to buy games(cd /DVD) and install and play it? 3) I have a , So my choice was to go for xBox 360. Will this controller work fine with the xBox? 4) Also which console is better for multi-player non-online games. So I can play it with my brother.  Thanks in advance guys!

Are there any issues with an Xbox 360 sent from the US to India?  I'm selling mine on eBay and I'm wondering if the guy will be able to play the games I'm sending along, and would he be able to play on Xbox Live as well? Or login to a Live account?  A friend told me that Microsoft has region-locked Xboxes and so they don't work outside the country of purchase.   Is this true or false?


I was trying to do updates and it only let me do partially. The next time I turned on my computer, it had refused to load and I got this error after a long page of info. I'm a pretty basic user, so I don't know what this is or how to fix it.   The last line of my screen says:    [1.146512] --- [end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)   How do I fix this?

Upon trying to upgrade from 10.10 to 11.04 all seemed to go well until the restart. This error message is what comes up:  Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)   How do we fix that?


I have shifted to Ubuntu only few weeks ago and after setting up Ubuntu my first step was to setup Eclipse for android development. I do not have any knowledge of Linux. I have searched on google and on this website for a comprehensive guide. Most of the guides are for older versions of Ubuntu and most of the instructions are not working for me. As I am not very well-versed in linux so often I had to start over with clean copy of Ubuntu. I have found this  that have ultimately made the android development worked for me.  Hopefully it will help other users too.

What all needs to be done to install Android SDK / ADT Bundle on Ubuntu?  Each of the steps in the answer was found on some different forum as I encountered obstacles getting started with my Android SDK and posted questions in appropriate forums thereafter. So I thought this would be useful in that it is a one stop solution available, in case one ever needs to re-install Ubuntu and install the Android SDK / ADT Bundle from scratch!


I've started learning bash scripting by using this guide:   However I got stuck at the first script:  cd /var/log cat /dev/null > messages cat /dev/null > wtmp echo "Log files cleaned up."   What do lines 2 and 3 do in Ubuntu (I understand cat)? Is it only for other Linux distributions? After running this script as root, the output I get is Log files cleaned up. But /var/log still contains all the files.

I would like a brief explanation of the following command line:  grep -i 'abc' content 2>/dev/null


I'm creating a simple card game where cards are created using random number. I want to use the random number as a score int. Is there a way to add the random number used to generate specif card? For example random number for level:5. Totalscore = totalscore + RandomNumber.  Card Class  public class clsCard {     //Main variables of my program     private int value;     private int level, object;     private final int MaxFaceValue= 10;     private static String[] objects =  {"Joker","hearts","spades","diamond","clubs"};     private static String[] levels = {"Joker","Ace","2","3","4","5","6","7","8","9","10","Jack","Queen","King"};      public clsCard()  {         this.level= (int)(Math.random()*levels.length);         this.object= (int)(Math.random()*objects.length);     }      public @Override String toString() {          if(levels[level].equals("Joker") || objects[object].equals("Joker"))             return "Joker";         else             return levels[level] + " of " + objects[object];     }      public int getLevel() {         return level;     }      public int getObject() {         return object;     } }   Main program  clsCard cardFace = new clsCard();            System.out.println(cardFace);

How do I generate a random int value in a specific range? I have tried the following, but those do not work: Attempt 1: randomNum = minimum + (int)(Math.random() * maximum);  Bug: randomNum can be bigger than maximum. Attempt 2: Random rn = new Random(); int n = maximum - minimum + 1; int i = rn.nextInt() % n; randomNum =  minimum + i;  Bug: randomNum can be smaller than minimum.


Show that the Lie algebras of $SO(4)$ and $SU(2) \times SU(2)$ are isomorphic.  I managed to show that $so(4) = \{A \in M_4(\mathbb{R}) \mid A^T = -A\}$ and $su(2) = \{A \in GL_2(\mathbb{C}) \mid A^\dagger = -A, \text{tr}(A) = 0\}$ with $su(2) \times su(2)$ being the Lie algebra of $SU(2)\times SU(2)$. However I am not able to find any mapping that preserves the Lie bracket structure. I am aware of the Pauli matrices being the generators of $su(2)$ but I can't find similar generators of $so(4)$ that preserve the bracket.

Modified question There was $sl(2,\mathbb R)$ used instead of $su(2)$ in the previous version. Thanks to MattE for pointing it out.  I have seen it claimed many times that $so(4,\mathbb R)=su(2)\times su(2)$. If $C$ is a Cartan subalgebra of $so(2n)$ then the Weyl group on $so(2n)$ is generated by permutations of $(x_1,...,x_n)\in  C$ and by negations of even number of $x_i$s. Hence, for $so(4)$, the orbit of $(x_1,x_2)\in C$ under the Weyl group action is $(x_1,x_2),  (-x_1,-x_2), (x_2,x_1), (-x_2,-x_1).$  The Weyl group of $su(2)\times su(2)$ is the product of Weyl groups of its two components. Hence, the orbit of $(x_1,x_2)$ in a Cartan subalgebra of $su(2)\times su(2)$ under its Weyl group action is $(x_1,x_2), (-x_1,x_2), (x_1,-x_2), (-x_1,-x_2).$  That looks like a contradiction! Where do I go wrong? You can of course reformulate this question for $SO(4,\mathbb R)=SU(2)\times SU(2)$ or $SO(4,\mathbb C)=SL(2,\mathbb C)\times SL(2,\mathbb C).$    Original question    I have seen it claimed many times that $SO(4,\mathbb R)=SL(2,\mathbb R)\times SL(2,\mathbb R),$ However, the orbit of $(x_1,x_2)$ in a max torus of $SO(4)$ under the Weyl group action is $(x_1,x_2), (x_1^{-1},x_2^{-1}), (x_2,x_1), (x_2^{-1},x_1^{-1}),$ while the orbit of $(x_1,x_2)$ in a max torus of $SL(2)\times SL(2)$ under the Weyl group action is $(x_1,x_2), (x_1^{-1},x_2), (x_1,x_2^{-1}), (x_1^{-1},x_2^{-1}).$  That looks like a contradiction! Where do I go wrong?


You have the sequence $(x_{n})_{n\in\mathbb{N}}$, so that for every $n \in \mathbb{N}$, you have to  $$x_ {n}:= \ln\frac{n + 1}{n}$$  Find an explicit formula for the partial sums of the series generated by $(x_{n})_{n \in\mathbb{N}}$ and determine if the series converges.  My development I'm supposed to find a formula that generalizes the sum, so what I did is \begin{align*} S_{n}&=a_{1}+a_{2}+a_{3}+\cdot+a_{n-1}+a_{n}\\&=S_{n-1}+a_{n} \end{align*} thus, \begin{align*} a_{n}&=S_{n}-S_{n-1}\\&=\ln\frac{n+1}{n}-\ln\frac{n}{n-1}\\&=\ln\frac{(n+1)(n-1)}{n^{2}} \end{align*} and you should determine if $ \sum\limits_{n=2}^{\infty}\ln\dfrac{(n-1)(n + 1)}{n ^ {2}} $ is convergent, right?

$\sum_{n=1}^\infty \log \frac{n+1}{n}$  $\sum_{n=1}^\infty \log \frac{n+1}{n}$ =  $\displaystyle\lim_{n \to{+}\infty}(\log2 - \log1)+(\log3-\log2)+...+(\log(n+1)-\log n)$=$\displaystyle\lim_{n \to{+}\infty}\log(n+1)\to \infty$. So, the series diverges.  Is my procedure correct?


I would like to highlight some specific words inside the minted environment when using beamer.   \documentclass[14pt]{beamer} \usepackage{minted}  \begin{document}  \begin{frame}[fragile]{} \begin{figure} \centering \begin{minted}[mathescape,            gobble=2,            linenos,            fontsize=\tiny,            framesep=2mm]{ocaml}   let process il =     let module IV = Instr_visitor in     let visit i t = instrument i t in     IV.map_instr IU.is_mem_write visit il     |> insert_instr_list BEFORE !il_update \end{minted} \end{figure} \end{frame}  \end{document}   For example, for the code below, I would like to highlight the visit at line four and three using red color. I know the solution in lstlisting, but still, I cannot find a solution towards minted environment, could anyone help me on that? Thank you.

I'm currently doing some work on error messages in programming languages. As such, I'm showing faulty pieces of code, alongside the compiler-errors accompanying them.  I'm using minted for the code snippets, but ideally, in addition to normal syntax highlighting, I'd like to highlight the sections of the code at which the error is located, by underlining them, putting a red box around them, shading their background, etc.  Is this possible using Minted?


I want to benchmark my server to the best configuration for Apache and MySql. I want you to ask if do you know any script that simulates various users browsing on the website? PD: I'm using DebianThanks

This is a  about capacity planning for web sites. Related:      What are some recommended tools and methods of capacity planning for web sites and web-applications? Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices that apply to web servers in general.


I used many open-source packages in my research, such as matplotlib, numpy, pandas, scipy, etc. And I found this on the website of SciPy: . Should I cite every one of them in my paper? (I'd like to cite them but there are so many of them which will make my paper even half or one page longer)

When writing a manuscript for a scientific article, I often wonder what software I should cite or acknowledge, and how.  The first problem is to make a choice which software to cite. On the one hand, there is no way to cite all software, as this would mean to cite my whole software stack (Linux, GNU tools, emacs, git, ...). On the other hand, not citing any software is not fair, either. Furthermore, some software explicitly asks to be cited, some software doesn't. Also, some software is really crucial to the results, some isn't. Another important aspect is that citing software is not only about giving credit to the authors of the software, but also to give other scientists hints on what software they might want to use. So, the choice which software to cite is a problem.  The second problem is how to cite the software. Some (scientific) software does provide a classical scientific article that can be cited. However, in this case, no URL to the software is given. Others do not have an associated article. How do I cite these? I have seen people that cite the manual of a software, others just give the URL. What is the way to go?  Another aspect is where to cite the software. Some software can be cited in the course of the articles text, but when it comes to more fundamental software, other places may be more appropriate.  Are there any good ideas out there on any of these aspects?


my girlfriend's location history show her places on different days that she swears she had not been to. I s this info accurate

I have a major problem that I hope someone can help with. On my Google Maps feature under my Location History it shows a location that I was never at at any point, but when my wife happened to see that location she doesn't believe me that the GPS could be wrong and pinpoint that location if I was never there.  I was first wondering myself how could that could be possible if I was never there or my phone was never at that location that was 35 miles away from me and second is there any way I could prove the GPS being wrong? Can I contact Google Maps and can they give an official printout of that certain day and every location I was? I really need to prove my honesty to her and hope there is a way.


Get top record and count?  PKid    |    QId    |    QNumber    |    EmailId    |    FirstName    |    LastName    | 1    |    102    |    A1022    |    jsmith@test.com    |    John    |    Smith    | 2    |    103    |    A1021    |    jsmith@test.com    |    John    |    smith    | 3    |    104    |    A1031    |    jblack@test.com    |    Jack    |    Black    | 4    |    105    |    A1032    |    jblack@test.com    |    Jack    |    black    | 5    |    106    |    A1023    |    jsmith@test.com    |    John    |   I want to fetch records group by name and order by occupation desc and count. Something like this-    S.no    |    QId    |    QNumber    |    EmailId    |    FirstName    |    LastName    |    Count 1    |    106    |    A1023    |    jsmith@test.com    |    John    |    |    3  2    |    105    |    A1032    |    jblack@test.com    |    Jack    |    black    |    2   I tried something like this but no luck---      SELECT     ROW_NUMBER() OVER(         ORDER BY             COUNT(1) DESC     ) AS S_NO,QId,     MAX(QNUMBER) AS QNUMBER,     EmailId,FirstName,LastName     COUNT(1) FROM     TblEmp    GROUP BY     EmailId;

Table:   UserId, Value, Date.   I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date. Is there a way to do this simply in SQL? (Preferably Oracle)  Update: Apologies for any ambiguity: I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date.


There's plenty of discussion and even sage advice out there explaining that a caster need not have Line of Sight (LOS) on a target for their Spiritual Weapon to make an attack. I.e. a paladin can summon their SW and leave the room and still be able to make attacks with the weapon.   But is this still the case for maintaining concentration on the spell if you leave the range of the spell?   Another way to phrase the question might be is the range of the spell only a determinate in the initial casting of the spell, or is the range the max "leash" of the spell to keep it active?

Does going outside the range of the spell or breaking line of sight between the caster and target break concentration or otherwise affect control over the spell?  For example, a Heat Metal spell has a range of 60 ft. If I cast the Heat Metal spell on a an armored foe, and that foe runs outside the range of the spell (60 ft), or around the corner, does that break concentration and end the spell? Heat Metal also allows you to use a bonus action to cause the 2d8 of damage — would exercising that option be prevented by being out of range or line of sight?


Ok, let's take this scenario: Tom and Mary work in the same company. Tom really likes Mary and he wants to love Mary and has very strong romantic affection toward Mary, but Mary always refuses him and has never given any attention to him.   Over time, Tom starts to get depressed since he thinks about his love for Mary all the time, but Mary doesn't care about him. He cannot get Mary's image out of his mind and that makes him depressed.  So, I don't think the word lovesick is suitable since      lovesick = in love, or missing the person one loves, so much that one is unable to act normally   So, lovesick could be two-sided love, but in the above story, there is only one-sided love.   I found the term unrequited love or one-sided love on . However, that term does not express the sickness of the one-sided love.  So, how do I express the idea that a person got sick because they love someone very much but does not receive any attention from that someone?

There is a phrase in French that exactly means this: "la douleur exquise"  It literally means "the exquisite pain" and expresses the  pain of wanting the affection of someone unattainable. I think it is not used as a loan phrase in English and the translation does not make much sense.  Is there an equivalent word or phrase in English?    Note I:      Sometimes, platonic love is used in this sense (though not exactly for the pain) but it is actually an emotional relationship without sexual desires. I'm not sure if there is a semantic shift in the meaning though.     Note II:     “Unrequited love” describes a relationship state, but not a state of mind. Unrequited love encompasses the lover who isn’t reciprocating, as well as the lover who desires. La douleur exquise gets at the emotional heartache, specifically, of being the one whose love is unreciprocated.   Source:


$a$ and $b$ are integers.  $a^2 +b^2+ab$ is a multiple of $9$. I have to prove that $3$ divides both $a$ and $b$.  Converse is very easy. Put $a=3k$ and $b=3l$ and that's it.  I was trying factorisation but didn't get anything from it.

If $a$ and $b$ are integers such that $9$ divides $a^2 + ab + b^2$ then show that $3$ divides both $a$ and $b$.    can anyone tell me please how to solve these types of problem oe which formula is required


Orginal:    It would be nice if in this modern era, Stack Exchange links open in a new tab.  I know that this was voted upon back in 2009, but the times they are a changing and that was six years ago. Several users have discussed this morning that there would be serious advantage in having the Stack Exchange platform do this by default.     It is understood that a userscript could do this, but we prefer a SE internal solution over a browser-script implementation, so for purposes of this revisited discussion we consider that an incomplete solution. Additionally, right click is an insufficient answer; likewise not all users have middle mouse buttons and many use mobile devices.   Thank you for your reasoned consideration of this request and revisiting the topic in a more modern era.

Most of the time when I follow a user's link, I just want to see their site, look it over, then return to answer their question (not leave SO completely and not come back). Could we make the links users post open in a new window please?  EDIT: I originally wanted this implemented because it's what some other sites did, but I now definitely prefer SO's way. If I want to open a new tab, I middle-click/control-click (or whatever); if not, I just click. I'm in control of what happens. Would never want to go back now.


We say a commutative ring $R$ is a chain ring whenever its ideals form a chain with respect to inclusion. I am looking for a chain ring with Krull  dimension two? Thank you for any help.

Recall that a commutative ring $R$ with identity is a chain ring if the set of ideals of $R$ is linearly ordered under inclusion.   I want to know if there a chain ring  with Krull dimension greater than one. Or does every chain ring have Krull dimension at most one?


For educational purposes, our professors have DB25 ports on our laboratory rooms, and of course we can only simulate our assembly codes in there  Our professor said that it might not be possible to control 8 LEDs (terminal D0-D7) using a USB to Parallel Port(DB25) Converter,   We're simulating, for example,  We're sending binary information to the port that would do this:  D0 On D1 On D2 Off D3 On D4 On D5 Off D6 Off D7 On   It would be mov al, 11011001b, as I've said we've done this on PC's that have available DB25 port  Is it possible to send an 8-bit data through a USB to Parallel Port(DB25) Converter?

I am using a laptop ( windows 7 and 64 bit) I bought usb to parallel connector as i want to control the LED's through the data lines of the parallel pin( 25 pins)... So i am trying indirectly to use a LPT port.. please tell me how to go about.. The code works fine on desktop PC when connected to parallel port..


Let $F \subset K$ be a separable extension such that every irreducible polynomial in $F[x]$ has a root in $K$. Show that $K$ is algebraically closed. So I just need to prove that for any polynomial with coefficients in $K$ has roots in $K$. But I've no idea how to solve the problem.

Let $F$ be a perfect field, i.e. every irreducible polynomial over $F$ has distinct roots in the algebraic closure of $F$. Suppose that $K$ is an algebraic extension of $F$ with the property that every non-constant $p(X) \in F[X]$ has a root in $K$.   I want to show that $K$ is algebraically closed, i.e. that $K = \overline{F}$, the algebraic closure of $F$.  If $K$ were a normal extension of $F$, this would follow immediately: Let $\alpha \in \overline{F}$ and $m(X)\in F[X]$ its minimal polynomial. By our assumption, $m(X)$ has at least one zero in $K$. Since $K$ is a normal extension of $F$, it thus contains all other roots of $m(X)$ including $\alpha$.  I don't have an idea as to how to show that $K$ is a normal extension.


i just want to create a list and append elements to it,but i am facing a problem this is what i have tried l=[[]]*4 l[3]+=["aaa"] print(l)  i am getting output of [['aaa'], ['aaa'], ['aaa'], ['aaa']]  but if i do this: l=[[] for i in range(4)] l[3]+=["aaa"] print(l)  i get: [[], [], [], ['aaa']]  can anyone explain me the difference between these two

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


Given that  $f(x)=\sum\limits_{k=0}^n a_kx^k$ is an irreducible polynomial, show that $g(x)=\sum\limits_{k=0}^n a_kx^{n-k}$ is irreducible too. I don't see how this specific coefficient exchange would preserve the irreducibility. Is there something else I should be looking at?

This is what I'm trying to prove:     Let $f(x)\in\mathbb{Q}[x]$ and $\deg(f(x))>1$. Prove that $f(x)$ is irreducible in $\mathbb{Q}[x]$ iff its reciprocal polynomial $f^*(x)$ is irreducible in $\mathbb{Q}[x]$.    Note: The reciprocal polynomial $f^*(x)=x^nf(1/x) \in \mathbb{Q}[x]$, where $n=\deg f$.   So my thoughts are to prove the contrapositive, i.e. $f^*(x)$ is reducible iff $f(x)$ is reducible.   So to prove the ($\Rightarrow$) direction I assume that $f^*(x)=g(x)h(x)$, so I get that $g(x)h(x)=x^nf(1/x)$ which implies $f(1/x)=(1/x^n)g(x)h(x)$. I want to say this somehow makes $f(x)$ reducible but I am unable to proceed as $f(1/x)\notin \mathbb{Q}[x] $. I thought about substituting $y=1/x$, which gives $f(y)=y^ng(1/y)h(1/y)$, but I am unable to show that this is irreducible in $\mathbb{Q}[y]$. If I could, then it would be irreducible in $\mathbb{Q}[x]$ since $\mathbb{Q}[y]\cong \mathbb{Q}[x]$   Any suggestions or hints will be appreciated.


I would like to know if light is affected by gravity, also, I would like to know what is the correct definition of gravity:  "A force that attracts bodies with mass" or "a force that attracts bodies with energy, such as light"?  Is light massless after all?

Light is clearly affected by gravity, just think about a black hole, but light supposedly has no mass and gravity only affects objects with mass.  On the other hand, if light does have mass then doesn't mass become infinitely larger the closer to the speed of light an object travels. So this would result in light have an infinite mass which is impossible.  Any explanations?


Here is my RandomSequence class code:     import java.util.*;  public class RandomSequence implements Sequence {    private ArrayList<Double> random;     public RandomSequence()    {       random = new ArrayList<Double>();     }     public List<Double> firstTenTerms()    {       if(random.size()!=0)       {          while(random.size()>0)          {             random.remove(random.size()-1);          }       }        for(int k=0; k<10; k++)       {          random.add((int)(Math.random()*10)+1.0);       }       return random;    } }   And this is my driver class:     import java.io.;     import java.util.;  public class SequenceMain {    public static void main(String[] args) throws Exception    {       File f = new File("sequence1.txt");       Scanner scan = new Scanner(f);       System.out.println("I'm going to generate a random \"sequence\" and sort it. Here're the first 10 terms of sequence.");       System.out.println(RandomSequence.firstTenTerms());     }     public void ascendingSort(List<Double> alist)     {       Collections.sort(alist);     }  }   When I run the driver class, I keep on getting these error messages:  SequenceMain.java:13: error: non-static method firstTenTerms() cannot be referenced from a static context       System.out.println(RandomSequence.firstTenTerms()); SequenceMain.java:18: error: non-static method ascendingSort(List<Double>) cannot be referenced from a static context   ascendingSort(alist);   There already seems to be quite a few questions related to the non-static methods and static context etc, and I've gone through some of those posts, but frankly, I'm now more confused than before.   Update: Thank you for those who gave me feedback on line 13, but how can I fix 18? I feel that it's a bit different.

The very common beginner mistake is when you try to use a class property "statically" without making an instance of that class. It leaves you with the mentioned error message:     You can either make the non static method static or make an instance of that class to use its properties.   Why? I am not asking for solutions. I would be grateful to know what is the reason behind it. The very core reason!  private java.util.List<String> someMethod(){     /* Some Code */     return someList;             }  public static void main(String[] strArgs){                // The following statement causes the error. You know why..     java.util.List<String> someList = someMethod();          }


Good morning everyone.I want to try to tell you about my flexbox problem.  I searched a lot on the internet (some days), maybe i  maybe i was looking badly on the google ? but unfortunately I did not find the answer to my question. My problem is that when I want to apply persistence align-items: center; for flexbox, it doesn't work. I just want it to auto-center, both horizontally and vertically. <!DOCTYPE html>       <meta charset="UTF-8"> <title>flex-box</title>     <link rel="stylesheet" href="css/flex.css">

Home

Forum

Catalog

     I even went to the official documentation MDN but unfortunately, I didn’t find there how to use  flexbox together with the tag nav and ul, nested in li + a. Very weird. Maybe I don't understand something. * {     margin: 0px;     padding: 0px; }  body {     background-color: #eee; }  .header {     background: white;     width: 100%;     height: 50px; }  .align-header {     width: 800px;     height: 100%;     margin: 0px auto 0px auto; }  .my-ul-links {     display: flex;     justify-content: center;     align-items: center; /* does not working */ }  .link {     padding: 0px 10px 0px 10px; }  li {     list-style: none; }  a {     text-decoration: none; }  I will be very grateful if you can help me with this problem. Thank for early.

I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers?

testing...


This is a followup question to .  I followed the steps written in the answer, but still the wifi won't work.   I had the two files iwlwifi-7265D-13.ucode and iwlwifi-7265-13.ucode, so I renamed them as indicated, but after the reboot the wifi doesn't work.  This is the output of dmesg | grep iwl:  [   24.302073] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-7265D-26.ucode failed with error -2 [   24.333982] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-7265D-25.ucode failed with error -2 [   24.333992] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-7265D-24.ucode failed with error -2 [   24.333996] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-7265D-23.ucode failed with error -2 [   24.497409] iwlwifi 0000:03:00.0: loaded firmware version 22.391740.0 op_mode iwlmvm [   24.508114] iwlwifi 0000:03:00.0: Detected Intel(R) Dual Band Wireless AC 3165, REV=0x210 [   24.510423] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled [   24.510817] iwlwifi 0000:03:00.0: L1 Enabled - LTR Enabled [   24.577697] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs' [   25.075855] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0   I am using ubuntu 16.04 LTS  EDIT as required this is the output of rfkill list all:  0: hci0: Bluetooth     Soft blocked: yes     Hard blocked: no 1: ideapad_wlan: Wireless LAN     Soft blocked: no     Hard blocked: yes 2: ideapad_bluetooth: Bluetooth     Soft blocked: yes     Hard blocked: yes 3: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no

I recently got a lenovo Y40 laptop and after i installed ubuntu 14.04 (also in the live usb) Wireless doesn't work. It says that it is disabled by hardware switch, however the hardware switch doesnt work (its intention is to put on airplane mode but does nothing when pressed in ubuntu) wireless works in windows and the BIOS has it enabled. I tried resetting the BIOS but it still doesn't work. Here are some command outputs  lspci:  03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10) 04:00.0 Network controller: Intel Corporation Wireless 3160 (rev 93)   rfkill list all:   0: ideapad_wlan: Wireless LAN     Soft blocked: no     Hard blocked: yes 1: ideapad_bluetooth: Bluetooth     Soft blocked: no     Hard blocked: yes 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no 3: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no   lswh:     *-network         description: Ethernet interface         product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller         vendor: Realtek Semiconductor Co., Ltd.         physical id: 0         bus info: pci@0000:03:00.0         logical name: eth0         version: 10         serial: f8:a9:63:31:2e:b6         size: 1Gbit/s         capacity: 1Gbit/s         width: 64 bits         clock: 33MHz         capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation         configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-3_0.0.1 04/23/13 ip=192.168.1.4 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s         resources: irq:64 ioport:4000(size=256) memory:c0604000-c0604fff memory:c0600000-c0603fff *-pci:3      description: PCI bridge      product: Lynx Point-LP PCI Express Root Port 4      vendor: Intel Corporation      physical id: 1c.3      bus info: pci@0000:00:1c.3      version: e4      width: 32 bits      clock: 33MHz      capabilities: pci normal_decode bus_master cap_list      configuration: driver=pcieport      resources: irq:59 memory:c0500000-c05fffff    *-network DISABLED         description: Wireless interface         product: Wireless 3160         vendor: Intel Corporation         physical id: 0         bus info: pci@0000:04:00.0         logical name: wlan0         version: 93         serial: a0:88:69:90:0a:38         width: 64 bits         clock: 33MHz         capabilities: bus_master cap_list ethernet physical wireless         configuration: broadcast=yes driver=iwlwifi driverversion=3.13.0-32-generic firmware=22.24.8.0 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn         resources: irq:66 memory:c0500000-c0501fff


Suppose dependent variable has more than two possible discrete outcomes. I wonder what is the difference between fitting a multinomial logistic regression model and several pairwise binary logistic regression models?     Do they return the p-values of coefficients?  # ------- Edit.  I did a comparison between multinational logistic regression and binomial logistic regression in R. They gave a different result. Hope someone could help.  Suppose I am interested in what is the odds ratio of being in pier and beach given one-unit of income increase. Fishing$mode has four classes, beach, pier, boat and charter.  In the multinomial scenario, I used following code to get the p value.  library("nnet") data("Fishing", package = "mlogit") fishing.mu <- multinom(mode ~ 1 + income, data = Fishing) sum.fishing <- summary(fishing.mu) # gives a table of outcomes by covariates for coef and SE # now get the p values by first getting the t values pt(abs(sum.fishing$coefficients / sum.fishing$standard.errors),    df=nrow(Fishing)-6,lower=FALSE)*2 # (Intercept)       income # pier              0 9.271562e-08 # boat              0 8.725280e-06 # charter           0 1.352088e-01   the p value of the coefficient of income is 9.271562e-08. Then I fit a logistic regression using a subset of data, mode%in%c("beach","pier").  mylogit <- glm(mode ~ income, data = Fishing, family = binomial(link = "logit"),                subset=mode%in%c("beach","pier")) summary(mylogit) # Call: #   glm(formula = mode ~ income, family = binomial(link = "logit"),  #       data = Fishing, subset = mode %in% c("beach", "pier")) #  # Deviance Residuals:  #   Min       1Q   Median       3Q      Max   # -1.4658  -1.2976   0.9499   1.0238   1.4920   #  # Coefficients: #   Estimate Std. Error z value Pr(>|z|)     # (Intercept)  7.037e-01  2.126e-01   3.310 0.000932 *** #   income      -1.135e-04  4.817e-05  -2.356 0.018495 *   #   --- #   Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 #  # (Dispersion parameter for binomial family taken to be 1) #  # Null deviance: 426.30  on 311  degrees of freedom # Residual deviance: 420.58  on 310  degrees of freedom # AIC: 424.58 #  # Number of Fisher Scoring iterations: 4   this time, the p value of the coefficient of income becomes 0.018495.   Why does this happen? Did I miss anything?

Lets say we have a dependent variable $Y$ with few categories and set of independent variables.    What are the advantages of multinomial logistic regression over set of binary logistic regressions (i.e. )? By set of binary logistic regression I mean that for each category $y_{i} \in Y$ we build separate binary logistic regression model with target=1 when $Y=y_{i}$ and 0 otherwise.


I've mistakenly pressed a random combination of keys and a dotted square appeared on my artboard, now I don't know what is it or how to remove it. It's not selectable at all, it's just overlapping in front of everything.

It's not part of the artwork and doesn't seem to be hurting anything, but I get this on a lot of client logos and I'm wondering how to get rid of it.   I think it's part of the artboard, but can't find anything to select/change/remove it.


The question:     Prove that $6^n+8^n$ is divisible by $7$ iff $n$ is odd.   Hence, prove $7 | 6^n + 8^n \iff n ~$ is odd  I realise that this is a proof by induction, and this is what I have so far:  \begin{align} f(n) & = 6^n + 8^n \\ & = (2\cdot 3)^n + (2^3)^n \\ & = 2^n \cdot 3^n + 2^{3n} \\ \end{align}  \begin{align} \text{Assume} ~ f(k) & = 6^k + 8^k \\ & = 2^k \cdot 3^k + 2^{3k} \\ f(k+1) & = 2^{k+1} \cdot 3^{k+1} + 2^{3(k+1)} \\ \end{align}  Where do I go from here?

I read somewhere that     $(a^n - b^n)$         It is always divisible by $a-b$.   When $n$ is even it is also divisible by $a+b$.   When $n$ is odd it is not divisible by $a+b$.      and     $(a^n + b^n)$         It is never divisible by $a-b$.   When $n$ is odd it is divisible by $a+b$.   When $n$ is even it is not divisible by $a+b$.      I wonder what's the proof for this.  First postulate is clear. $(a-b)$ would or would not be a factor. Any light on others?


I have the following images produced by the following code:  \begin{figure} [H] \def\tabularxcolumn#1{m{#1}} \begin{tabularx}{\linewidth}{@{}cXX@{}} % \begin{tabular}{cc} \subfloat[Node 3 - Therapy Group 1 (443 patients)]{\includegraphics[width=5.5cm]{3e3}}     & \subfloat[ Node 4 - Therapy Group 0 \& Initial State Group 1 (116 patients)  ]{\includegraphics[width=5.5cm]{3e4}}\\ \subfloat[Node 5 - Therapy Group 0 \& Initial State Group 2 (39 patients)]{\includegraphics[width=5.5cm]{1e5}}     & \subfloat[Node 6 - Therapy Group 0 \& Initial State Group 3 (16 patients)]{\includegraphics[width=5.5cm]{3e6}}\\ \subfloat[Node 7 -Therapy Group 0 \& Initial State Group 34 (8 patients)]{\includegraphics[width=5.5cm]{3e7}}  \end{tabular} \end{tabularx}   How can I 1) Make the caption font smaller 2) get the whole image centered to the middle of the page 3) get the last figure (e) centered with the other above it 4) get them even apart so that the caption would fit in 1 line

This code:  \begin{figure*}[t] \begin{center}         \begin{subfigure}[a]{0.3\textwidth}                 \label{im:device_front}         \includegraphics[width=\textwidth]{images/bsn_side}         \caption{a) Frontal view of the sensor system}     \end{subfigure}                 \quad         \begin{subfigure}[b]{0.3\textwidth}                 \label{im:device_schuin}         \includegraphics[width=\textwidth]{images/bsn_front}         \caption{b) Perspective view of the sensor system}     \end{subfigure}              \quad     \begin{subfigure}[b]{0.25\textwidth}                 \label{im:device_side}         \includegraphics[width=\textwidth]{images/bsn_schuin}         \caption{c) Side view of the sensor system}     \end{subfigure}  \caption{Overview of the system as worn by the subjects} \label{default} \end{center} \end{figure*}   produces result:    But I want them to be vertically aligned. How can I do this?


I need to create program code in python that uses a defined variable from a different subprogram using a simple version:  x = 'ham'  def a():     x = 'cheese'  def b():     print(x) a() b()   How do I get this to save the global variable x as cheese instead of ham?

The following code works as expected in both Python 2.5 and 3.0:  a, b, c = (1, 2, 3)  print(a, b, c)  def test():     print(a)     print(b)     print(c)    # (A)     #c+=1       # (B) test()   However, when I uncomment line (B), I get an UnboundLocalError: 'c' not assigned at line (A). The values of a and b are printed correctly. This has me completely baffled for two reasons:   Why is there a runtime error thrown at line (A) because of a later statement on line (B)? Why are variables a and b printed as expected, while c raises an error?   The only explanation I can come up with is that a local variable c is created by the assignment c+=1, which takes precedent over the "global" variable c even before the local variable is created. Of course, it doesn't make sense for a variable to "steal" scope before it exists.  Could someone please explain this behavior?


My Minecraft crashes when pressing play. Intel core i7 processor, Iris pro Graphics, Nvidia Geforce GTX 960m. The error message I receive is   # A fatal error has been detected by the Java Runtime Environment: # #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff89f54628c, pid=7936, tid=9840 # # JRE version: Java(TM) SE Runtime Environment (8.0_25-b18) (build 1.8.0_25-b18) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.25-b02 mixed mode windows-amd64 compressed oops) # Problematic frame: # C  [ig75icd64.dll+0x55628c] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # C:\Users\nitin\AppData\Roaming\.minecraft\hs_err_pid7936.log # # If you would like to submit a bug report, please visit: #   http://bugreport.sun.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

I go to the Minecraft menu and click on singleplayer to test out the 1.9 update. I made a new world (no mods), it said downloading terrain and then it crashes every time (I've tried about 20 times now).  Has anyone else experienced similar issues and know what the fix may be?  Here is the launcher log:  Completely ignored arguments: [--nativeLauncherVersion, 301] [00:35:12] [Client thread/INFO]: Setting user: Teddy_Cromwell [00:35:12] [Client thread/INFO]: (Session ID is <censored>) [00:35:14] [Client thread/INFO]: LWJGL Version: 2.9.4 [00:35:14] [Client thread/WARN]: Removed selected resource pack resources (no region and battle music).zip because it's no longer compatible [00:35:14] [Client thread/INFO]: Reloading ResourceManager: Default [00:35:15] [Sound Library Loader/INFO]: Starting up SoundSystem... [00:35:16] [Thread-5/INFO]: Initializing LWJGL OpenAL [00:35:16] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org) [00:35:16] [Thread-5/INFO]: OpenAL initialized. [00:35:16] [Sound Library Loader/INFO]: Sound engine started [00:35:18] [Client thread/INFO]: Created: 1024x512 textures-atlas [00:35:26] [Server thread/INFO]: Starting integrated minecraft server version 1.9 [00:35:26] [Server thread/INFO]: Generating keypair [00:35:27] [Server thread/INFO]: Preparing start region for level 0 [00:35:28] [Server thread/INFO]: Preparing spawn area: 5% [00:35:29] [Server thread/INFO]: Preparing spawn area: 8% [00:35:30] [Server thread/INFO]: Preparing spawn area: 15% [00:35:31] [Server thread/INFO]: Preparing spawn area: 21% [00:35:32] [Server thread/INFO]: Preparing spawn area: 27% [00:35:33] [Server thread/INFO]: Preparing spawn area: 34% [00:35:34] [Server thread/INFO]: Preparing spawn area: 42% [00:35:35] [Server thread/INFO]: Preparing spawn area: 48% [00:35:36] [Server thread/INFO]: Preparing spawn area: 56% [00:35:37] [Server thread/INFO]: Preparing spawn area: 66% [00:35:38] [Server thread/INFO]: Preparing spawn area: 74% [00:35:39] [Server thread/INFO]: Preparing spawn area: 81% [00:35:40] [Server thread/INFO]: Preparing spawn area: 91% [00:35:41] [Server thread/INFO]: Preparing spawn area: 98% [00:35:42] [Server thread/INFO]: Teddy_Cromwell[local:E:6d7525a7] logged in with entity id 301 at (244.5, 69.0, 244.5) [00:35:42] [Server thread/INFO]: Teddy_Cromwell joined the game # # A fatal error has been detected by the Java Runtime Environment: # #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fffcf6e6b37, pid=15456, tid=12424 # # JRE version: Java(TM) SE Runtime Environment (8.0_25-b18) (build 1.8.0_25-b18) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.25-b02 mixed mode windows-amd64 compressed oops) # Problematic frame: # C  [ig8icd64.dll+0x16b37] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # C:\Users\Connor\AppData\Roaming\.minecraft\hs_err_pid15456.log # # If you would like to submit a bug report, please visit: #   http://bugreport.sun.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # AL lib: (EE) alc_cleanup: 1 device not closed Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release


When I export that by in Gltf format and open it, just the front side appears on both sides. Can you help me please?  In Blender  In 3D Viewer

I have issue with exporting shaders on blender model. I need to export model with shaders in GLTF . The problem is that shader materials are not exporting - only the main color of Principal BSDF node. I've got an idea from google answers, that shader materials can be exported in GLTF only if the main node will be Pricipal BSDF, that is going directly though material output node. But now i have shader mixer, that goes though material output. Is there any way to change order and plug all shaders to Principal BSDF, that will be plugged directly in material output?


I'm sorry if this is duplicated, but I can not find any answer to it.

Why does the following hold:  \begin{equation*} \displaystyle \sum\limits_{n=0}^{\infty} 0.7^n=\frac{1}{1-0.7} = 10/3\quad ? \end{equation*}  Can we generalize the above to      $\displaystyle \sum_{n=0}^{\infty} x^n = \frac{1}{1-x}$ ?   Are there some values of $x$ for which the above formula is invalid?  What about if we take only a finite number of terms? Is there a simpler formula?     $\displaystyle \sum_{n=0}^{N} x^n$   Is there a name for such a sequence?    This is being repurposed in an effort to cut down on duplicates, see here: Coping with  duplicate questions.  and here: .


I'm aware that (at least today's) English allows the use of a plural pronoun to avoid mentioning a gender of the subject.  Example: _"Everybody can do what they want to" instead of "Everybody can do what he wants to."  A typical use seems to be whenever the speaker does not know the sex of the actors and thus does not want to state it wrong or to let the phrase apply to both sexes alike.  As this example clearly shows, the numerus of the predicate then matches the numerus of the subject: "he wants" vs. "they want".  This leads me to a dilemma if there are several predicates, associated to both the "everybody" and the neutral pronoun:  "Everybody pays for what they get."  The first verb feels better to be in singular case ("pays"), the latter obviously must be in plural case ("get"), yet both refer to the same entity which can hardly be singular and plural.  To use plural case for both verbs ("Everybody pay for what they get") sounds strange in the beginning of the sentence, and the mixed numerus given before sounds a little as if it isn't reflexively meant, i. e. as if everybody has to pay for whatever some other group of individuals ("they") get.  What is the typical solution to my problem?  EDIT: To make this clear:  I'm not asking about the singular they and its use, I'm asking about the "pay" vs. "pays" in my example (i. e. the verb of the "everybody") and about the observed or felt dichotomy of using a plural verb and a singular verb for the same actor in one sentence.  Is there a more detailed answer to that besides "'they' can refer to a singular object and is to be used in plural form"?

Is there a pronoun I can use as a gender-neutral pronoun when referring back to a singular noun phrase?  Each student should save his questions until the end. Each student should save her questions until the end.


Following is my code to test some grammar. I want return a object in try-block and do something in finally-block. But I get NullPointException when I run my code.The cause is using ReentrantLock, but I don't know why.  import java.util.concurrent.locks.ReentrantLock;   public class Main {    ReentrantLock lock;    public static void main(String[] args) {     try {       new Main().run();     } catch (Exception e) {       e.printStackTrace();     }   }    public void run() {       System.out.println(returnTest().get());   }    A returnTest(){ //  lock.lock();     try {       return new A();     } finally { //  lock.unlock();     }   }  }  class A {   public boolean get() {     return true;   } }   If I uncomment lock.lock() and lock.unlock(), I will get NullPointException. Why?

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I'm looking for an easy way to navigate to directories spanning multiple hard drives and want to set something equivalent to a shortcut within the terminal.  In Windows I would accomplish this with mklink and create either symbolic links to jump to the directory, or junctions to append the location to the end of the current file path.  Since this is really just about navigation, it also needn't be a link or anything, maybe there is some environmental variable I could set so that I can cd $myDir (preferable).  Is such a thing possible, or do I just really need to learn my directories better?

I would like to frequently switch between directories that are in totally unrelated paths, for example /Project/Warnest/docs/ and ~/Dropbox/Projects/ds/test/.  But I don't want to type cd /[full-path]/ all the time. Are there any shortcut commands to switch to previously worked directories?  One solution I could think of is to add environment variables to my bash .profile for the frequently used directories and cd to them using those variables.  But is there any other solution to this?


I know how to make a presentation by tex; but I don't know how to insert an image?    What is the code of inserting an image?

How do I create a file in windows from where LaTex can extract the pdf or Jpg file I want to insert in my document? In other words I need an example of inserting either images or pdf files in my document Here's the image I want to insert    The Image will be placed center to the page just beneath this codes  \[ \overline \rho = \overline P + 0.645 \Big (\frac { \overline P}{K}\Big) ^{\frac {3}{4}} \tag { Tazkera} \]


First of all, if my English is not good please pardon me.  Now the problem; when comparing many CPUs with each other, which factor is the best one? For example, there are many various types, like, core to due, dual core, pentium, core ix, and many many other flavors. When I'm at this bad situation I save myself by choosing the best one by their HZ unit . For example, when there are many varous CPUs I say most powerful one is that has bigger frequency unit. 2.66GHZ<2.88GHZ. Is it a true solution?

With lowering silicon costs and rising consumer needs, manufacturers seem to be pushing one of two things: clock speed and/or core count.  With the way things are going, it doesn't seem that clock speed of processors is rising anymore, but the number of processor cores.  I remember only a few years back, I had a nice fast single-core Pentium 4 processor.  Fast-forward to today, and I don't think you can even purchase a single-core processor (not to mention the rising increase in multicore processors even in cellphones).  The way things are going, we might find computers with hundreds of cores in a few years (and I know many operating systems already have support for it).  Is it more beneficial to a system's overall performance to increase the clock speed, or increase the number of cores?  Assume we're getting into hundreds of cores all running together, or clock speeds ten times higher what we have today (regardless of whether or not that is physically possible).  What are some examples of common processes (e.g. encryption, file compression, image/video editing) that will most benefit from one or another?  Are there some processes which can be, but currently aren't (due to technical reasons) sped up by increasing their parallelism?    Assume the hypothetical processor has the exact same core design (word size, address bit width, memory bus size, cache, etc...), so the only variables here are clock speed and core count.  And again, I'm not talking about one, two, or even four cores - imagine tens to hundreds.


I have a simple website set up on godaddy, decided to add emails straight to me instead of through godaddy, started using the phpmailer and I only receive emails from users submitting on my website form if they send an email with gmail. All other emails get ignored. Wonder if it's a godaddy issue.     $connect = mysqli_connect('localhost', 'pf', '*********', 'bs-portf');   if(mysqli_connect_errno()){     echo "Failed to connect" . mysqli_connect_error();   }     if(mysqli_ping($connect)){        // echo "we are connected";     }else{        echo "Error: ". mysqli_error($connect);        die("Connection failed");    } ?> <?php   if(isset($_POST['submit'])){  require 'phpmailer/PHPMailerAutoload.php'; $mail = new PHPmailer();  $name = $_POST['name']; $email = $_POST['email']; $message = nl2br($_POST['message']);  //nl2br() new lines in text message to break tags  $mail->Host='smtp.gmail.com'; // $mail->isSMTP(); $mail->Port=465;  $mail->SMTPAuth=true; $mail->SMTPsecure='ssl';  $mail->Username='bradv@gmail.com'; $mail->Password='**********';  $mail->setFrom($email, $name); $mail->addAddress('bradv@gmail.com'); $mail->addReplyTo('info@example.com', 'Information');  $mail->isHTML(true); $mail->Subject='Form Submission'; $mail->Body= "test email body 1"; // $mail->Body='
Name :'.$name. '
Email: '.$email.  '
Message '.$message. '
'; // echo "submit worked";  if($mail->send()){     echo 'mail is sent';     // $result ="Something went wrong. Please try again."; }else{     echo 'email failed';     // $result="Thanks " .$name. " for contacting us. We'll get back to you  soon!"; }

This is a tricky one and I've always relied on techniques, such as permission-based emails (i.e. only sending to people you have permission to send to) and not using blatantly spamish terminology.  Of late, some of the emails I send out programmatically have started being shuffled into people's spam folder automatically and I'm wondering what I can do about it.  This is despite the fact that these particular emails are not ones that humans would mark as spam, specifically, they are emails that contain license keys that people have paid good money for, so I don't think they're going to consider them spam  I figure this is a big topic in which I am essentially an ignorant simpleton.