How can I save the X-value in a variable? When I run my program with a set of inputs, I get "x <= 0.24" as answer, who is correct. But I'm wondring how i can save "0.24" without the "x <=" This is the values for each variable: aksje = 105, op = <, alfa = 0.02, beta = 0.2, k0 = 100, time = 1  This is mye code: from math import e from sympy import solve from sympy.abc import x  def main():      global aksje, op     aksje = float(input("Type in stock price you want to exam: "))     op = input("Enter what type of operator you want to use: ")   main()  def aksjekurs():      global alfa, beta, k0, time, k     alfa = float(input("Enter a alfa value: "))     beta = float(input("Enter a beta value: "))     k0 = float(input("Enter K0 value: "))     time = float(input("Enter time: "))      k = k0 * (e ** (((alfa - ((1/2) * (beta ** 2))) * time) + (beta * x)))   aksjekurs()  def answer():      if op == "<=" or "<":         s = solve(k <= aksje, x)         print(s)     else:         r = solve(k >= aksje, x)         print(r)   answer()

The canonical way to return multiple values in languages that support it is often . Option: Using a tuple Consider this trivial example: def f(x):   y0 = x + 1   y1 = x * 3   y2 = y0 ** y3   return (y0, y1, y2)  However, this quickly gets problematic as the number of values returned increases. What if you want to return four or five values? Sure, you could keep tupling them, but it gets easy to forget which value is where. It's also rather ugly to unpack them wherever you want to receive them. Option: Using a dictionary The next logical step seems to be to introduce some sort of 'record notation'. In Python, the obvious way to do this is by means of a dict. Consider the following: def g(x):   y0 = x + 1   y1 = x * 3   y2 = y0 ** y3   return {'y0': y0, 'y1': y1 ,'y2': y2}  (Just to be clear, y0, y1, and y2 are just meant as abstract identifiers. As pointed out, in practice you'd use meaningful identifiers.) Now, we have a mechanism whereby we can project out a particular member of the returned object. For example, result['y0']  Option: Using a class However, there is another option. We could instead return a specialized structure. I've framed this in the context of Python, but I'm sure it applies to other languages as well. Indeed, if you were working in C this might very well be your only option. Here goes: class ReturnValue:   def __init__(self, y0, y1, y2):      self.y0 = y0      self.y1 = y1      self.y2 = y2  def g(x):   y0 = x + 1   y1 = x * 3   y2 = y0 ** y3   return ReturnValue(y0, y1, y2)  In Python the previous two are perhaps very similar in terms of plumbing - after all { y0, y1, y2 } just end up being entries in the internal __dict__ of the ReturnValue. There is one additional feature provided by Python though for tiny objects, the __slots__ attribute. The class could be expressed as: class ReturnValue(object):   __slots__ = ["y0", "y1", "y2"]   def __init__(self, y0, y1, y2):      self.y0 = y0      self.y1 = y1      self.y2 = y2  From the :  The __slots__ declaration takes a sequence of instance variables and reserves just enough space in each instance to hold a value for each variable. Space is saved because __dict__ is not created for each instance.  Option: Using a  (Python 3.7+) Using Python 3.7's new dataclasses, return a class with automatically added special methods, typing and other useful tools: @dataclass class Returnvalue:     y0: int     y1: float     y3: int  def total_cost(x):     y0 = x + 1     y1 = x * 3     y2 = y0 ** y3     return ReturnValue(y0, y1, y2)  Option: Using a list Another suggestion which I'd overlooked comes from Bill the Lizard: def h(x):   result = [x + 1]   result.append(x * 3)   result.append(y0 ** y3)   return result  This is my least favorite method though. I suppose I'm tainted by exposure to Haskell, but the idea of mixed-type lists has always felt uncomfortable to me. In this particular example the list is -not- mixed type, but it conceivably could be. A list used in this way really doesn't gain anything with respect to the tuple as far as I can tell. The only real difference between lists and tuples in Python is that lists are , whereas tuples are not. I personally tend to carry over the conventions from functional programming: use lists for any number of elements of the same type, and tuples for a fixed number of elements of predetermined types. Question After the lengthy preamble, comes the inevitable question. Which method (do you think) is best?


After reading up on quantum mechanics considering entangled qubits I was asking myself this simple question:  If one qubit (A) positioned on earth is entangled with another qubit (B) which is - say - a lightyear away, and we perform a bell-measurenment with (B) and an additional qubit (C), it would cause the entanglement of (A) and (B) to break in an instant, or am I wrong? Wouldn't that mean that a communication (say via morse-code) with speed that's exceeding the speed of light from point a to point b is possible? If so, isn't it also possible to communicate from out of a black hole using this method? (disregarding time-dilation).

According to the special theory of relativity, distant simultaneity depends on the observer's reference frame.  And, according to the quantum theory, in the case of two entangled particles, a measure on one of the particles simultaneously affects the second one. Under which reference frame is this simultaneous?


Let $V,W$ normed vector spaces, $V$ not empty and with a finite dimension. Prove that $L(V,W)$ is Banach, then $W$ is also Banach.

Let $V,W$ be normed vector spaces, and $L(V,W)$ be the space of bounded linear operators. Usually I would only see the statement "If $W$ is Banach, then $L(V,W)$ is Banach.". But  writes that there is a converse: "If $L(V,W)$ is Banach, and if $V$ is non-trivial, then $W$ is Banach". This is pretty interesting since I never seen a converse before. I was wondering if anyone has a nice proof.  I tried reversing the proof for the usual direction, but the inequalities can't be reversed. I also tried to start with a Cauchy sequence in $W$, and construct linear operators (using Hahn-Banach to control the operator norms), but alas I cannot say much about the distance between these operators (much less say that it is Cauchy)


I'm trying to make a simple Wallpaper app for iPhone in XCode. Wherein i have a bunch of images in my app, user opens an image that they like, and there is a "Set as Background Image" button.  I have managed to make a library of images. How do i add the "Set as Background Image" funtionality? Please help. I am grateful for any amount of help that i will get.

I have an app which could benefit from the user being able to choose to set an image as the wallpaper (the background image on the "slide to unlock" screen).   Is there a way for non-jailbreak third-party apps to do this? A search for "wallpaper" in the iPhone documentation returns nothing.


Are the laws of logic abstract objects that exist independently of physical things? Are they the same in all possible worlds? Are they man-made constructs, nothing more than ideas in our minds? Or something else?

In contemporary philosophy, how exactly is the nature of logical principles defined? For example, the way I've commonly seen logical principles construed are as true propositions which described the most general laws of reality. The previous definition does seem very intuitive to me; if we understand logical principles as being concerned with truth, and if we accept a correspondence theory of truth, then logical principles simply describe fundamental laws regarding various states of affairs occurring in reality. (e.g. If state of affairs S1 obtains and state of affairs S2 obtains, then state of affairs S3 must also obtain given logical law L).  However, I've mostly heard the previous view expressed among laypersons. I'm interested to know how most philosophers would think about the nature of logical principles.


I'm new to the stock market and was wondering why stocks are so expensive when the dividends are so low. One share of apple costs 127 and its dividend is .22$. What exactly makes it worth so much? I understand that there are non-dividend paying stocks/stocks where dividends are negligible, but what exactly does a buyer see value in if the stock is 127 dollars but they only make .22 a year?

I read somewhere that companies are not required to pay dividends to shareholders (this is correct, yes?).   If so, then if company A never pays dividends to its shareholders, then what is the point of owning company A's stock? Surely the right to one vote for company A's Board can't be that valuable.   What is it that I'm missing?


public class SeamCarving {   public static Seam carve_seam(int[][] disruption_matrix) {     int[][] original = disruption_matrix;     int[][] weighted_matrix = disruption_matrix;     SeamCarving s1 = new SeamCarving();      weighted_matrix = s1.buildMatrix(disruption_matrix);     ....   }   In the above code I have a static method carve_seam. The method takes a matrix. That input is saved in a matrix variable called original. A calculation is performed on the matrix and that is also saved as a variable called weighted_matrix. Both are needed.   Since its in a static method, a new object of the class is made and it is called from that "s1.buildMatrix"  However, that line is doing something that is over my head. This is because afterwards, not only is weight_matrix changed (correctly from the buildMatrix method) but original is also changed to the same exact thing! How does this happen???

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?


I know there's already some feeds on this but I just can't get one straight answer. Everybody says different things.  I have an Asus laptop with a Lithium-polymer.  I do game a lot so what's your opinion.  I want my battery life to last, so wouldn't keeping it plugged in as much as possible do this?  This would minimize the cycles, and I know my laptop cannot overcharge the battery as it only charges up to 97%.  I know overheating is the main factor and I will try to keep that under control.  I guess I have all the information but just want confirmation that keeping my laptop plugged in won't damage the battery.

When I'm at home, is it better to use the laptop plugged into AC power, or with just the battery, for the overall battery life?


As part of my studies on java I'm trying to create a search function, which takes in one parameter String key that correlates to a destination of an object Plane.  Before that I create a Queue of 20 Object each with different parameters and am now trying to search by destination.  This is what I have so far:      public Plane searchDestination(String key)     {         Plane current = first;         while(current.destination != key)         {             if(current.next == null)                 return null;             else                 current = current.next;         }         return current;     }   It returns successful build, but doesn't return an object(s) with matching criteria, I tried adding System.out.println(current); after return current; but compiler throws out an error. I also have a .displayPlane(); function that should display all plane details (and works in other cases), but when I add current.displayPlane(); after my return current; I get an error saying that it is unreachable.  Am I doing the search correctly, or am I missing something out?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


In linux code, i just saw this snippet:  struct elf_thread_core_info {     struct elf_thread_core_info *next;     struct task_struct *task;     struct elf_prstatus prstatus;     struct memelfnote notes[0]; };   struct memelfnote notes[0]; looks new to me. [0] - doesn't it mean 0 elements. Which means it will not allocate any memory at all? If yes, what is the use of having it?

I am working on refactoring some old code and have found few structs containing zero length arrays (below). Warnings depressed by pragma, of course, but I've failed to create by "new" structures containing such structures (error 2233). Array 'byData' used as pointer, but why not to use pointer instead? or array of length 1? And of course, no comments were added to make me enjoy the process...  Any causes to use such thing? Any advice in refactoring those?  struct someData {    int nData;    BYTE byData[0]; }   NB It's C++, Windows XP, VS 2003


I have been trying to pick a good IDE for Python and stick to it.  I looked at this question as well  which lists lots of IDEs, but doesn't tell whether they have the features I am after or not.   I tried Sublime Text and Atom. I was able to get a Python shell on Sublime Text, but that doesn't work sometimes. In Atom, I tried to hack it by adding a package called REPL Term, but that throws an error. PyCharm on the other hand looks heavy and expensive.  So, I was really looking for an IDE with three features:   Being able to display multiple files at once as tabs. Having a Python shell where you can load a script Possibly displaying a file tree.

What IDEs ("GUIs/editors") do others use for Python coding?


Hi i am new for linux i have two files in that one have sequence_id (file_1) and another has sequence_id with sequence (file_1). I have to do if the if the sequence_id (file_1) present in file_1 to be stored in new file.  Example: File_1  lcl|NW_002477239.1_gene_517 lcl|NW_002477243.1_gene_364 lcl|NW_002477248.1_gene_148 lcl|NW_002477249.1_gene_419 lcl|NW_002477249.1_gene_95    File_2  >lcl|NW_002477253.1_gene_1 TGATGGAAGCTTCCAATTCTCCCGACCAACAATCAGTGCTCAGTGAATCTATCCTTGTTAGCGAGTCGCTTGTTCCA >lcl|NW_002477239.1_gene_517 ATGGCTGATTTTGCAAAGGATCCTGCTCTCAACGCAGCATTATCTGCACCATGGGCGTTTCTCTGCCCTACATCAGAATTAAACGATACCATA   Expected output:  >lcl|NW_002477239.1_gene_517 ATGGCTGATTTTGCAAAGGATCCTGCTCTCAACGCAGCATTATCTGCACCATGGGCGTTTCTCTGCCCTACATCAGAATTAAACGATACCATA   Please help me to solve this problem.

list.txt:    58759__len__2903 58759__len__2903 673957__len__1655 673957__len__1655 3566454__len__1744   seq.fasta:  >58759__len__2903 TTTTCCGTAGAGGAGATCCCTATTTTTAGGTTTGTAAGAGATCATTTT >67777__len__2978 TTTTTAGGTTTGTAAGACCGTAGAG >673957__len__1655 CCCTATTTTTAGGTTTGTAAGGTTTGTAAGACCGTAGAG >3566454__len__1744 GGTTTGTAAGACCGTAGAGGGTTTGTAAGACCGTAGAG   output.fasta:  >58759__len__2903 TTTTCCGTAGAGGAGATCCCTATTTTTAGGTTTGTAAGAGATCATTTT >673957__len__1655 CCCTATTTTTAGGTTTGTAAGGTTTGTAAGACCGTAGAG >3566454__len__1744 GGTTTGTAAGACCGTAGAGGGTTTGTAAGACCGTAGAG   Match line from list.txt (if duplicate line, use only unique line) to seq.fasta and extract the FASTA file as shown in output file.


The second question is as follows (the first one is ):     Consider a function of two variables $f(x,y)$ on some compact domain. Let it be convex in $x$ and concave in $y$. Is it true that $f(x,y)$ has a uniqe saddle point (stationary point)? Is $(\hat x,\hat y)=\arg \min_x\max_y f(x,y)$, the argument of saddle point, unique?   Is there any role of being strictly concave (or convex) in this case?   My guess is that $f(x,y)$ owns a unique saddle point because of the convexity and concavity of the function. I also guess that if the function is strictly concave-convex, then, the argument of the saddle point is also unique.

Here is the question:     Consider a function of two variables $f(x,y)$ on some compact domain. Let it be convex in $x$ and concave in $y$. Is it true that $f(x,y)$ has a uniqe saddle point (stationary point)? Is $(\hat x,\hat y)=\arg \min_x\max_y f(x,y)$, the argument of saddle point, unique?   Is there any role of being strictly concave (or convex) in this case?   My guess is that $f(x,y)$ owns a unique saddle point because of the convexity and concavity of the function. I also guess that if the function is strictly concave-convex, then, the argument of the saddle point is also unique.  Any reference for a proof will also suffice. Thx.


According to  a function $f\colon \mathbb{R}^n\to\mathbb{R}^n$ that is continuously, is also locally Lipschitz.  I there someone who knows a good reference which contains a proof of this statement?

Let $f:\mathbb R^d \to \mathbb R^m$ be a map of class $C^1$. That is, $f$ is continuous and its derivative exists and is also continuous. Why is $f$ locally Lipschitz? Remark Such $f$ will not be globally Lipschitz in general, as the one-dimensional example $f(x)=x^2$ shows: for this example,  $|f(x+1)-f(x)| = |2x+1|$ is unbounded.


I want to cast  on a strong creature on my battlefield so that my 's ability will trigger.  The creature that will become the copy is already on the battlefield, but when it becomes a copy of the strong creature, will this trigger my Hamletback Goliath's ability?   For reference, Hamletback Goliath reads:     Whenever another creature enters the battlefield, you may put X +1/+1 counters on Hamletback Goliath, where X is that creature's power.

I was playing a game last night with a guy who was playing a new Simic Gatecrash deck, and he claimed that if he made a land into a creature, it counted as entering the battlefield, thus triggering evolve (or other "enters the battlefield" abilities).  I thought this was incorrect, being that the creature didn't actually enter the battlefield, it was just created.  Which of us was right?


Whenever I respawn, I will either spawn into my map, or outside. This happens everytime, even when I set the worldspawn to the correct location.  Am I supposed to use the sort of contraption where you can play a title when you die, but instead use it to teleport when they are dead?    I'll be very thankful if you could tell me anything!

I am trying to make a Minecraft map but I can't set the world spawn. I did /setworldspawn then /kill and I ended up 10 blocks away then I tried again I was still 5 blocks away.   In the map it needs to keep updating your spawn point and having it not not working correctly is not an option. In one case I set the spawn, and then ended up in the next level of my map, which is clearly not intended.


How can we send a SMS message from a Linux server to mobile for notifying  specific process status saying when a process goes down?

There are scripts that will send an e-mail when a server process is finished.  However, I do not want to check my email every so often just to see whether a job has finished. Therefore I'd like to get an SMS message.  My question is similar to this one, just exchange SMS with all occurrences of "e-mail":   Can you think of any workaround / app / script / whatever that would enable an SMS to be sent when a job is finished (or prematurely ended?)


While studying the basics of arithmetic, I've found one problem that I'm not able to solve:  Let a and m be two integers, $a \geq 2$ and $ m \geq 1$, with greatest common divisor $1$ ($\gcd(a,m) = 1$). Prove that  $$\gcd\left(\frac{a^m - 1}{a -1},a -1\right) = \gcd(a-1, m)$$  As I said, I can't get it... probably it is very easy, but I don't see it. I suppose it should be possible to prove it just from definition and valuation p-adic.  From the definition of gcd, we have   $$\gcd\left(\frac{a^m - 1}{a -1},a -1\right) = \prod_{p \in\Bbb P} p^{\min\left(v_p\left(\frac{a^m - 1}{a -1}\right), v_p(a-1)\right)} $$ where $\Bbb P$ is the set of prime numbers.   We also have  $$ \gcd(m,a -1) = \prod_{p \in\Bbb P} p^{\min(v_p(m), v_p(a-1))} $$   But what to do then?  I've also proved that $$ a^m - 1 = (a-1)\left(a^{m-1} + a^{m-2} + \cdots + 1\right)$$  However, I don't see if I can use it somehow.   I don't want you to solve it for me, but I would appreciate some small hint.   Thank you very much!

How to show that     $$ \gcd\bigg( {a^n-b^n \over a-b} ,a-b\bigg )=\gcd(n d^{n-1},a-b ) $$    $a,b\in \mathbb Z$   where $d=\gcd(a,b)$?    Note $\ $ Some of the answers below were merged from . The answers (and their comments) may depend on context provided in that question.


If someone is injecting MySQL statements to my PHP-based app. I use MySQLi real escape strings, however the attacker simply injects SQL statement. Let's assume:    The attack simply injects a statement:  LIMIT 10  And, even after escaping the strings, the code is executed as follows.  SELECT * FROM ex WHERE id = 1 LIMIT 10

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


Consider the Python code below: def change_list(in_list):     in_list = [1,2,3]  def change_list_append(in_list):     in_list.append(7)   my_list = [1,2,3,4,5,6]  change_list(my_list) print(my_list)  change_list_append(my_list) print(my_list)  The output is: [1, 2, 3, 4, 5, 6] [1, 2, 3, 4, 5, 6, 7]  I don't understand why the first call (change_list) did not result in my_list to become [1,2,3]. Can someone explain? Look at what happens with the call to change_list_append: number 7 is appended to my_list.

When you pass a collection like list, array to another function in python, does it make a copy of it, or is it just a pointer?


$\mathbb{R^w}$ is connected in product topology but what about the path components of $\mathbb{R^w}$ in product topology?

Will product of path connected topological spaces be necessarily path connected? Why or why not?  Give me some hints. Thank you.


What is the probability that I would get either all heads or tails in n coin tosses.  I know, for example, in $4$ tosses, the probability is $\left(\frac12\right)^4=\frac1{16}$ to get either all heads or tails.  But how do I generalize it?  Ty for the assistance!

Tossing a fair coin for $N$ times and we get a result series as $HTHTHHTT\dots~$, Here '$H$' denotes 'head'  and '$T$' denotes 'tail' for a specific tossing each time.  What is the probability that the length of the longest streak of consecutive heads is greater than or equal to $k$? (that is we have a $HHHH\dots~$, which is the substring of our tossing result, and whose length is greater than or equal to $k$)  I came up with a recursive solution (though not quite sure), but cannot find a closed form solution.  Here is my solution.  Denote $P(N,k)$ as the probability for tossing the coin $N$ times, and the longest continuous heads is greater or equal than $k$. Then (For $N>k$)  $$ P(N,k)=P(N-1,k)+\Big(1-P(N-k-1,k)\Big)\left(\frac{1}{2}\right)^{k+1}   $$


I really like the way LaTeX puts text on a4paper (quite large margins), but I need to \usepackage{geometry} to change the layout of my appendix. What options should be used with geometry to make everything (textwidth, margins etc) look identical to what it looks like without \usepackage{geometry}?  Another way to phrase it would be that I want the same output whether \usepackage{geometry} is commented out or uncommented. How is this done?  (I'm rendering PDF's with pdflatex, if that make a difference)

Is it possible, using the geometry package, to store (and restore) the original layout specified by the document class (in my case, the class is report)?    Here is some context.  I have been editing a long document in the default page layout for the report document class.  Now I found out that I need a title page.  There is a particular title page layout, and in fact, it works perfectly if I just load the geometry package with its default and change just two settings.  But then I want the rest of the document back in the original page layout!  I can't do something like \restoregeometry, since I think geometry just overrides the class options... i.e. there doesn't seem to be anything to restore.  Similarly, it seems I can't use \savegeometry or \loadgeometry.  So how can I get back to my original layout for the rest of the document without painstakingly hard-coding in all of the specific page layout variables?    Here is a minimum working example:   \documentclass[a4paper,10pt]{report}  \RequirePackage[a4paper,dvips]{geometry} % g1 \geometry{top=2.5cm,bottom=2.3cm}        % g2  \begin{document}  \input{the_title_page}  \SomeGeometryCommandsHere  % g3  \input{the_rest}  \end{document}   If I run the above code with the lines labeled "g" commented out, then the title page does not have the correct page layout, but the rest of the document is formatted perfectly.    If I leave lines g1 and g2 uncommented, then the title page has exactly the correct layout, but no matter what I put for g3 (e.g. \loadgeometry, \restoregeometry, etc.) I can't recover the original layout that I had when g1 and g2 were commented.  Of course, I could completely specify the original layout exhaustively in line g3, and this should in principle work.  However, I spent almost one hour on this last night and when I still couldn't get it formated correctly I decided I really needed a smarter solution.


i want to know about what is the different between Ajax and Json.  can u please tell me about them?

Is it possible that using jQuery, I cancel/abort an Ajax request that I have not yet received the response from?


I was thinking of writing a script which would tell me:   How often each CSS class defined in my .css file is used in my code Redundant CSS classes - classes never used CSS classes hat are referenced that don't exist.   But I just want to make sure something like this doesn't exist already? Does it?  Thanks

A bunch of CSS files were pulled in and now I'm trying to clean things up a bit. How can I efficiently identify unused CSS definitions in a whole project?


Dear blender community,  So I'm pretty new to blender and general 3d creation and now I rendered my first good project but It has many point where the pixels doesn't belong to or the color of them isn't matching. I can provide a picture for that too. Would be greate if someone could help me. I can provide any additional information if needed. You can see the pixels mostly on the table and at the plant. I could remove some of them when I added another light that directly lights in the room but I don't really want that to be there because the picture is too bright then. Thanks for helping!

I know that this question is a bit old or maybe overdone, but I'm running the latest edition of Blender and when I use the Cycles engine I get really fuzzy results and I can't find a simple, non-compromising solution to the quality.  I don't know exactly what I'm doing wrong here, but I'm sure others share my frustration.  Leaving everything in default settings, I started a new project and switched to the Cycles render.  I duplicated the cube and set colors for two Diffuse BSDF shaders, then went ahead and made walls and a floor all sharing the same diffuse shader.  I made two windows to emit blue light.  The screenshot has gaps between the walls because of the setup:  I'm aware that it's considered very incomplete and many have come to terms with some amount of noise, but is this normal?  Furthermore, with default settings or not, I can't change the amount of noise produced.  Supposedly, using "progressively refine" in the rendering tab should make it refine itself indefinitely, however Cycles only counts to 10 refines and then stops, creating a render which is a pixel-perfect match of the ordinary rendering method when it's completed.  I understand that there are tricks that can be used to reduce noise, but at the cost of extra processing time and usually small quality conflicts, like blurring.  My question essentially boils down to is this Cycles' current limit?


i want to know what is intptr_t ? what means of (_t) ? is it the first word of (tree) or what?  for example in nginx web server , what is ngx_xx_t (_t) ?  what is diffrent between (ngx_xx_t ) and (ngx_xx_s) ? what is (_t) and (_s) ? (Abbreviation)

This seems like a simple question, but I can't find it with the Stack Overflow search or Google. What does a type followed by a _t mean? Such as  int_t anInt;   I see it a lot in C code meant to deal closely with hardware—I can't help but think that they're related.


I want to get wi-fi internet access on a smartphone in a certain place. I have a switch there, it is connected by a 20 meters long network cable to a wi-fi router, the router is connected to the internet. The signal of the router is not strong enough to cover the area where I want to receive the wi-fi signal.  What is the easiest way to get wi-fi connection at that place, where I only have a network cable and a switch?

I currently have a trendnet ac1750 router it sits in one end of the house. Would it be best to get another one for elsewhere im the house or use a access point?   Is there a product that works better with this router?


The real-time network questions page is cool, but could be better. I sometimes see a question I want to open - but it can be tricky because it is moving so fast (mostly Stack Overflow).  Please can there be a pause button somewhere?

There is cool  tab on Stack Exchange portal, showing questions as they're being asked or modified. So far so good. There is a timer running live (got much worse, used to be every 10 seconds in the past) that will update the list, adding new questions on top and pushing all the rest down. Suppose I saw something interesting and I want to click it - I'm not quick enough and while I'm hovering it ready to click, the timer is executed and push it downwards. Fail. Now it's a game of "catch me if you can" which might be fun... or not. Can the timer please be paused while we're hovering the list of questions, at least for a certain amount of time? (in case we just leave the mouse there by mistake) Another option is adding a pause icon:


Is there a way to show only questions with tags that I have selected as favorite?  Since this feature obviously doesn't exist, why isn't it implemented?

Is there a way to filter  based on my Favorite Tags? (not searching)


if(NewItem.itemArray[i][3].equals(itemNO)) {      for (int x = 0; x < 4; x++)     {         NewItem.itemArray[i][x] = null; //Change all the values in the row to null     }   The compiler throws an exception when I try to run the program. What is wrong?  The following is the exception it shows.  Exception in thread "main" java.lang.NullPointerException     at DeleteItem.deleteItem(DeleteItem.java:34)     at EditItemDetails.editItem(EditItemDetails.java:25)     at CD_Universe.editItemDetailsActions(CD_Universe.java:84)     at CD_Universe.main(CD_Universe.java:109)

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?


Show that for all integers $j$, if $d$ is an integer such that $j \mid k+8$ and $d \mid k^2+1$ then $j \mid 65$.  I'm having a lot of trouble, with solving this proof. I first rewrote the equations as,  $$\begin{align*} aj &= k + 8, \\ bj &= k^2 + 1. \end{align*} $$  Then by adding them together,  $$\begin{align*} aj + bj &= k^2 + k + 9, \\ (a+b)j &= k^2 + k + 9. \end{align*}$$  But I am not sure how to proceed from here. Any help would be greatly appreciated.

Let $d=GCD(n^2+5,n^3-5n^2+6n)$ show that $d|630$   My work: $d|n^3+5n,n^3-5n^2+6n\implies\ d|5n^2-n,5n^2+25\implies d|n+25 $ Now I can't go further!!


This is a scenario set up for MCSA training in my homelab, not an enterprise environment.   I'm trying to make changes to add roles to a virtual machine (VM workstation) Server 2012 R2 (running in bridged mode, meaning it gets dynamic IP from physical default gateway dhcp server) from my main Server 2012 R2 physical server from Server Manager, All Servers.   I add the remote server, TESTSERVER1, via manage->add servers and it shows up as such in "All Servers":   Here are the error messages produced:   The main physical server, APOLLO has a static IP but the VM server is dynamic. This is a 255.255.255.0 subnet. This is a workgroup environment.  How can I gain access to TESTSERVER1 so I can make changes to it remotely. When I right click it, "add roles and features" and "restart server" are greyed out. I appreciate any insight, thank you.

I am trying cmd --> MMC --> Server Manager and then connecting to my Server 2012 no GUI  but i keep getting the following error The WinRM client cannot process the request  I am unable to upload images right now  This is not related to other post "How to Remote Manage Windows Server 2012 in Server Manager?" because title and description of that post is quite different from what i am asking


/etc/X11/xorg.conf is not present on Ubuntu 15.10 what should I have to edit?   Video Card: Advanced Micro Devices, Inc. [AMD/ATI]: Wrestler [Radeon HD 6320]  Driver: X.Org X server - AMD/ATI display driver wrapper by xserver- xorg-video-ati Monitor: Samsung s19b150n   The command(s) I run:  cvt 1360 768 xrandr --newmode "1360x768_60.00" 84.75 1360 1432 1568 1776 768 771 781 798 -hsync +vsync xrandr --addmode DVI-0 1360x768_60.00

How can I run the following xrandrcommand on startup?  xrandr   cvt 1368 768  xrandr --newmode "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync xrandr --addmode VGA1 1368x768_60.00 xrandr --output VGA1 --mode 1368x768_60.00


So I'm playing around with a number-sorting program, trying to write the most efficient way possible to order a random list of numbers from lowest to highest.  I'm having trouble after the first number sorting method has been run, the ArrayList passed to the second method is empty. I figure it has something to do with the first methods sorting technique; which finds the lowest value, places it in a new ArrayList, removes it from the mixed one, then starts again.  What I don't understand is that I pass the mixedArray to sortingMethod1, which is in an entirely different class, yet somehow it still edits the local variable in the main method... help please?  P.S. All of this uses ArrayLists, even though I reference array.  Inside The Main Method:  List<Integer> mixedArray = sorter.generateNumbers(numbers, range); sorter.printArray(mixedArray); //The Random Numbers sorter.printArray(sorter.sortingMethod1(mixedArray)); //This prints them out ordered sorter.printArray(sorter.sortingMethod2(mixedArray)); //This receives a null array   Here is sortingMethod1:  public List<Integer> sortingMethod1(List<Integer> mixedArray){  //Finds the lowest, places it into a new array.     List<Integer> sortedArray = new ArrayList<Integer>();     while (!mixedArray.isEmpty()) {         int lowest = mixedArray.get(0);         for (int i = 1; i < mixedArray.size(); i++) {             if (mixedArray.get(i) < lowest) {                 lowest = mixedArray.get(i);             }         }         sortedArray.add(lowest);         mixedArray.remove(mixedArray.indexOf(lowest));     }     return sortedArray;   As requested, sortingMethod2, however it is still untested   public List<Integer> sortingMethod2 (List<Integer> mixedArray) {   // Finds the lowest, places it at beginning         for (int i = 0; i < mixedArray.size(); i++) {             int lowest = mixedArray.get(i);             for (int x = i; x < mixedArray.size(); x++) {                 if (mixedArray.get(x) < lowest) {lowest = mixedArray.get(x);}             }             Collections.swap(mixedArray, i, mixedArray.indexOf(lowest));         }         return mixedArray;     }

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?


For a media site with a lot of content (news/headlines) to display upfront, should the homepage carousel (each slide has an image associated with) rotate automatically or not? Are there any studies that support either answer? Thanks!

Or should the user have complete control? The intention is to have a slider/carousel that shows 6 or 7 images which the user can look through by clicking arrow buttons left or right. But the question has also come up if the user has not started looking through the images, should the carousel start automatically rotating the images. Since this is for a mobile site, I'm uncertain...


We all know the earth is rotating around its own axis. From a physics energy point of view, some thing has to provide energy for the rotation. What provides the energy to rotate?

How do the Planets and Sun get their initial rotation? Why do Venus and Mercury rotate so slowly compared to other planets?  Why does Venus rotate in a different direction to Mercury, Earth and Mars?


I want to ask a question to a specific user on Islam.SE, but I don't have the reputation to create or participate in chat.  How can I ask my question to this user?

This is something I have faced quite recently. Someone very new to Stack Overflow asked a question, but is not able to communicate properly or exactly understand the answers that has been given for his question. He normally clarifies that in comments. But sometimes, it is necessary to have a one-to-one conversation with the one who has given the answer, so that the comments section is not populated with some trivial comments. So, I just felt that it'd be great if the reputation limit for talking in chat is removed.


I understand inline javascripts scattered through html code like the following example is bad  <html>   <head>   </head>   <body>      <p> Foo <script></script></p>   </body> </html>   However, after coding for a while, understanding that loading Javascripts at the end of the document is the best way to go. I do see a lot of the sites that conform to loading scripts at the end of their document, do so in the following manner :  <html>   <head>   </head>   <body>      <p> Foo </p>      <script></script>   </body> </html>   What is not made clear, is why not :  <html>   <head>   </head>   <body>      <p> Foo </p>   </body>   <script></script> </html>   .. as this is outside the body tag which means that the body (in theory) can process faster and still load your scripts before finalizing on </html>.  Or even this :  <html>   <head>   </head>   <body>      <p> Foo </p>   </body> </html> <script></script>   Each variation will have (in theory) different performance results, and/or may break functionality in the page depending on the script contents of course.  Of the above formats, which one is the ideal place to load javascripts that would have the highest performance gain without breaking html ?

When embedding JavaScript in an HTML document, where is the proper place to put the <script> tags and included JavaScript? I seem to recall that you are not supposed to place these in the <head> section, but placing at the beginning of the <body> section is bad, too, since the JavaScript will have to be parsed before the page is rendered completely (or something like that). This seems to leave the end of the <body> section as a logical place for <script> tags.  So, where is the right place to put the <script> tags?  (This question references , in which it was suggested that JavaScript function calls should be moved from <a> tags to <script> tags. I'm specifically using jQuery, but more general answers are also appropriate.)


I have a javascript image gallery which is getting data from an XML file. Im in the process of building a backend function in order for someone else to easy update the gallery. All the data required in the XML file, is available to me from a table in my database.   <?xml version="1.0" encoding="UTF-8"?> <portfolio> <items>      <item>         <thumbnail>images/banner001.jpg</thumbnail>         <preview>images/preview.jpg</preview>         <category>banner</category>         <description>Swatch MTV </description>     </item>     <item>         <thumbnail>images/banner002.jpg</thumbnail>         <preview>images/preview.jpg</preview>         <category>banner,campaign</category>         <description>Nike iD</description>     </item>     <item>         <thumbnail>images/banner003.jpg</thumbnail>         <preview>images/preview.jpg</preview>         <category>banner</category>         <description>Sony Handycam</description>     </item>     <item>         <thumbnail>images/banner006.jpg</thumbnail>         <preview>images/preview.jpg</preview>         <category>banner</category>         <description>Statoil App kampagne</description>     </item>          <item>         <thumbnail>images/design006.jpg</thumbnail>         <preview>images/preview.jpg</preview>         <category>web</category>         <description>Hempel Website design</description>     </item>  </items> </portfolio>   In this regard I have a couple of questions (please keep in mind that im fairly new to php):   which is the better/easier option: update the existing xml file or simply overwrite the entire xml file with newer/updated data? how do I create the same xml format using php?  I have been looking at both SimpleXML and the DOMDocument. Which one is better/easier to use in my case?   I would be grateful for any help you guys can give me. If posting code, please include a short description/explanation.  Please let me know if you need anything clarified.

I have to generate a xml file dynamically at runtime. Please help me in generating the below XML file dynamically using PHP.  <?xml version="1.0" encoding="UTF-8"?> <xml>  <track>      <path>song1.mp3</path>      <title>Track 1 - Track Title</title>  </track>  <track>      <path>song2.mp3</path>      <title>Track 2 - Track Title</title>  </track>  <track>      <path>song3.mp3</path>      <title>Track 3 - Track Title</title>  </track>  <track>      <path>song4.mp3</path>      <title>Track 4 - Track Title</title>  </track>  <track>      <path>song5.mp3</path>      <title>Track 5 - Track Title</title>  </track>  <track>      <path>song6.mp3</path>      <title>Track 6 - Track Title</title>  </track>  <track>      <path>song7.mp3</path>      <title>Track 7 - Track Title</title>  </track>  <track>      <path>song8.mp3</path>      <title>Track 8 - Track Title</title>  </track>


According to  (my emphasis),     In statistics, the standard deviation ... is a measure that is used to quantify the amount of variation or dispersion of a set of data values. A standard deviation close to 0 indicates that the data points tend to be very close to the mean (also called the expected value) of the set, while a high standard deviation indicates that the data points are spread out over a wider range of values.   The purpose of the standard deviation (SD), then, is to tell us how varied or uniform (SD → 0) the data is.  So, given a certain SD, how varied is the data? What does the size of the standard deviation mean?  Please explain the meaning of the SD by interpreting an SD = 1 (M = 0).  If you cannot interpret the size (quantity) of this SD, what other information would you need to be able to interpret it, and how would you interpret it, given that information? Please provide an example.  If, on the other hand, the quantity of the SD cannot be qualified in this manner, my argument is that it is essentially meaningless. If you disagree, please explain the meaning of the SD.       The following are earlier versions to give context to the answers. Unfortunately these didn't really convey what I wanted, and my attempt to ask it elsewhere was closed. (I don't need these versions answered now):  First revision:  What does the size of the standard deviation mean?  For example, if I want to study human body size and I find that adult human body size has a standard deviation of 2 cm, I would probably infer that adult human body size is very uniform, while a 2 cm standard deviation in the size of mice would mean that mice differ surprisingly much in body size.  Obviously the meaning of the standard deviation is its relation to the mean, and a standard deviation around a tenth of the mean is unremarkable (e.g. for IQ: SD = 0.15 * M).  But what is considered "small" and what is "large", when it comes to the relation between standard deviation and mean? Are there guidelines similar to the ones that Cohen gives for correlations (a correlation of 0.5 is large, 0.3 is moderate, and 0.1 is small)?    Original question:  We always calculate and report means and standard deviations. But what does the size of the variance actually mean?  For example, assume we are observing which seat people take in an empty room. If we observe that the majority of people sit close to the window with little variance, we can assume this to mean that people generally prefer siting near the window and getting a view or enough light is the main motivating factor in choosing a seat. If on the other hand we observe that while the largest proportion sit close to the window there is a large variance with other seats taken often also (e.g. many sit close to the door, others sit close to the water dispenser or the newspapers), we might assume that while many people prefer to sit close to the window, there seem to be more factors than light or view that influence choice of seating and differing preferences in different people.  At what values can we say that the behavior we have observed is very varied (different people like to sit in different places)? And when can we infer that behavior is mostly uniform (everyone likes to sit at the window) and the little variation our data shows is mostly a result of random effects or confounding variables (dirt on one chair, the sun having moved and more shade in the back, etc.)?  Are there guidelines for assessing the magnitude of variance in data, similar to Cohen's guidelines for interpreting effect size (a correlation of 0.5 is large, 0.3 is moderate, and 0.1 is small)?  For example, if 90% (or only 30%) of observations fall within one standard deviation from the mean, is that uncommon or completely unremarkable?


In Blender 2.8, the shortcut key to de-select all objects is to double tap the A key twice. Is there any way to change that to just one tap of the A key, like how it was in Blender 2.79?

I'm using the 1-25-19 version of 2.8 beta. You have to double tap "a" every time you want to deselect something which is very annoying. Is there a way to make "a" work the old way where "a" selects all if nothing is selected and "a" deselects all if something is selected? ie. no double tap and no alt?


My friend Boris (Boryan) gave me a task, and completely refuses to give the answer what's wrong here. $$x^2=\overbrace{x+\cdots+x}   ^{x\text{ times}}$$ $$(x^2)'=(x+\cdots+x)'$$ $$2x=1+\cdots+1$$ $$2x=x$$ $$2=1$$ Yeah! I've succesfully copypasted latex formulas!    I think the problem is in non-formal symbols. It brings me to question, what is the result for $(\sum_{i=1}^{x}x)' = ?$ That's usually an obstacle for those who memorised many things without clear understanding of definitions. So, I'm interested in fundamental mistake of this equations, because I want to get out of this mess)

im not good at formatting. May I know why it’s false   $x^2= x+x+x+\ldots(x\; \text{times})$  apply derivative on both sides  $=> \frac{d}{dx}(x^2)=\frac{d}{dx}(x+x+x+\ldots(x\; \text{times}))$  $=> 2x=1+1+1+\ldots(x\; \text{times})$  $=> 2x=x$  $=> 2=1$


Prove that if a abelian group has elements of order $m$ and $n$ then it has a subgroup of order equals to $lcm[m,n]$.  I am new to group theory so please explain....

Let $G$ be abelian, $H$ and $K$ subgroups of orders $n$, $m$. Then G   has subgroup of order $\operatorname{lcm}(n,m)$.   This is a statement that my lecturer mentioned in my (beginners') Abstract Algebra class. I'm not sure I understand why it's true.  What I have so far: Use the abelian group structure theorem on $\langle H, K\rangle$ (finite group generated by $H$ and $K$). Then $\langle H,K\rangle=C_{a_1}C_{a_2}\dotsm$ and $n, m |\langle H,K\rangle$. Which means it's also true that $\operatorname{lcm}(n,m)|\langle H,K\rangle$. Can I leverage this to say there's a subgroup of order $\operatorname{lcm}(n,m)$?


I need to count the number of files under a folder and use the following command.  cd testfolder bash-4.1$ ls | wc -l 6   In fact, there are only five files under this folder,  bash-4.1$ ls total 44 -rw-r--r-- 1 comp 11595 Sep  4 22:51 30.xls.txt -rw-r--r-- 1 comp 14492 Sep  4 22:51 A.pdf.txt -rw-r--r-- 1 comp  8160 Sep  4 22:51 comparison.docx.txt -rw-r--r-- 1 comp   903 Sep  4 22:51 Survey.pdf.txt -rw-r--r-- 1 comp  1206 Sep  4 22:51 Steam Table.xls.txt   It looks like ls | wc -l even counts the total 44 as a file, which is not correct.

How can I use word counter (wc) and piping to count how many files or directories are in the /usr/bin directory?


I am using Adwaita theme and I love it but I just wanted to do some changes in some colors highlights and graphics. yes I can install compizconfig and other software, but I want to understand a little  bit about the files management and things like that.   So what I want in particular is where are the files(directories) in which I can configure the themes?  Second where can I find more technical and programming Information about the themes and things related.  Thanks In advance.

I'd like to make a theme from scratch for Unity.  What knowledge and information/skills are needed? Are there any tools or templates out there for something like this already? I don't have any Python experience so tools biased towards beginners are preferable.


In the top stackoverflow answer to this question (), someone said if you have the following class with a private string,  class Address {   private String phone;  }   then you can't modify the private string using the following code, but I tried it and it works.  // main method Address a = new Address(); a.phone="001-555-12345";   He said you had to use a setter method, but I did it without using one.  I think I misinterpreted his answer, but I'm not sure how. I would appreciate any insight, thanks.

In Java, are there clear rules on when to use each of access modifiers, namely the default (package private), public, protected and private, while making class and interface and dealing with inheritance?


I'm trying to run Ubuntu through virtualbox. but I get this error:       This kernel requires an x86-64 CPU, but only detected an i686 CPU. Unable to boot - please use a kernel appropriate for your CPU.   I'm on a surface pro 2. Surface Pro says it does support virtualization and it is enabled.  one thing I did notice is when Creating the virtual Machine in Virtualbox under the Version menu, it does not give me the option for Ubuntu (64-bit), only regular Ubuntu (which is x86 I suppose?) I don't understand because the surface pro 2 is 64 bit.   Please advise

I was trying to install Ubuntu 12.04 in VirtualBox 4.2.12r84980. I see    this kernel requires an x86-64 CPU, but only detects an i686 CPU, unable to boot   But I am using a 64 bit Windows 8, and trying same .iso for trying Ubuntu. Then what is the problem?


I installed YAPF formatter for Python code. Installation was successfull, no errors. Python 2.7.12  pip install yapf   Can't figure out how to run it: when run yapf -h, I get error 'unknown command'. Same when run python yapf -d file.py  Output of test commands:  $ type -a pip yapf pip is /usr/bin/pip bash: type: yapf: not found  $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin  $ ls -l {~/.,/usr/}local/bin/yapf ls: cannot access '/usr/local/bin/yapf': No such file or directory -rwxrwxr-x 1 username username 213 Jul 25 00:17 /home/username/.local/bin/yapf

after installation with  pip3 install --user steem-piston you will get a new executable piston installed in ~/.local/bin   I installed the tool using pip install, but I cannot find the executable file.  I'm not quite sure I understand what this directory is: ~/.local/bin.  Is it just root/local/bin?


I am learning about programming in C++ specifically dealing with pointers. In the code below, I don't understand why doub(int x) does not change the value of y while both trip(int* x) and quint(int& x) do. I understand that the last two functions both take in the address of the object while first takes in the object. Any explanation or links to resources is greatly appreciated thanks!  #include <iostream> using namespace std;  void doub(int x) {   x = x * 2; } void trip(int* x) {   *x = *x * 3; } void quint(int& x) {   x = x * 5; }  int main() {   int y = 7;   doub(y);   cout << y << endl; // prints 7 why does this not print 14?   trip(&y);   cout << y << endl; // prints 21   quint(y);   cout << y << endl; // prints 105 }

What is the difference between    a parameter passed by reference a parameter passed by value?   Could you give me some examples, please?


About a year ago I visited my US, and needed emergency treatment for a small accident. My insurance company refused to pay for it, and I am unable to cover the bill. it's not a large amount, but large enough.  Should I want to re-visit the US, will I have any issues at immigration while getting in?

While on vacation in the US last year, my wife and I was in a traffic accident. My wife had to spend more than a week in hospital before we could fly home. Our insurance is covering everything, but we keep receiving more bills in the mail. We are forwarding the bills to our insurance company, who tells us that they are taking care of them, but they are probably not paying them immediately (I expect there are a lot of paperwork involved). We can see that some of the invoices have strange addresses on them and have taken a long time to reach us, so we are a bit worried that there might be others that haven't reached us yet.  Also, since the accident was partly my fault, I received a ticket for careless driving, which I have paid.  We are going back to the US in a few weeks on vacation. Can any of this give us problems in immigration or elsewhere? Is there anything we should do or special papers we should bring?


Is there any way to disable screen shortcuts such as Ctrl+Alt+[F1..F4] in Windows 7?

Is there a way to disable certain Windows 7 keyboard shortcuts?  Specifically, in this case, I want to disable Alt+Space and WinKey+Space.


I am currently doing my IB Diploma and we are supposed to make an extended essay on a subject of our choice- and i chose math. my research question is- "how to derive a perfect strategy to always win at the game of Nim?" - it has already been done- i know- but they aren't expecting anything groundbeaking from us- we're 17 year olds. anyway i don't have much knowledge in CGT and i need to know which books could be suitable for my essay. obviously it should include the study of zero sum, two player determnistic games,etc. thanks for the help

What is a good reference material for elementary combinatorial game theory?  By combinatorial game theory I mean chiefly the study of zero-sum, deterministic two-player games (perhaps even more adjectives could be added), with a view to determining which of the players has the winning strategy, and perhaps determining the strategy where possible. Example games that fall under this heading are Nim, Hex, and nearly everything that might appear as a "game" at a mathematics contest.  By elementary I mean not going deep into a general theory, but rather exposing some elegant and accessible examples and ideas. For instance, the discussion of winning strategy for Nim, and the idea of strategy-stealing are topics that I would find welcome.  The request arises from the need to clear up some terminology and find additional examples for a talk that I am to give. Many thanks for all your help.


Last week I typed in a command for /ect/apt/sources.list.d/playonlinux.list into my terminal and ever since then Ubuntu Software Center Keeps crashing.  The report says      <class System Error> (E:Type'<!DOCTYPE' ia not known on line 1 in source list /etc/apt/sources.list.d/playonlinux.list)   I need help to prevent it from crashing.

Every once in a while I see users having issues to update due to errors like this:  E:Type 'ain' is not known on line 1 in source list /etc/apt/sources.list.d/some-ppa.list'   with varying types/line numbers/source list files (often after removing a PPA).  How can such an error be fixed?


Could you please help me understand why the verb "face" is used in the past, in the following sentence, not in the present although the first part of the sentence is describing a future situation? The sentence is : "You’re never going to run in the Olympics. It’s time you faced (up to) the facts." Appreciate you help.

Why do we use the simple past but not the present or future in the following expressions:  Don't you think it's time we went a little further Don't you think it's time we ate Don't you think it's time we went home


Any hints will be appreciated.  Here are some things I thought about:   Since $K_n$ is a complete graph, it must be $(n - 1)$ regular The sum of the degree of all its vertices is $n(n - 1)$ There are $n$ choose $2$ or $\frac{n(n-1)}{2}$ edges in $K_n$   I also thought maybe we can somehow use Kuratowski's Theorem. I just wonder how can I show that if we partitioned the graph into floor(n/6) subgraphs that at least one of its subgraphs must be an edge subdvision of K5 or K3,3, therefore, is nonplanar.  Or maybe if I could prove that at least one of the subgraphs with m vertices will have more than $(3m - 6)$ edges then that would work too. But I don't quite know how to start.  I also don't know if this question is related to the Ramsey' problem.

Why is it impossible to partition the edges in $K_n$ into $\lfloor \frac n6 \rfloor$ planar subgraphs for $n \ge 6$? I'm just stuck at the beginning and can't figure out how to go about this problem.     Thanks in advance for the help!


I want to find a way to backup my system in the manner of storing a list installed packages. I want to be able to reproduce my setup for the case of a reinstall or automatically provision a VM with nearly the same software installed.  So I found out that its possible to export a list via dpkg by  dpkg --get-selections >/backup/package-selections   and than using it on target machine with  dpkg --set-selections </backup/package-selections apt-get dselect-upgrade   Unfortunately this wont work since the list will also contain information of packages I dont want to (re-)install (e.g. kernel images which are already installed or driver for a Nvidia card but target machine has a ATI).  So now Im wondering if there is a smart way to filter the list or decide while exportin or later while importing between necessary packages or not or between low-level-/system-packages and tools or something.  Any Ideas?

I am trying to set up a staging environment in a VM, in order to test updates before applying them to my main system.  In order to do so, I have done a basic installation of Debian Wheezy (same as on the main system) in the VM, then ran as root from within the VM:  # dpkg --clear-selections # dpkg --add-architecture i386 # apt-get update # ssh me@main-system 'dpkg --get-selections | grep -v deinstall' | \   dpkg --set-selections   The i386 architecture is unfortunately needed in my case; the system is amd64 native.  The problem is with dpkg --set-selections run in the VM. I do have some packages that require special handling (those are actually the main reason why I want a staging environment in the first place) but when I run the last command above, I get about a gazillion lines of output like:  dpkg: warning: package not in database at line NNN: package-name   for packages that really should be available in the base system. Examples include xterm, yelp and zip.  Now for my question:  What is the specific process for transferring the package selection list from one Debian system to another (assuming same Debian release level, in Wheezy) and then subsequently applying those changes? The goal is that both have the same list of installed packages, ideally such that doing a diff between the outputs of dpkg --get-selections or dpkg --list on the two comes back showing no differences.  The grep -v deinstall part is borrowed from  over on Ask Ubuntu.  I have changed the source in the VM to be the same as on the main system, also installing apt-transport-https:  deb https://ftp-stud.hs-esslingen.de/debian/ wheezy main non-free deb-src https://ftp-stud.hs-esslingen.de/debian/ wheezy main non-free deb https://ftp-stud.hs-esslingen.de/debian/ wheezy-updates main non-free deb-src https://ftp-stud.hs-esslingen.de/debian/ wheezy-updates main non-free deb [arch=amd64] http://archive.zfsonlinux.org/debian wheezy main   Looking at the --set-selections output, I'm seeing:  dpkg: warning: package not in database at line 1: a2ps dpkg: warning: package not in database at line 1: abiword dpkg: warning: package not in database at line 1: abiword-common dpkg: warning: package not in database at line 1: abiword-plugin-grammar dpkg: warning: package not in database at line 1: abiword-plugin-mathview dpkg: warning: package not in database at line 1: accountsservice dpkg: warning: package not in database at line 1: acl dpkg: warning: package not in database at line 4: aglfn dpkg: warning: package not in database at line 4: aisleriot dpkg: warning: package not in database at line 4: alacarte dpkg: warning: package not in database at line 4: alien ...   The line numbers looked odd, and the corresponding portion of the output of --get-selections is:  a2ps install abiword install abiword-common install abiword-plugin-grammar install abiword-plugin-mathview install accountsservice install acl install acpi-support-base install acpid install adduser install aglfn install aisleriot install alacarte install alien install   Notice that in between acl and aglfn are acpi-support-base, acpid and adduser for which no errors are being reported. It seems that the packages for which errors are being reported are either un according to dpkg -l, or dpkg -l doesn't have any idea at all about them (dpkg-query: no packages found matching ...). I know there are some locally installed packages, but not many. i386 doesn't figure until gcc-4.7-base:i386 install much farther down the list (line 342 in the --get-selections output).


The point release is out but the update manager set to identify LTS releases gives no hint of 16.04.1.  Also setting update manager to "any release" only gives the option for 15.10. Point release was released on 7/21/16.  Today is  7/27.  Is this timing normal?  Is 16.04.1 not a viable LTS? Other threads indicate that a manual acquisition of 16.04.1 is possible.  If the point release bits are out there but update manager doesn't show it via the LTS option is 16.01.4 not a viable LTS?

So, today is July 21st and . gives me an option to download 16.04.1 LTS. However, attempting to upgrade gets me this message -  $ sudo do-release-upgrade Checking for a new Ubuntu release No new release found   What is wrong? Does it matter that I am running apt-get update behind apt-cacher-ng?  Note: Commenting out the files in apt.conf.d that used apt-cacher-ng did not make a difference.  Edit: Explanation for possible duplicates:  deals with upgrade from 12.04LTS to 14.04LTS. My question is specific to 14.04 LTS to 16.04.1 LTS upgrade. Old answers, while good for archival purposes are less relevant in a fast changing package like ubuntu. Moreover none of the answers answer what is wrong. The link  pointed out is mentioned in one of the comments. This Q & A is more helpful for people upgrading today than the work around mentioned in "".


My beautiful road bike was in an accident which bent the fork. It gets replaced with a black fork which doesn't match the rest of the bike (creme colored).  Now I want to attempt to repaint it. Is there a good way to approach this in order to match the color? I have sent the email to the vendor to ask for the color specifications. I hope there is some kind of industry standard when it comes to the color.  Other than that, is there anything else I should prepare? Do I need to remove the black paint first or can I just color over that?

I have painted a couple bike frames (think really cheap garage-find rebuilds) with varying degrees of failure. Can you help me correct/fill in the missing pieces of my frame painting process?   Breaking Down the Bike: Remove everything except the Bottom Bracket, which can be masked. (Removing BB is to easy for me to mess up) Fork can be removed and painted separately. Stripping old paint off a bike frame: Easy enough using scraper, sandpaper, and even super-dangerous paint stripper. Cleaning off Rust: Rust can be sanded off pretty easily, even using tinfoil on sensitive/chrome areas works really well. Masking: Mask the BB, the Fork and Seatpost holes, and anything else that shouldn't be painted. Priming: A few coats of primer is absolutely necessary to fight rust. Painting: Here's where I am lost.  I have heard these options:   Spraypaint/Rattle-Can: Worst Method, use Engine-Coat Epoxy paints, many coats, need to cure for weeks before anywhere near scratch-resistant.  Even then a strong fingernail seems to be able to strip paint. Powder-Coating at an AutoBody shop: Don't know much about the cost EDIT: Costs around $200, according to wdypdx22 below. or pros and cons. Probably not financially feasible on a garage-find bike build, or am I wrong? Other Options?


I want to aproximate my result of an operation to the same amount of decimals of my input number. inclined_plane_f = float(input('F ')) inclined_plane_r = float(input('R ')) inclined_plane_h = float(input('h ')) inclined_plane_l = float(input('L ')) check = cmath.sqrt(inclined_plane_l ** 2 - inclined_plane_h ** 2) if inclined_plane_l == cmath.sqrt(check ** 2 + inclined_plane_h ** 2):     pass else:     raw_inclined_plane_l = cmath.sqrt(check ** 2 + inclined_plane_h ** 2)     dec = len(str(inclined_plane_l).split('.')[1])  I want to make raw_inclined_plane_l to have the same amout of decimals as inclined_plane_l (the input) aproximating it to check if the number of the input was correct.

I want a to be rounded to 13.95.  >>> a 13.949999999999999 >>> round(a, 2) 13.949999999999999   The  function does not work the way I expected.


Solve the recurrence relation  $$f(n) = f(n - 1) + f(n - 2)$$ with initial conditions $f(0) = 2, f(1) = 1$. Give full details.  The following is what I have done: - try $f(n) = r^n$, for some fixed $r$. - $r^n = r^{n - 1} + r^{n - 2}$  - equation = $r^2 - r - 1 = 0$, if $n = 2$

Solve the recurrence relation $f(n) = f(n − 1) + f(n − 2)$ with initial conditions $f(0)=1$, $f(1)=2.$   So I understand that it grows exponentially so $f(n) = r^n$ for some fixed $r$.  This means substituting this $r^n = r^n-1 + r^n-2$ which gives the characteristic equation of $r ^ 2 - r - 1 = 0$. I'm not 100% sure where to move on from here.


Dell Vostro 200 Windows XP service pack 3, 32 bit Intel Core 2 duo CPU @ 2.4 Ghz RAM 2037 MB

I want to uninstall Ubuntu because I just don't like it...  I have windows 7 and no boot disk or anything special to uninstall, when I installed Ubuntu it said easy to uninstall and I would love to know how to actually uninstall it. Thank You.


I have seen a lot of questions about similar situations, but no solution suggested have worked for me. I have broken my packages in 18.04 and now I can't uninstall anything to try and start over. I'll walk you though my process.   When running sudo apt-get remove --purge gazebo9 I get the output  You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: gazebo9-plugin-base : Depends: gazebo9 (= 9.9.0-1~bionic) ib-sim-plugins : Depends: gazebo9 ignition-acropolis : Depends: ignition-gazebo E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).  I do what it suggests and run sudo apt --fix-broken install and attempt to install the ignition-gazebo package. Here is the result:  (Reading database ... 324542 files and directories currently installed.) Preparing to unpack .../ignition-gazebo_1.1.0-1~bionic_amd64.deb ... Unpacking ignition-gazebo (1.1.0-1~bionic) ... dpkg: error processing archive /var/cache/apt/archives/ignition-gazebo_1.1.0-1~bionic_amd64.deb (--unpack): trying to overwrite '/usr/bin/ign-gazebo', which is also in package ignition-gazebo2 2.0.0-2~bionic Errors were encountered while processing: /var/cache/apt/archives/ignition-gazebo_1.1.0-1~bionic_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  Now I try deleting the /var/cache/apt/archives/ignition-gazebo_1.1.0-1~bionic_amd64.deb file. When I try purging gazebo after this I get the same result as before.  Next I try to sudo apt remove --purge ignition-gazebo (which isnt installed so this step was never going to work). This results is the same message as step 1.   I am now left with the puzzle of wanting to remove gazebo (and then all ros-melodic packages which just lead to the same issue) but not being able to because ignition-gazebo is broken and/or missing. Been trying to resolve this absolute mess for 3 days now, does anyone know how to resolve this.  ADDITIONAL: I tried to install the synaptic package so I would have a GUI to do this in, but I can't install it and it gives me the same message as before.

For example:  $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.


On Android there is an app called PVStar+ which is a YouTube player that lets the user play music in the background and turn off video. Is there such an application for the iPhone?

I like to 'listen' to YouTube video in the background while I am surfing on my desktop. However, I cannot do this on the iPad as, as soon as I switch from YouTube video to the browser, the video pauses. Is there a solution for this either in the form of an app or a website?


NOTE Another question was asked  already. This question differs in that it is not about how surrogate pairs are calculated, but how to express unicode planes higher than 0 in a regex. It should be clear from my question that I already understand why these code units are being expressed as 2 characters - they are surrogate pairs (which was what the other question is asking about). My question is how can I convert them generically (since I have no control over what the regex being fed to the program looks like) so they can be consumed by the .NET Regex engine. Note I now have a way to do this and would like to add my answer to my question, but since this is now marked as a duplicate I cannot add my answer.  I have some test data that is being passed to a Java library that I am porting to c#. I have isolated a specific problem case as an example. The character class in the original was in UTF-32 = \U0001BCA0-\U0001BCA3, which is not readily consumable by .NET - we get an "Unrecognized escape sequence \U" error. I attempted to convert to UTF-16 and I have confirmed the results for  and  are what should be expected. UTF-32      | Codepoint   | High Surrogate  | Low Surrogate  | UTF-16 --------------------------------------------------------------------------- 0x0001BCA0  | 113824      | 55343           | 56480          | \uD82F\uDCA0 0x0001BCA3  | 113827      | 55343           | 56483          | \uD82F\uDCA3  However, when I pass the string "([\uD82F\uDCA0-\uD82F\uDCA3])" to the constructor of the Regex class, I get an exception "[x-y] range in reverse order". Although it is pretty clear the characters are specified in the right order (it works in Java), I tried in reverse and got the same error message. I also tried changing the UTF-32 characters from \U0001BCA0-\U0001BCA3 to \x01BCA0-\x01BCA3, but still get the exception "[x-y] range in reverse order". So, how do I get the .NET Regex class to parse this character range successfully?  NOTE: I tried changing the code to generate a regex character class that includes all of the characters instead of a range and it seems to work, but that is going to turn my regexes that are a few dozen characters into several thousand characters, which surely isn't going to do wonders for performance.  Actual Regex Example Again, the above is an isolated example of a failure in a much larger string. What I am looking for is a general way to convert regexes like these so they can be parsed by the .NET Regex class. "([\\u0000-\\u0009\\u000B\\u000C\\u000E-\\u001F\\u007F-\\u009F\\u00AD" + "\\u061C\\u180E\\u200B\\u200E\\u200F\\u2028-\\u202E\\u2060-\\u206F\\uD800-" + "\\uDFFF\\uFEFF\\uFFF0-\\uFFFB\\U0001BCA0-\\U0001BCA3\\U0001D173-" + "\\U0001D17A\\U000E0000-\\U000E001F\\U000E0080-\\U000E00FF\\U000E01F0-\\U000E0FFF] " + "| [\\u000D] | [\\u000A]) ()"

Regex.IsMatch( "foo", "[\U00010000-\U0010FFFF]" )    Throws: System.ArgumentException: parsing "[-]" - [x-y] range in reverse order.  Looking at the hex values for \U00010000 and \U0010FFF I get: 0xd800 0xdc00 for the  first character and 0xdbff 0xdfff for the second.  So I guess I have really have one problem. Why are the Unicode characters formed with \U split into two chars in the string?


Using a hypothetical photo from a hypothetical telescope, we were able to determine that the farthest galaxy present in the photo is 1 billion light years away. Because we are awesome we were able to also tell which direction all the galaxies in the pic are moving. We are also capable to estimate the mass of the galaxies.  In possession of these information aren't we capable to locate their "source", aka the local of the big bang? In another words, can we, in possession of objects current position, mass and relative speed tell where they were?

If the big bang was the birth of everything, and the big bang was an event in the sense that it had a location and a time (time 0), wouldn't that mean that our universe has a center?  Where was the big bang? What is there now? Are we moving away from the center still? Are these even valid questions?


In Ubuntu 14.04, when I try to install steam via .deb file, it shows:  Steam needs to install these additional packages: libgl1-mesa-dri:i386, libgl1-mesa-glx:i386, libc6:i386   Then it asks for my password. I input my password, the terminal loads, and then says this:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 10.1.3-0ubuntu0.5)  unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed                         Depends: libcheese7 (>= 3.0.1) but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages."   The packages don't seem to want to install. Any input?  I am an Ubuntu novice. Please be specific with commands.

I have tried some of the solutions posted elsewhere in the support forum, one seemed like it worked but after a steam update i found myself back at square one  I am a new Linux user and am already at a learning curve :)  Thanks for any help  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libgl1-mesa-glx:i386 : Depends: libglapi-mesa:i386 (= 10.1.3-0ubuntu0.3)  unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed                         Depends: libcheese7 (>= 3.0.1) but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. Press return to continue:


As I see that the noun 'motivation' is both -countable and uncountable, I'm confused whether or not I should use an article before it.  For example, which sentence seems correct?     Hussein has strong motivation.   Or     Hussein has a strong motivation.

Can you tell me which one is grammatical and why ?     When you start learning a new language, you need a strong motivation.    Or      When you start learning a new language, you need strong motivation.


I'm writing a software in C# WPF with the framework 4.6.  I need to convert some HTML to text.  The easiest way seems to be by using the HttpUtility.HtmlDecode() method in the System.web library.  I can add this library with using System.Web, but it seems HttpUtility it still unrecognized.  How can I fix this ?  Edit : I also added the reference by the treeview in the solution explorer and it worked. I don't understand why though. I think it could be usefull to someone one day as I didn't find this solution there.

I have email addresses encoded with HTML character entities. Is there anything in .NET that can convert them to plain strings?


This may be the wrong topic since I'm working on Windows 7 with VirtualBox and my VM is an Ubuntu 17.  I'm trying to share a directory between my Windows and my Ubuntu.   This works fine with these steps :   In VirtualBox > Devices > Shared Folders : I add a share   Folder path : my directory on Windows (ie : C:\dev\windows-shared) Folder name : vbox_shared And I check "Auto-mount" and "Make Permanent"  Now, in a terminal in Ubuntu, I run :  sudo mount -t vboxsf vbox_shared /home/osboxes/ubuntu-shared   And it works : I can add a file in Windows and see it in Ubuntu and vice versa.  The problem is if my "ubuntu-shared" directory already contains files : after the mount command, the directory is "empty" (and the directory is now under root:root).  If I umount, files in the directory are back (of course).  So : 1) is there a way to mount on an existing (not empty) directory without "losing" its content ? or 2) less ubuntu relative : is there a better way to share a folder on VirtualBox ?  Thanks !    EDIT - SOLVED :  As found in , the correct command to run in the terminal should be:   sudo mount -t vboxsf -o uid=1000,gid=1000 vbox_shared /home/osboxes/ubuntu-shared       where the option -o makes sure that you will have access to the mount (that will otherwise be owned by root)."

I have Ubuntu 10 as the guest OS on a Windows 7 machine.  I have been trying to setup shares through VirtualBox, but nothing is working.  First, I create the share in VirtualBox and point it to a Windows folder.  Then I try to mount the drive in Linux, but I keep getting /sbin/mount.vboxsf: mounting failed with the error: Protocol error  I have read so many solutions to this, but none seem to work.  I have tried:  Using the mount.vboxsf syntax Reinstalling VBox additions Rebooting Enabling and trying as root account  I made a share called "Test" in VBox Shared folders.  Then I made a directory in ubuntu named "test2".  Then I tried to execute this command: sudo mount -t vboxsf Test /mnt/test2  Any other ideas?


Use stokes theorem to show that:  $$\int_c ydx + zdy +xdz = -\sqrt{3} \pi a^2$$  Where c is the suitably oriented intersection of the surfaces $x^2 + y^2 +z^2=a^2$ and the plane $x+y+z=0$.

I am a little stuck on the following problem:  Use Stokes's Theorem to show that  $$\oint_{C} y ~dx + z ~dy + x ~dz = \sqrt{3} \pi a^2,$$  where $C$ is the suitably oriented intersection of the surfaces $x^2 + y^2 + z^2 = a^2$ and $x + y + z = 0$.  OK, so Stokes's Theorem tells me that:  $$\oint_{C}\vec{F} \cdot d\vec{r} = \iint_{S}\operatorname{curl} \vec{F} \cdot \vec{N} ~dS$$  I have calculated:  $$\operatorname{curl} \vec{F} = -\vec{i} - \vec{j} - \vec{k}.$$  I then figured that on the surface $S$ we must have:  $$\vec{N}dS = \vec{i} + \vec{j} + \vec{k}dxdy$$  since this follows from the equation of the given plane.  However this will then give me:  $$\operatorname{curl} \vec{F} \cdot \vec{N} = -1 -1 -1 = -3$$  And thus I would get, if project this onto the $xy$-plane:  $$\iint_{S} \operatorname{curl} \vec{F} \cdot \vec{N} ~dS = -3 \iint_{A} dA = -3 \pi a^2$$  which is obviously not correct.  I would greatly appreciate it if someone could help me with this.  I actually had multivariable calculus a few years ago, and I know that I knew this stuff then.  However, now that I need it again I notice that I've become quite rusty.  Thanks in advance :)


I'm trying to track down a book I borrowed form a library in the UK around 2000/2001. Here are the details I remember:  The story is set in a fantasy world; no connections to our world The main characters are four children who have no connection initially but are brought together over the course of the story The children are all taken in by an elderly woman who starts to develop their magical skills Each of the children has a different type of magic: one is nature, another is related to fabric or clothes A significant plot point is the girl with nature based magic takes in and rears a baby bird. A lot of time is spent discussing how much work it will be to care for this animal The title may have something to do with weaving or thread but I might be confusing this with another story

I am trying to remember a young adult series I read perhaps 15 years ago, but I don't remember many details. One of the characters was named Briar. As I recall, there are four main characters that channel elemental power, and they have a meditation routine to unlock this power where they inhale and exhale to a seven count. Sorry it's not much to go on, I will try to add more details if I remember any.


I use this character to type the name of employee in my program vb6, but I can't type it. When I type alt+164 the letter c is appearing instead of ñ. How can I type this one? Is it on my program or on my computer? But I can type ñ in my computer in other applications e.g word,notepad.

I have some customers who want to use our speech therapy software in Hebrew.  The programs are in VB6. The best option I'm aware of are:   use the Forms 2.0 controls from MS Office, but you can't distribute them.    $899   $499   Any other options?


Good Afternoon Everyone,  I have a few question about amperage sizing. I am looking to install a tankless water heater in our home because its a small home and the current tank water heater is placed right next to the kitchen and upgrading to a tankless water heater would allow the addition of a very much needed pantry to the already small kitchen. Well in preparation to the project I wanted to make sure I had the amperage availability to do so and thus the research started and I have a few questions I couldn't find answers to.  One post a read (I cannot find the link) said that modern houses can have a "dual pole" incoming electrical service, so the home actually can have double total available amperage than what is listed. I think the poster was either misleading in his explanation or I am not using the right search terms to find more information on this. Is this a possibility?  I did information gathering and found the rated amperage of all of the major devices in the home and they totaled 176.8 AMPs which is about 88% of the total 200 AMPS my home is currently rated for. Is the AMPs listed in the the maximum amount the devices can pull (such as when the device is first turned on) or is this the average running amperage?  The tankless water heater I want to get is the ECOSMART ECO 24, which has an amperage draw of 100 AMPS.

I’m having a pool put in and the pool guys said they need a 20 amp breaker for the pool equipment. My outside panel says 100 amps (see picture). But my panel inside adds up well over 100 amps. Is this normal?  The breakers never trip even with the dryer, AC, and other appliances running.


I have a couple thousand polygons across several hundred towns.  I want the polygons within each town be labelled as such - first 3 letters of town name + _ + incrementing ID, so that they might look like this:  Ale_01 Ale_02 Bur_01 Bur_02   And so on.    Using the Python Parser of the Field Calculator, I have tried using an augmented version of the standard ID incrementing script floating around (pasted below):  prev_town = ""  rec=0  def autoIncrement(%Town%):   global rec  global prev_town  if town != prev_town:   rec = 0   pStart = 1    pInterval = 1   if (rec == 0):     rec = pStart    else:     rec += pInterval    id = town[0:3] + "_" + str(rec).zfill(2)  return id   The problem is that, the records within and across towns, were added at different times (i.e. Bur_01 was added before Ale_02), so that even after sorting by town, when applying the above script, I can get repeat ID (Ale_01 twice) due to the fact that the field calculator is applied in the order of ObjectID, and it doesn't (of course) keep track of previous IDs.  So, I have tried to augment the above code like so:  prev_town = "" rec=0  ids = [] id = "" def autoIncrement(town):   global prev_town  global rec  global ids  global id  if town != prev_town:   rec = 0  pStart = 1    pInterval = 1   if (rec == 0):     rec = pStart    else:     rec += pInterval  id = town[0:3] + "_" + str(rec).zfill(2)  while( id in ids):   if town != prev_town:    rec = 0   pStart = 1     pInterval = 1    if (rec == 0):      rec = pStart     else:      rec += pInterval   id = town[0:3] + "_" + str(rec).zfill(2)  ids.append(id)  return id   But, this seems to hang and never complete - so I can't even tell if it is working or not....  Also, this data layer is a feature service, so I am trying to do this on a local replica and sync back - that of course brings with it its own limitations.  Any suggestions?

I am needing to auto increment a field based on groups within a feature class. I have 8 plots within a given polygon and I need to assign them an ID from 1-8 for each set of plots within each polygon. The polygon would have its own unique ID number to be used to group the plots.  I assume it would be an alteration of this:  rec=0 def autoIncrement():  global rec  pStart = 1   pInterval = 1   if (rec == 0):    rec = pStart   else:    rec = rec + pInterval   return rec


I have a question. What does this phrase mean "I'll be home by ten", because it is confusing, especially when used with "at" instead of "by". When it comes to sentence stress which words should I stress more?

I asked my bank to close my account on 12th of May. Also     I expect the account to be closed [?] 12th of May   . What preposition should be there? I think about by or due. Also if I want to ask someone a question: What date was your account closed [missing preposition?]


I just started to learn LaTeX, and I have to do some documentation with it.  However, the guy editing the TeX manuscript of the documentation before me didn't pay attention to word wrapping, so long lines aren't wrapped at all at the moment.  What is the best way to do auto-word-wrap (based on the margin, if possible)?  Improve/Edit: I use verbatim, and the word wrap I mean is the output-file

I want to generate a PDF of user-submitted text using LaTeX. To handle crazy user input, I first thought about using the verbatim package, but of course it doesn't break up too long lines. Is there some package that works similar to verbatim (i.e., accept any input) but formats the text nicely?


do{     cout << "your number"; cin >> z;      if (z > 4){     cout << "invalid answer" << endl;}    else if (z == 4){    cout << " no" << endl;}    else {    cout  <<"great!"   << endl; } } while (z != 3, 2, 1); }   In my oppinion it's: bring up "your number" until z is 3 or 2 or 1? What's wrong?'

How does the comma operator work in C++?  For instance, if I do:  a = b, c;     Does a end up equaling b or c?   (Yes, I know this is easy to test - just documenting on here for someone to find the answer quickly.)  Update:  This question has exposed a nuance when using the comma operator.  Just to document this:  a = b, c;    // a is set to the value of b!  a = (b, c);  // a is set to the value of c!   This question was actually inspired by a typo in code.  What was intended to be  a = b; c = d;   Turned into  a = b,    //  <-  Note comma typo! c = d;


A relative of mine traveled to Spain with a Turkish passport from South America. She didn't knew she needed a visa for Spain and was allowed boarding by the airline.  Upon arrival she was held in a "detention room" uncommunicated for 24 hours (she was treated well by Spanish authorities though) until she was deported for failing to have the correct documents.  As standard procedure she was assigned a lawyer who told her that airlines pay penalties when this happens.  My question is, can she request a refund for being allowed boarding despite being inadmissible?

My daughter bought a ticket for a flight with a layover in Emirates (from Dallas, Texas to India). She had a stop of 48 hours in Dubai. When she was checking in in Dubai for Delhi, she was informed that her visa for India has expired in 2012. Did Emirates not have an obligation to check the visa for India before selling a ticket?


Other posts I've seen mostly seem to refer to special/modifier keys.  Is there a way to remap the a key to something else?   Cinnamon 17, 64-bit. I have a Japanese win keyboard.

I'm searching for a way to remap certain keys in ubuntu.  i.e.   I'd like to change PgUp to Home or PgDown to End.  Does a built-in command or a tool exist reassign keys in Ubuntu/GNOME?


I made a small operator which lets you change the ui_type.    The question is how can I change this menu, not only the layout but also the spawn position? I want it to behave the same way when you click the adjust last operation operator.  import bpy    class SM_change_area_type(bpy.types.Operator):      bl_idname = 'sop.sm_change_area_type'     bl_label = "S.Menu Change Area Type"     bl_description = 'best description ever'     bl_options = {'REGISTER', 'UNDO'}      areas = [         ("VIEW_3D","View 3D",""),         ("VIEW","Image Editor",""),         ("UV","UV Editor",""),      ]     #ShaderNodeTree, CompositorNodeTree, TextureNodeTree     type_enum: bpy.props.EnumProperty(name="Areas", items=areas)     chose_from_list: bpy.props.BoolProperty(name="Chose area Type:", default=True)     a_type: bpy.props.StringProperty(name="Change area to:", default='UV')     test: bpy.props.StringProperty(name="test:")       def execute(self, context):         context = bpy.context         area = context.area          # check if True: get area type from enum else: get area type from string (string has to be set)         if self.chose_from_list is True:             self.a_type = self.type_enum             self.test = area.ui_type             if self.a_type == "":                 self.report({'ERROR'}, "'a_type' Not Set Operator Cancelled")                 return {'CANCELLED'}             else:                 area.ui_type = self.a_type         else:             if self.a_type == "":                 self.report({'ERROR'}, "'a_type' Not Set Operator Cancelled")                 return {'CANCELLED'}             else:                 area.ui_type = self.a_type          return {'FINISHED'}  def register():     bpy.utils.register_class(SM_change_area_type)    def unregister():     bpy.utils.unregister_class(SM_change_area_type)    if __name__ == "__main__":     register()

I have a button in my menu named "New File" as shown:    and I want when I click on the "New File" button to imitate what the Blender File->New does, where a check message box appear first confirming that you want to reload the Start-up File and if pressed then the startup file is loaded as shown below.    This is my script, when I press on new it opens the startup file without checking:  class NewFile(bpy.types.Operator):     """New File"""     bl_idname = "wm.newfile"       bl_label = "New File"     bl_options = {'REGISTER', 'UNDO'}      def execute(self, context):         bpy.ops.wm.read_homefile()         return {"FINISHED"}


I'd like to know if this type of construction has a name, and for that matter, if it's even grammatically correct. I can remember seeing it in certain formal texts, but not as much recently:     The dog began to growl, despite his continuing to wag his tail.   ...     She still held out hope for good news, as shown by her checking the   mail each morning.   Those are made-up; I can't find a good real-life example right now. But the way I explain it is that a continuous action like "checking the mail each morning" is made into a noun-like object and treated as a possession of a person. It seems somewhat stiff, and in most cases I think you could rewrite the sentence to use more direct phrasing. But is it valid? And what is it called?

I assume that the following sentences are grammatically correct:   He resents your being more popular than he is. Most of the members paid their dues without my asking them. They objected to the youngest girl's being given the command position. What do you think about his buying such an expensive car? We were all sorry about Jane's losing her parents like that.   I'm still getting used to this possessive gerund structure. It sounded so weird to me at first. Is the structure used in both formal and informal contexts? Are there any alternative structures that result in the same meaning and are more frequently used? (Examples taken from )


A Linear Diophantine Equation is of the following form: $Ax+By+C=0$, where $x_1\le x\le x_2$ and $y_1\le y\le y_2$.  If the value of $A$, $B$, $C$, $x_1$, $x_2$, $y_1$, $y_2$ are given and $x_1\le x_2$ and $y_1\le y_2$, then how many solutions can be found?  How can I find out the total number of solutions according to the above condition?  I asked the above question in this link: before. But there I didn't give sample input and output. I liked the second answer in the above link but when I checked the  sample input and output according to the second answer it gives me wrong result   It is worthy of mention that the reasoning of the second answer based on $A$, $B\gt 0$, but my question is that what I have to do if $A$, $B\lt 0$ and how will I match sample input and output using the given answer.  Here, I have included sample input and output:    I need a method that satisfies the above input and output. I also need better explanation of the method with example.

A Linear Diophantine Equation is of the following form:                                                                                $Ax+By+C=0$, where $x_1 \leq x \leq x_2$ and $y_1 \leq y \leq y_2$.  If the value of $A,B,C,x_1,x_2,y_1,y_2$ are given and $x_1 \leq x_2$ and $y_1 \leq y_2$, then how many solutions can be found? How can I find out the total number of solutions according to the above condition.


Are these acceptable usages:  Though it was raining, we had a good time. Although he didn't know the man, it didn't really matter. It could be anyone next although the alternative wasn't much better.

Can we use though and although interchangeably? Somebody told me that the difference is that though cannot be used at the beginning of a sentence. Is that the rule?


I'm adding some code(!with js code included!) dynamically.

    Problem that this click event works anythere I click in div.w and returns text of ALL div.w combined in one string without spaces (sometext1sometext2).  Sorry if I wrote something wrong. I'm bad in english.

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.