How to adapt the color of a label using pgfplots

I created this style that shifts the labels and put them on the bottom of the ybars.  However, I have a problem with the bars that have too short length (for example, see the 8.7 and 5.1 in the example below). I want to check if the values are less than some threshold, or the length of the bar is shorter than the label (number) then change its color.  How can I overlay another label on top of the one in white when the bar is shorter? or maybe change the color of the label to a gradient color? or just overlay the part that is outside of the bar?    \documentclass{standalone}  \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplotstable} \usetikzlibrary{calc}  \begin{document} \makeatletter \begin{tikzpicture} \begin{axis}[ ybar, every node near coord/.style={   check for zero/.code={ % If meta=0, make the node a coordinate (which doesn't have text)     \pgfmathfloatifflags{\pgfplotspointmeta}{0}{         \pgfkeys{/tikz/coordinate}     }{}   },   check for zero, color=white, text opacity=1, font=\footnotesize, inner ysep=0.5pt, },% % Bottom nodes  calculate full offset/.code={     \pgfkeys{/pgf/fpu=true,/pgf/fpu/output format=fixed}     \pgfmathsetmacro\testmacro{((\pgfplotspointmeta-\pgfkeysvalueof{/pgfplots/ymin})*10^\pgfplots@data@scale@trafo@EXPONENT@y)*\pgfplots@y@veclength}     \pgfkeys{/pgf/fpu=false} },% nodes near coords bottom/.style={     every node near coord/.append style={         /pgfplots/calculate full offset,         yshift=-\testmacro,         rotate=90, anchor=west,%I need the rotate text here and not in the          %general style, as the ybar redefines the style     } },% ymin=0, nodes near coords={\pgfmathprintnumber[fixed zerofill,precision=1]{\pgfplotspointmeta}}, nodes near coords bottom, ] \pgfplotstableread{ % set real imag mag 1 8.7 2 5.1 3 91.8367  }\mydata \addplot table[x index=0,y index=1,header=false] {\mydata}; \end{axis} \end{tikzpicture} \makeatother \end{document}   * EDIT *  I need to create some special gradient on each label that is below the bar height. For example, I need to adapt something like  to each label that is not showing. However, I cannot find a way to put the macro in the style section of the codes. Or is there any equivalent solution?


My 128GB USB Flash Disk have only 117 GB. How to format for 128GB?

I have 128GB SuperSonic Rage 2    and my pc shows only 117GB:    I tried to format with BOOTICE  and then . Still shows 117 GB.   Somewhere I read that USB calculate capacity 1GB = 1000MB and computer 1GB = 1024MB. If this is true, my capacity 117GB is wrong anyway because 128000MB / 1024 = 125GB  Please help me give me back full size. Thank you!


how to uninstall ubuntu 18.04 in dell n5110 and install windows back


Sum of algebraic number of prime degree.

I'm looking to prove the following:  Let $K$ be a field and suppose that $[K(\alpha):K]=p$ and $[K(\beta):K]=q$ for $p,q$ distinct primes. Then $K(\alpha+\beta):K$ has degree $pq$.  Of course I know that $K(\alpha+\beta)$ has either degree $1,p,q$ or $pq$ over $K$. But I do not know how to rule out the cases where the degree is $p$ or $q$. Is there another way?


Using the present tense in writing a biblical commentary

In writing a commentary on the Gospels, which involves an elaboration upon what the characters did, would it be possible to use the present tense? For example, "Jesus arrives in Galilee and makes his way straight to Capernaum. Here he encounters a man in need of help... This text gives us an example of such and such a virtue..."


How can I take pictures through a skyscraper, airplane, or train window?

I find that I take a lot of pictures through skyscraper and vehicle windows (those that are impractical or impossible to open). There are all kinds of problems with taking photographs through windows: reflections from light inside, dirt on the window, etc. My technique mostly involves placing the lens directly on the window glass and shielding it from lights reflecting from above.   Are there any non-obvious gizmos / techniques for easily shooting through windows? I've heard that a polarizing filter might be used in this situation, but I don't carry one around most of the time. Besides, most of the pictures I am interested in taking are in low light situations (at sunset or in a moving train, etc).


Does a surprised creature stop being surprised after its first turn, even if nothing happened?

Surprised creatures are no longer surprised after they took their first turn in combat. But it feels counter-intuitive to apply this to a situation like the one below.  A group successfully sneaks up on an orc. The rogue wants to assassinate the orc. DM calls for initiative. Orc goes first because of poor rolling on the group's side.  Orc does first turn, does nothing because of surprise. He ends his turn and is not surprised anymore. Rogue shoots, thus giving away the group's presence...   Is this RAW? I think it is, but it feels wrong, because nothing would make the orc think that there is something going on...  To clarify, I think I understand how surprise works. What I don't understand is  why the orc would be surprised of nothing so he can stop being surprised. "oh no, I suddenly know there's an arrow coming my way..."  To clarify further: This is about surprise in general and specifically about the Assassinate Feature of a 3rd level Assassin Rogue.


Questarter.com copied all the content from Stack Exchange Network. Is it legal?

Today I found a site called .  If you checked it has almost all content from the Stack Exchange network. I think they are getting them from RSS feeds.  Can we get an action about that type of site or according to Terms of conditions of Stack Exchange it is a legal site?


How to find the net electric force exerted on a uniformly charged rod by another, same rod on the x-axis (they don't touch)?

How to find the net electric force exerted on rod 2 by rod 1, both being on the x-axis, both having the same length and constant linear charge density, being some distance apart?  More specifically, if rod 1 is on the x-axis from $-L$ to $L$ and rod 2 is on the x-axis from $L+x$ to $3L+x$, and both have the same lambda linear charge density, what is the net force of rod 1 on rod 2?  I understand that the electric field created by the first rod is not uniform over the space occupied by the second rod.   I know $F=qE$, where $F$ and $E$ are vectors, and the electric field for continuous charge distribution formula.  However, I don't know how to proceed with solving this problem using this information. In particular, there are two position vectors that vary (identify positions with different electric fields, not one point), instead of 1 as usual. Please help by identifying the strategy and starting point to solve this problem. I drew a diagram and wrote down the equations but further than this I've failed to go. Thank you for your help.


I have a config.properties file in which I am stored the credentials for a database, but when I try to execute it gave me " NullPointerException"

I have a config.properties file in which are stored the credentials for a database, but when I try to read it from connection.jsp it gave me " NullPointerException".  I am getting the above error on running the below code in eclipse-  config.properties:-  jdbc.url= jdbc:mysql://localhost:3306/mysqldb jdbc.driver = com.mysql.jdbc.Driver jdbc.username= root jdbc.password= root   connection.jsp:-  <%@ page import="java.util.Properties" %> <%@ page import= "java.sql.* " %>   <%  Properties properties=new Properties();         properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("config.properties"));     //InputStream in =  getClass().getResourceAsStream("config.properties");         String url=properties.getProperty("jdbc.url");     String driver=properties.getProperty("jdbc.driver");     String username=properties.getProperty("jdbc.username");     String password=properties.getProperty("jdbc.password");     Class.forName("com.mysql.jdbc.Driver");     Connection con= DriverManager.getConnection(url,username,password);  %>   emp_id.jsp (to print data from database):-  <%@ page language="java" contentType="text/html; charset=ISO-8859-1"         pageEncoding="ISO-8859-1"%>         <%@ page import="java.util.Properties" %>     <%@page import="java.sql.*" %>     <%@page import="java.sql.Connection" %>     <%@ page import="java.io.*" %>      <%@ include file= "connection.jsp" %>      <%             String query15="select emp_id from employees";             Statement st15=con.createStatement();             ResultSet rs15=st15.executeQuery(query15);             while(rs15.next())             {             System.out.print(rs15.getString(1));                     }      %>   I am getting this error message:-  HTTP Status 500 - An exception occurred processing JSP page /connection.jsp at line 8   type Exception report  message An exception occurred processing JSP page /connection.jsp at line 8  description The server encountered an internal error that prevented it from fulfilling this request.  exception org.apache.jasper.JasperException: An exception occurred processing JSP page /connection.jsp at line 8  5: Properties properties=new Properties(); 6:  File file = new File("config.properties"); 7:  System.out.println(file.getAbsolutePath()); 8:  properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("config.properties")); 9:  //InputStream in =  getClass().getResourceAsStream("config.properties"); 10:      11:        Stacktrace:     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:579)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)     javax.servlet.http.HttpServlet.service(HttpServlet.java:729)     org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)   root cause java.lang.NullPointerException     java.util.Properties$LineReader.readLine(Properties.java:434)     java.util.Properties.load0(Properties.java:353)     java.util.Properties.load(Properties.java:341)     org.apache.jsp.test_jsp._jspService(test_jsp.java:136)     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)     javax.servlet.http.HttpServlet.service(HttpServlet.java:729)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)     javax.servlet.http.HttpServlet.service(HttpServlet.java:729)     org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)   note The full stack trace of the root cause is available in the Apache Tomcat/8.0.44 logs.


When is the ring of continuous functions Noetherian?

Let $X$ be a topological space. Is there any topological property on $X$ that be equivalent to $C(X,\mathbb R)$ being a noetherian ring?


Benefits of Linear Discriminant analysis over Logistic Regression

I'm reading the introduction to statistical learning book the following reason is one of three for why LDA maybe used over Logistic Regression. However it gives no further detail or explanation and i find it quite vague and lacking context.    When classes are well-seperated, the parameters estimates for the logistic regression model are suprisingly unstable. Linear discriminant analysis does not suffer from this problem.    What does it mean by classes being well-seperated, could someone provide an example of this? For example would it mean 0 and 1 responses are clearly seperated by a boundary? Also what does it mean by the parameters being unstable? Finally why does LDA not suffer from this problem?  I really don't like skipping over important assumptions, i'd really appreciate a clear explanation so that i get a feel for what they're referring to. Thanks!!


Breaking a stick randomly at two points: Expected value of the largest piece.

If a stick of unit length is broken randomly at two points, to make 3 pieces of stick. What is the expected value of the largest stick.   Is there an elegant solution to this problem?  Thanks.


Counter with 4 flip flops jk synchronous from 3 to 13!

I have to create a counter with 4 flip flops jk synchronous. The counter shall count in this order: 3 to 13 and then to 3 to 13 and so on..  I have to use logisim simulator.   Ok. So i think its solved. I realized that the circuit needs to start at 0 ou 1 and stabilize after the 13 and then it goes to 3. Thanks for your help.  Hope this will help for somebody else too.  Thank you all for your help!


Strange tooltip positioning on the site analytics page

I guess, the tooltip should appear near the cursor.  Spec: Win7 (64-bit), Firefox 65.0.1 (64-bit).


What are the evidences that support the EmDrive?

Firstly, I'd like to point that I’m from Brazil, so forgive me for any errors in my writing.  Today, i found myself reading a journal who said that NASA is closer to detecting Warp Bubbles predicted by the Alcubierre propulsion system, which is a theory that i find interesting inside the actual physical model. But then i came across with the term "EmDrive" which, according to Roger J. Shawyer, is a propulsion device capable of creating and arranging microwaves in such a way that it could propel a spacecraft to extreme speeds.   I behaved with skepticism and looked for evidence. First, i read about a Chinese group of scientists who produced, on a replica of the machine, a total thrust of 750 mN with 2500W of power, and i assumed that it was junk science. But then I searched more and discovered about another group of scientists at NASA, the EagleWorks, who had successfully managed to produce 91.2 µN of thrust with 17W of power. According to them: “the RF resonant cavity thruster design, which is unique as an electric propulsion device, is producing a force that is not attributable to any classical electromagnetic phenomenon and therefore is potentially demonstrating an interaction with the quantum vacuum virtual plasma.”  But the problem with this “invention” is that it violates the conservation of momentum (and probably other physical theories).  What is the opinion of the scientific community about the subject?


Comparing the contents of two directories

I have two directories that should contain the same files and have the same directory structure.  I think that something is missing in one of these directories.  Using the bash shell, is there a way to compare my directories and see if one of them is missing files that are present in the other?


I'm trying to get a path from user input and use it as a variable in a command:  read -e -p "Path to backup: " path mongodump --host localhost --port 27017 --db my-db --out $path   When I put there ~/here as a script variable command is never successful (no error). When I put the exactly same value the command directly it is working:  read -e -p "Path to backup: " path mongodump --host localhost --port 27017 --db my-db --out ~/here   When I print echo "$path" it prints ~/here.  Any ideas?  Thanks


Is there a reason / benefit to converting a generic list to array?

I have a function that returns a list of strings.   I can loop through that list just like it was an array.  Is there a reason I should convert it into an array before doing so?  EDIT: The reason I'm asking is because I see code online (and on SO) that manipulate/create a collection of string using List (or other types) but then call the ToArray when returning it, why?


How can I boot my MBP into normal mode despite shift key being broken (and on)?

I recently went to the Apple store with my laptop because it would only boot into safe mode and would not accept my password. While there, they said some liquid ruined something in the inside of my laptop. They said that the shift key was internally broken and will cost up to $700 to fix. Now, in order to use my laptop, I need to use an external USB keyboard.   But, whenever I turn my laptop on, it boots into Safe mode. Is there a way to disable it? I have tried holding down Esc and C and space but nothing has worked for me. Does anyone have anysuggestions?


Transistor Current Ic vs Power Dissipation

I'm a little confused on Transistors and their power dissipation vs current.  If you look at the 2N2222A datasheet. It claims the max Vce is 40 volts.  And that the Ic max current is 1A.  It also says the power dissipation is 625mW.  So, clearly it can't do BOTH 1A & 40V and stay under 625mW.  Does that mean if I want to drive it at 40 volts, then 0.625/40 = 15.6 milliamps would be the most I could put through it?    Or say at +9V you would only get 0.625/9 = ~70mAmp.  Even at 3.3V you only get like 190milliamps.  To get a full Amp out of the transistor, you have to drive it at LESS than 1V.  What am I misunderstanding. I know I see things all over the place talking about the 2n2222 getting 1 amp out of it. But shouldn't it be burning up all the time then?  Am I misunderstanding what the power dissipation spec means? I must be.


How to see the answers one has given earlier?

How do I see the answers that I gave earlier. This is because I gave an answer to a question long ago but I need to revisit that concept.  Note: user:me technique doesn't work for answers one has given, it only works for questions.


Find the area of the region bounded by the parabola $y = 2x^2$, the tangent line to this parabola at $(5, 50)$, and the $x$-axis.

This is my homework problem and my answer is $\frac{250}{3}$. But it is always wrong. What should the right answer be?


What is a noun for a bad/negative role model?

Example of bad/negative role model: someone whose action (and its consequence) one should learn to avoid instead of emulating such as a gambler or robber.


How can disable the Windows store on Windows 8 completely

I don't want to use the Windows Store and don't let the other user to use it. So what is the way to disable the Store on Windows 8?


I use the following command to find files with a given string:  find /var/www/http -type f | xargs grep -iR "STRING1"   But how can I find files which include "STRING1" OR "STRING2" OR "STRING3"?  This code doesn't work:  find /var/www/http -type f | xargs grep -iR "STRING1" | xargs grep -iR "STRING2"


What cosmic event would have to occur for us to notice gravitational waves in everyday life?

I read that gravitational waves are so tiny that we need extremely precise equipment to detect them. I am no physicist, but GR really intrigues me and I was wondering about two things:   How powerful would a gravitational wave have to be for an average human to notice its effects, and what would those effects look like? How would these effects change as a function of the energy of the wave? What kind of cosmic event (e.g. black hole on black hole collision) could cause these gravitational waves?


Installer crashed when trying to install Ubuntu 18.04

I keep getting this error message when i tried installing UBUNTU 18.04...installer crashed..please fix.does it have something with upgrading ubiquity?...am already confused


What is the mechanism behind plants losing their leaves?

Do plants that lose their leaves (i.e., deciduous plants) do so because of external conditions (e.g., drought, cold), or because of an internal process?  Another way of looking at it: if you take a deciduous plant that loses its leaves during cold winters with long nights (e.g., Canada), and plant it in an environment where it is always warm and sunny (i.e., at the equator), would this plant continue to shed its leaves and re-grow them according to the seasons in Canada, or would it behave as an evergreen instead?


What pressure should I run my Mountain Bike tires at?

Should I run my mountain bike at the suggested PSI/Bar on the tire/rim?  Or should I run it a bit lower?  Or is it more about conditions?  Should I run lower if I am running on softer terrain?


How to determine the number of days in a month in SQL Server?

I need to determine the number of days in a month for a given date in SQL Server.  Is there a built-in function? If not, what should I use as the user-defined function?


How does Gilbert, MacWilliams, and Sloane's solution to “perfect integrity” work?

Gilbert, MacWilliams, and Sloane defined a solution to "perfect integrity" in , unconditionally secure message authentication, not vulnerable to any cryptanalysis on its own even by an adversary with unbounded computational power, provided you have a key chosen uniformly at random the same length as the message. It sounds counter-intuitive that a MAC could have perfect integrity, any hash function can be broken with enough computational power. How does their solution have "perfect integrity"?


If an infinite number of coins are tossed infinitely often, is it true that there will be infinite subsets of those coins that repeat any finite sequence of heads/tails infinitely often? I.e., infinitely many coins will always produce heads, infinitely many always produce tails, infinitely many produce HTHTHT..., THTHTH..., HHTHHTHHT..., TTHTTHTTH..., etc.  And on each toss of all the coins, would some infinite subset of coins begin reproducing a finite sequence infinitely often? I.e, infinitely many coins that had previously produced irregular sequences of HT would begin producing HTHTHT..., THTHTH..., et


Why was Snape called the Half-Blood Prince?

My question comes from what I learned in the movies, considering I have not yet been able to read the books. I would just like to know why Severus Snape called himself the Half-Blood Prince? Did many people call him that or did he just think that it was a cool nickname? This question might be answered in the books so feel free to quote from it.


The uncertainty principle and black holes

What are the consequences of applying the uncertainty principle to black holes?  Does the uncertainty principle need to be modified in the context of a black hole and if so what are the implications of these modifications?


I'm creating a flowchart in Tikz, and I would like to connect two shapes using an arrow. The thing is, the arrow needs to end not at the centre, but rather around 80% from the left. Consider the following minimal example:  \documentclass[a4paper, 12pt]{report} % a4paper option recommended \usepackage{tikz} \usepackage[latin1]{inputenc} \usetikzlibrary{shapes,arrows}  \tikzstyle{start} = [diamond, draw, fill=blue!20,      text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt] \tikzstyle{block} = [rectangle, draw, fill=blue!20,      text width=5em, text centered, rounded corners, minimum height=4em] \tikzstyle{line} = [draw, -latex'] \tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,     minimum height=2em]  \tikzstyle{arrow} = [thick,->,>=stealth]   \tikzstyle{assignment} = [trapezium, trapezium left angle=80, trapezium right angle=100, minimum height=1cm, text centered, draw=black, fill=blue!30, text width=4.5cm]  \begin{document}       \begin{center}         \begin{tikzpicture}[node distance = 1.75cm]             % Place nodes              \node [start] (somedecision) {Yes/No?};              \node [assignment, above of=somedecision,yshift=2cm, xshift=-2.25cm] (someblock) {Var $\gets$ \textit{something}};              \node [block, below of = someblock, yshift=-2cm, xshift=-1.5cm] (someaction) {Do something};              \draw [arrow] (somedecision.north) -- node {no} (someblock.south);              \draw [arrow] (someblock) -- (someaction);          \end{tikzpicture}     \end{center} \end{document}   The arrow from the decision box goes to the bottom center of the upper box, but I would like it to simply go up (shortest route). Similarly, I would like the left arrow (from the upper box to the left box) to start to the left so it can go down (shortest route) to the designated box.  Is there any way of getting this done? I tried looking for it but I cannot seem to find it.  Thanks.


Would the phrase read "Run, Joey, run!"...or does the placement of the vocative commas make absolutely no sense?


How to contact professors for PhD vacancies?

I know many master's students who get an opportunity to talk to their potential PhD advisors well before applying. In most cases this opportunity is available by the professors with whom they worked for their master's. Moreover, there are many others who establish a contact with professors by mailing them and enquiring about PhD vacancies.   My questions are:   How important is knowing an advisor prior to applying for PhD?  Does an email interaction play a vital role when the department makes its admit decisions? If email contact is important, can a student send out mails to 2-3 professors (working in the same area) in case one of them does not bother to reply? To sum up, is applying of any use (especially in top universities) when you have no contacts and only your credentials to bank on?


finding $\int_0^\infty \dfrac{dx}{1+x^4}$ through complex analysis

I am trying to find $\int_0^\infty \dfrac{dx}{1+x^4}$ by setting it equal to $\dfrac{1}{2}\oint_C \dfrac{dz}{1+z^4}$ and solving that. By a computer program I've calculated it to be $\approx 1.11072$; I am not getting that answer though. I factor it into $\dfrac{1}{2}\oint_C \dfrac{dz}{(z-1)(z+1)(z^2 + 1)}$; there is a simple pole at $z = 1$ and a 4th order pole at $z = i$; I find the residue at 1 to be $\dfrac{1}{4}$ and at $i$ to be $\dfrac{-1}{4}$; the second pole is found by L'Hopital's rule. Could someone tell me what I'm missing? Thanks


Export to wavefront always gives white for ambient ka

I'm using 2.76b on ubuntu. When I export to a wave front object, it will always set the material's ambiance (ka) as white. I've changed the World ambient color to multiple different colors, and it always exports as white.  Steps I use:   Create new blender file w/ default cube  Click on World tab in properties.  Expand World subsection  Set Ambient to pink or something File -> Export -> WaveFront   When I go to open up the .mtl file, it will still show as all 1's for the ka component for any material.


I have a server running the standard, unmodified Vanilla server on a Linux box. After talking to the people on the server we have decided that moving to a Bukkit Server would be better because of the awesome plugins.   However, it seems that Minecraft generates "nether" and "overworld" files differently than Bukkit. Bukkit generates a world and a world_nether folders. I have read the  that copying the Vanilla's world folder to world and world_nether seems to work but I feel like this a a bit hackish and might cause problems in the future.   Has anyone successively done this?


I am trying to prove its not UFD. I started by assuming   x=ab in K[v] , where v=v(xw-yz) then  x-ab=(xw-yz)f, for some f in K[x,y,w,z]  I tried to say that deg of a, and b is less or equal 1, and then try to do a non-matching degree argument, but I could not see why a,and b should have deg leess or equal 1, how should I define degree in K[v]. Any help on how to prove this? Thanks.


What is the name of the grammatical device where 18th and 19th Century sentences started with 'which'?

In the movie  - we see  between Jack Aubrey and his servant Killick: Dialogue 1:  JACK: Killick? Killick there. KILLICK appears. JACK (CONT'D): What do you have for us tonight? KILLICK: Which it's, Soused Hoggs-Face. JACK: Aah! My favorite.  Dialogue 2:  KILLICK: That's the last of the cheese and like as not they'll leave it seizing to their plates with their tweedly tweedly tweedly. JACK (O.S.) Killick? KILLICK THERE! KILLICK (projecting) Which it will be ready when it's ready!  This tendency to start a sentence with Which is echoed in the books. My question is: What is the name of the grammar where 18th and 19th Century sentences started with 'which'?


Ubuntu Live USB - Finding files that were stored on my flash drive

How can I find the files that were stored on my flash drive before I installed Ubuntu to it?   Edit: No, I didn't format it, my files are still on the flash drive root. I just need to know how to access them there.


How do I dual boot Ubuntu alongside Windows 10 on a Lenovo Yoga?

I'm sorry if this is a noob question. I have searched some online. But can't really figure out how. I think I have a weird BIOS.. I'm trying to change the BIOS security settings.


Difference between "open up" and "open", optional "up" & "down" words

I don't really understand why we add the word up or down even if it is not needed, example : open up! when requesting/ordering someone to open the door. Why not just say open the door!, or open!, what's the purpose of up in examples like these ?  The same thing with adding the word down, that I hear in many sentences, but I don't really have one in mind right now.  EDIT : What's the difference between open the door! & open up the door! ?


Confused about nested for loops in Python

I have a very simple question about nested for loops in Python (perhaps applicable to other languages).   Here's a minimal example:   my_array = [[0]*10]*10 k = 0 for i in range(10):     for j in range(10):         my_array[i][j] = k         k += 1    After executing these lines, I would expect my_array to look like a matrix with the digits 0 through 99 written out left to right top to bottom.  Instead my_array looks like this:  [[90, 91, 92, 93, 94, 95, 96, 97, 98, 99],  [90, 91, 92, 93, 94, 95, 96, 97, 98, 99],  [90, 91, 92, 93, 94, 95, 96, 97, 98, 99],  [90, 91, 92, 93, 94, 95, 96, 97, 98, 99],  [90, 91, 92, 93, 94, 95, 96, 97, 98, 99],  [90, 91, 92, 93, 94, 95, 96, 97, 98, 99],  [90, 91, 92, 93, 94, 95, 96, 97, 98, 99],  [90, 91, 92, 93, 94, 95, 96, 97, 98, 99],  [90, 91, 92, 93, 94, 95, 96, 97, 98, 99],  [90, 91, 92, 93, 94, 95, 96, 97, 98, 99]]   Somehow it seems k is only being evaluated according to its values on the last run of the outermost i loop.  Does anyone understand what Python is doing here? Using the product function from ittertools produces (as the documentation makes clear) the same result. Also, replacing range(10) with either a tuple or a list of the digits 0 through 9 produces the same result.


I wrote a custom validator for jquery validator plugin .  Problem is, the custom validator I wrote is throwing error for anything I input. If I input plain text, it will still show error message.


Hammered by botnet; iptables can't keep up

Fructis is a multi-site (and multi-software) VM (Xen) with 2 cores and like 6G of RAM.  It hosts popular Drupal and Wordpress websites and is currently getting hammered. I will put all details below.   I've been blocking IPs but there appears to be a VERY aggressive bot network and mostly changes IPs faster than I can block them I've updated Drupal but all the Wordpress sites aren't necessarily managed by me. I've enabled logs for TS but they don't seem to be helping Perhaps the answer is understanding what kinds of bot attacks are common lately/now? To that end,  may have helpful information   Details:  root@fructis:/home/nrogara# w 09:28:05 up 10 days,  1:55,  2 users,  load average: 31.10, 30.61, 32.31 USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT nrogara  pts/0    c-24-7-67-188.hs Wed13    1:01m  0.18s  0.00s sshd: nrogara [priv] nrogara  pts/1    142-254-1-80.dsl 09:00    5.00s  0.06s  0.01s sshd: nrogara [priv]  root@fructis:/home/nrogara# !net netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head      12 72.37.249.84      12 162.243.193.98       7 91.207.5.157       7 74.73.126.40       4 184.73.22.102       3 94.102.49.35       3 199.255.208.91       3 195.211.154.155       3 174.21.231.10       3 108.62.154.15   (again 2 minutes later)  root@fructis:/home/nrogara# netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head      10 95.26.128.85       6 67.170.85.225       5 195.2.240.106       4 24.7.67.188       4 216.246.184.159       3 206.51.125.66       2 91.122.6.86       2 79.143.187.214       2 72.46.156.116       2 50.115.172.177


The User Name and/or Password are OR is incorrect

Which of the following would be correct:   The User Name and/or Password are incorrect. The User Name and/or Password is incorrect.   Or neither?  Thanks!


I can't get a villager to sell adventure mode items with names or 'CanPlaceOn' tags

I can't get this command to work:  /summon Villager ~ ~1 ~ {Proffesion: 0,CustomName: “Ratigan”, CustomNameVisible: 1,Career: 1,CareerLevel: 42,Offers:{Recipes:[{buy:{id:minecraft:pumpkin},{id:minecraft:iron_block,Count:3},{id:minecraft:pumpkin}},sell:{id:minecraft:lever,Count:1,tage:CustomName:["SEcret passage under the well"],tag:{CanPlaceOn:["minecraft:iron_block"]}}}]}   It says: Unbalanced curly brackets {}, but I can't seem to find where I messed up. Can somebody help?


Python Division Accuracy Issue, possibly

When I calculate below division in python, the result returns as 1. How do I get the actual float number?    1/(1+3.0573630308660312e-30) Out[182]: 1.0


I have to find the sum of the following series:  $$\sum\limits_{n=1}^\infty \frac{n^3}{n!}$$  I know how to prove the convergence of this series, but how do i find the sum. I can't use the properties of derivation or integration of the series, i have to do it using the definition that a series converges iff it's sequence of partial sum converges.


Let the two metrics on $X$ be defined as  $$d_2(x,y) = \sqrt{(x_1 - y_1)^2 + \dots + (x_n - y_n)^2}$$ $$d_{\infty}(x,y) = \text{max}\left\{|x_1 - y_1|, \dots, |x_n - y_n|\right\}.$$     In the general case, for some $\alpha, \beta \in \mathbb{N}$ we have that all metrics $d_p$ and metric $d_{\infty}$ are strongly/lipschitz equivalent since we can find some $\alpha$, $\beta$ such that      $$\alpha d_{\infty}(x,y) \leq d_p(x,y) \leq \beta d_{\infty}(x,y).$$   However, in my particular case,  $$\alpha d_{\infty}(x,y) \leq d_2(x,y) \leq \beta d_{\infty}(x,y).$$  Obviously, $\alpha = 1$, works. What would be a suitable $\beta$. Could we also simply say $\beta = \text{sup}~d_2(x,y)$?


In the Time Odyssey series, is there going to be a sequel to Firstborn?

says that an edition of Firstborn calls it the conclusion.  After reading Firstborn, I was looking forward to the next book, where I hoped we'd see       the humans take the fight to the Firstborn.   But I see that Arthur C. Clarke died since that book was written, so I don't know if they completed the story.  Has anyone heard if the next book is being worked on?


How good are the EF-mount to E-mount adapters?

I currently live in the Canon ecosystem, but really like the look of the Sony a7S. But before I switch I want to know just how well I'll be able use use my old EF-mount lenses on my new a7S.  How well do the mount adapters perform?  Are there any converters that would allow me to use my old EF lenses with 100% of the original functionality (auto-focus, IS, EXIF data, etc)?  I would not normally ask, but this isn't the sort of thing I can try out in the store.


I'm using hyperlinks to jump the page as well as shift page on my webpage.  I'm having difficulty getting my hyperlinks to work. I can't figure out why.   I use the following code to shift page  secondpage   and the following code to jump page  jumppagedownwards   (further down the page)        How do I combine my jumppage and my shift page in one hyperlink?  I tried the followingcode:   secondpagefurtherdown   For some reason it was working on some links and others it only shift page without jumping.   Is there a better way to write the link?


Which sentence is the correct one, or are they both correct?   I am going to the post office in 2 hours. Shall I post the letter for you? or I will be going to the post office in 2 hours. Shall I post the letter for you?


How can I paste the "plain" text of a string to int? C#

I'm making an application which edits specific memory addresses of a process chosen by the user. I've to convert a string for example "0x7ffe0030,0x7ffe6000" to a list of strings and for every string in the list I've to paste the plain text of the string as int for example: if the string is "0x7ffe0030", the int must be 0x7ffe0030.  I've trivially tried to do that:  foreach (var address in addressListRaw) {  int a = Int32.Parse(address); }   but it obviously doesn't work.  Console.WriteLine("Select the memory addresses to modify.\n" +             "You can write more than one address separating\n" +             "every address using the character ','\n" +             "example: 0x7ffe0030,0x7ffe6000");   string addressesRaw = Console.ReadLine(); List<string> addressListRaw; addressListRaw = addressesRaw.Split(',').ToList();  foreach (var address in addressListRaw) {  int a = Int32.Parse(address);  Console.WriteLine(a.ToString()); }


Since TeX and LaTeX can print out any text, it should be possible to write a self-replicating document, i.e., a document that is typeset as a PDF/DVI of itself. Have you seen something like that?


I joined a community to ask a question, and found it was the wrong community for me. How do I leave the community?

I asked a Home network-type of question in the Network Experts community, and I was then informed that SuperUser was a better community to ask the question in, because Network Experts is for professionals (understood).  I deleted the question, and asked it in the right community, but given that I'm not a Network Professional, how do I leave that community?  I don't want their counts affected by a dead-weight user...


How to get max of one date in a table in sql

I have written the below code - select          PAPF.PERSON_NUMBER,          BP.NAME                                       BENEFIT_PLAN,          BBR.BENEFIT_RELATION_NAME,          Round(BPER.BNFT_AMT, 2) * 100                 COVERAGE_AMOUNT,          TO_CHAR(BPER.ENRT_CVG_STRT_DT, 'YYYYMMDD')    ENROLMENTCOVSTARTDATE         TO_CHAR(BPER.ENRT_CVG_THRU_DT, 'YYYYMMDD')    ENROLMENTCOVSENDDATE FROM    PER_ALL_PEOPLE_F               PAPF,         BEN_PRTT_ENRT_RSLT             BPER,          BEN_PL_F                       BP,          BEN_BENEFIT_RELATIONS_F        BBR         WHERE PAPF.PERSON_ID               = BPER.PERSON_ID          AND     BPER.PL_ID                   = BP.PL_ID          AND     BBR.PERSON_ID                = PAPF.PERSON_ID  AND     BBR.BENEFIT_RELATION_NAME    = 'DFLT' AND     SYSDATE BETWEEN PAPF.EFFECTIVE_START_DATE AND PAPF.EFFECTIVE_END_DATE  AND     SYSDATE BETWEEN BP.EFFECTIVE_START_DATE   AND BP.EFFECTIVE_END_DATE  AND     SYSDATE BETWEEN BBR.EFFECTIVE_START_DATE  AND BBR.EFFECTIVE_END_DATE   This will give me an output like - PErson_number           BENEFIT_PLAN                COVERAGE_AMOUNT  ENROLMENTCOVSTARTDATE          ENROLMENTCOVSENDDATE     1010                    US Basic PLAN               20000               20200901                    20201020 1010                    US Basic PLAN               20000               20201021                      1011                    Us Spouse PLAN              160000              20200901                    20201020 1011                    Us Spouse PLAN              160000              20201021                    47121231  I want to retrive only the max of the ENROLMENTCOVSTARTDATE for each person. The expected output should be - PErson_number           BENEFIT_PLAN                COVERAGE_AMOUNT  ENROLMENTCOVSTARTDATE          ENROLMENTCOVSENDDATE     1010                    US Basic PLAN               20000               20201021                      1011                    Us Spouse PLAN              160000              20201021                    20201220  how can i use Max in the main query for this ?


Why is the surface area of a revolution $\int 2\pi y ds$ instead of $\int 2\pi y dx$?

I learned from this  that the surface area of a revolution is $\int 2\pi y ds$. Why is it not $\int 2\pi y dx$? I know this is a , but I do not think I get a satisfactory answer. There is another  that told us the area under curve is $\int y dx$. Why are we using $dx$ in the area calculation, but not the surface area of a revolution? Why can we use the argument that when the $\Delta x$ gets smaller and smaller, the limitation of $\sum y \Delta x$ is the area under curve, but we cannot use the same argument to the surface of a revolution? Why not say when the $\Delta x$ gets smaller and smaller, the limitation of $\sum 2\pi y \Delta x$ is the surface area of the revolution?


Asus ZenBook Pro UX580GE-BN010T - Screenpad - Ubuntu

All,  I have a Asus ZenBook Pro UX580GE-BN010T and prefer to work in an ubuntu environment. I already saw a lot of post about missing drivers for the screenpad.  So: Can someone confirm that the screenpad of the asus zenbook works on ubuntu? In the case of "yes", I'll install ubuntu right away


Is heat death reversible by thermal or quantum fluctuations given an infinite time?

I'm new here, so apologies if the question doesn't sound meaningful considering what physics is supposed to answer. I don't have a physics or mathematics background, but I did learn a few things about entropy and the different possible fates of an expanding universe from other forums.   Now, assuming the heat death "fate" is where the universe is heading towards, asymptotically reaching towards a thermal equilibrium, will it stay in a state of equilibrium forever? or the will the "arrow of time" cease pointing sharply towards the future since decrease in entropy becomes likelier when a state of near maximal entropy is achieved (I'm guessing here) ?  The wiki article on this states the number of years that would take for a random quantum fluctuation to perhaps recreate another "big bang" and restart the universe as $10^{10^{10^{56 }}}$ . I realise that's a RIDICULOUS amount of time to even comprehend, nevertheless it is still a physical possibility and $10^{10^{10^{56}} }$ years are only a tiny fraction of time when compared to an infinite amount of time.  Finally what I want to ask: Is reality a one time phase transition from a vague potential with maximal degrees of freedom (big bang) to a crisp actuality with maximal constraint (heat death) with asymmetric, unidirectional time or is it infinite cyclic with symmetric time that reverses itself (by means of highly improbable, but physically not impossible mechanisms) after a finite period of time?   I suspect this may be a borderline philosophy question, but figured might as well give it a try here before posting in more relevant forums. Thanks.


Closed Subsets of Compact Spaces Using Subsequences Definition of Compactness

Prove closed subsets of compact spaces are compact.   I've seen the proof with the open cover definition of compactness, so I would like to prove this using the subsequence definition of compactness (in metric spaces). In case anyone is not familiar with this definition: For all $\{ x_n\}\subset X$, if there is a convergent subsequence $\{x_{n_{k}}\}\subset X\implies \text{ (sequential) compactness, where }X$ is a metric space.  My attempt:  Let $K$ be a compact metric space. This implies that $K$ is both closed and bounded. Let $K_0\subset K$ be closed. This means all limit points of $K_0$ are contained in $K_0$. Suppose that $\{x_n\}\subset K_0$. Then $\{x_{n_k}\}$ has a limit in $K$ since $K$ is compact.  I am stuck at this point. I want to show that the limit of the subsequence converges to a limit in $K_0$. If I could do this, then it would meet the definition of compactness using subsequences.  Any help would be appreciated. Thanks.


What is the title: aliens visit dead earth, revive the dead

A story where aliens visit a dead earth, and revive the dead. They visit a museum and begin by reviving a dead Egyptian, then a 1930s boozer. They hit a snag when they revive a recently deceased. He displays powers. They drop bombs but none explode. The aliens are tricked into plunging into the sun by the revived human


VirtualBox Local Disk not recognizing Hard Drive space

I just have a VirtualBox running Windows 10 and I needed to expand it's hard drive disk space so I ran the following command:  VBoxManage modifyhd --resize 22500 ~/"VirtualBox VMs"/"Windows 10"/"Windows 10.vdi"   And, when I went into the specs of the VirtualBox, the space had expanded (which is good!), but I then tried decompressing a file in the VirtualBox and it threw an error saying that the disk had the original amount of space (and that I have insufficient space to decompress the file). When I checked the Local Drive to confirm, it did in fact not change.  How do I get the Local Drive to recognize the additional space?  Note: I cannot scrap the OS  EDIT  Solution, courtesy of @Ramhound.   I expanded the volume on the host OS but not the guest OS. So, in Windows, the space was just considered unallocated. I had to go into Disk Management in Windows and extend the volume. Here's the outline of how to do that:


How are questions in the 'hot' tab on a site selected?

I know questions on the "hot" tab of a site homepage are based on some sort of views/velocity criteria, but does anyone know the actual algorithm used?  Background: I was considering a feature-request about the "hot" tab, but I don't have enough information to speak about it intelligently.


Alternating colors for stacked bar charts

I'm trying to make a stacked bar chart with two bars next to each other with different colors. I've based my code on discarding \addplot commands similar to , but even though I'm discarding an \addplot it seems to remember the height of the previous bar (due to stacking presumably). I want all bars to start at y=0.  \documentclass{standalone} \usepackage{filecontents}  \usepackage{pgfplots} \usepackage{pgfplotstable}  \pgfplotsset{     discard if/.style 2 args={         x filter/.code={             \edef\tempa{\thisrow{#1}}             \edef\tempb{#2}             \ifx\tempa\tempb                 \def\pgfmathresult{inf}             \fi         }     },     discard if not/.style 2 args={         x filter/.code={             \edef\tempa{\thisrow{#1}}             \edef\tempb{#2}             \ifx\tempa\tempb             \else                 \def\pgfmathresult{inf}             \fi         }     } }  \begin{document}  \begin{filecontents}{data.csv} X   Alpha   Name    Normal  Spike   Min     Max 1   5       CR      2.42    3.19    0.92    0.98 2   5       LR      2.48    0.80    0.59    0.47 4   10      CR      2.03    3.30    1.76    2.21 5   10      LR      2.10    0.92    0.53    0.62 7   15      CR      2.03    2.88    1.60    1.28 8   15      LR      2.05    1.12    0.68    0.69 \end{filecontents}  \pgfplotstablegetrowsof{data.csv} \edef\numberofrows{\pgfplotsretval}  \begin{tikzpicture} \begin{axis}[     width=10cm,height=6cm,     ybar stacked,     xtick={1,2,4,5,7,8},     xticklabels from table={data.csv}{X}, ]  \addplot [draw,fill=orange,discard if={Name}{LR}] table [x=X, y=Normal] {data.csv}; \addplot [draw,fill=orange!20,discard if={Name}{LR}] table [x=X, y=Spike] {data.csv};  \addplot [draw,fill=green,discard if={Name}{CR}] table [x=X, y=Normal] {data.csv}; \addplot [draw,fill=green!20,discard if={Name}{CR}] table [x=X, y=Spike] {data.csv};  \end{axis} \end{tikzpicture}  \end{document}


I understand why $1/i$ is supposed to equal $-i$: $$\frac{1}{i}=\frac{1}{\sqrt{-1}}=\frac{\sqrt{-1}}{-1}=-\sqrt{-1}=-i$$ and that $\frac{1}{i}=i$ is definitely wrong, since that would imply $i^2=1$, which is obviously false, however, I don't know what is wrong with the argument: $$\frac{1}{i}=\frac{1}{\sqrt{-1}}=\sqrt{\frac{1}{-1}}=\sqrt{-1}=i$$


I just imported a COLLADA from OnShape and there are now a bunch of dotted lines from each mesh to the origin

A) Is this a problem/did I do something wrong? b) How can I get rid of these lines in the viewport?


What to write in email to potential PhD advisor?

I would like to apply for following PhD studies in the Nordic countries, particularly in the field of Computer Science. The problem that I found is that it says in the admission procedure that "before applying one should get a Professor or Researcher that agrees to supervise the applicant".   I have checked up the personal webpages of the Professors and I have found their topics of interests, publications and so on. I like a lot of the topics in which they make research, but I do not really know how to address an email to them asking if they would agree to supervise me. Particularly I have the following doubts:   Should I make a small research article putting my ideas about one research interest of them? The problem here is that I believe I would not have the enough time to go through a lot of papers made on their reseach groups. What can I do if do not have the enough background? Time is running fast for submitting the application and I do not believe I would have enough time to study in deep their research. Should I send my CV and ask to a specific Professor that I have interest in following PhD studies under their supervision, and if it would be possible if he or she to send me some open question or open research task so that they could see that I will manage to do it well on his or her research group?   I will transcribe what the ad specifically says:        You must do your best to find a suitable supervisor at the department who agrees to supervise you. Please see the research pages   of the department, and especially the descriptions of the research   groups.   You must agree on a study plan, a research plan and a financing plan together with your (found) supervisor,  and submit an application   to the steering committee of the department's doctoral programme.      also about the supervisor it says:     A student who wants to become a PhD student should start the   application process by finding a supervisor at the department, who   works in the field of interest of the student and who is willing to   supervise the student. If the student is unsure of which supervisor to   contact, he or she may first contact the research coordinator of the   department who will steer the student in the right direction.   Generally, a supervisor is a professor and/or principal investigator   employed by the department.   For what I read it seems, at least to me, that one should really have in mind a good research proposal before applying, am I wrong? or only with an email will suffice to contact the potential supervisor?  What should I do in this situation?  Thanks


Can this proof be applied to C1-functions

In , does the proof given applies to every $C^1$-function or does it need some changes for it to be true?  More specifically, I want to know if the argument that $λ(K)≤∑_i(b_i−a_i)\frac{2ϵ}{2^i}$ works for $f(x)$ as $C^1$-function?


Do Barbarian shouts stack for party members?

Do Barbarian shouts, such as , stack? If two barbarians cast War Cry, does the armor bonus stack or does it remain constant at increasing armor 20% for 60 seconds? What if each Barbarian has a different rune equipped?


Share bookmarks between Firefox and Opera

Is there any tool or service to share or sync bookmarks between Firefox and Opera? I'm currently using both browsers in the same computer and it'd be nice to have the same set of bookmarks available.  I know I can export and import them manually but that's designed for permanent migrations. I'm also aware of  but it does not support Opera (there's a  but it doesn't feel practical).


Prove that if $b = dk$ where $gcd(m, a) = d$, there are $d$ solutions to $ax \equiv b \mod m$

I know that there exists at least one solution, because $ax \equiv b \mod m \implies ax - b = qm$  Rearranging terms gives $ax - qm = b$, and since $d | a$ and $d | m$, so $d | b$ it can be said that $b \equiv 0 \mod d$.  I implemented Euclid's extended algorithm and have been able to experimentally verify that the claim holds, but I do not see a pattern or how I can begin to show there are exactly $d$ solutions.  def euclid_extended(x, y, i=0):   if y == 0:     print("iteration {0} returns ({1}, {2}, {3}) - base case hit with ({4}, {5})".format(i, x, 1, 0, x, y))     return (x, 1, 0)   else:     (d, a, b) = euclid_extended(y, x % y, i + 1)     print("iteration {0}. ({4}, {5}) => ({1}, {2}, {3})".format(i, d, b, a - b * (x//y), x, y))     return (d, b, a - b * (x//y))


Are there any ways of solving this intriguing integral?

I know a good number of methods to solve this  integral like Feynman Trick, Laplace transform etc.  $$\int_0^{\infty} \dfrac{\sin x}{x} \mathrm{d}x = \dfrac{π}{2}  $$  Do y'all know some creative and not-so-common/(exotic?) methods to solve this? I have so much to learn :)


How to prevent email from WordPress going to SPAM folder using PHP mail?

I have set up a contact form which is to send email to anyone from WordPress page. It's sending email but all are going to SPAM folder. How to prevent it to go to Spam folder but go to Inbox?   however, I gave it try from another wordpress site, all emails going to inbox perfectly, and I've found a difference that is all email going to inbox has one extra line in details that is-   mailed-by:    p6plcpnl0235.prod.phx3.secureserver.net  But the emails going to the SPAM folder doesn't have this above line, Is it can be a cause? If so how to enable this secureserver.net  Can anyone please help me?   Here is what I am using in page-        <?php         //if "email" variable is filled out, send email          if (isset($_REQUEST['email']))  {          //Email information         $admin_email = "admin@mail.com";         $email = $_REQUEST['email'];         $subject = $_REQUEST['subject'];         $comment = $_REQUEST['comment'];           //send email         mail($email, $subject, $comment, "From:" .$admin_email);          //Email response         header('Location: /email-sent');       }        //if "email" variable is not filled out, display the form       else  { ?>

         <form method="post">
 Email: <input name="email" type="text" />

  Subject: <input name="subject" type="text" />

 Message: <textarea name="comment" rows="5"></textarea>

<input type="submit" value="Submit" />
         </form>

    <?php     } ?>


We know that two wave sources can interfere if    two sources have the same frequency two sources must have a constant phase difference over time.   But I think that if condition 1 is satisfied, condition 2 is too. So is the second condition unnecessary? There must be some counter-example, isn't there?


How to run docker exec using Java on a docker container

I have a docker container called pps-control. If I want to execute a script that lives inside the container which for this example takes 1 arg, I do from my linux terminal:     docker exec pps-control /bin/sh -c "./build/doControlStuff.sh 123456"   My question is: How do I achieve doing the same using java code? I know that there is something like:  package com.mypackage; import static com.palantir.docker.compose.execution.DockerComposeExecArgument.arguments; import static com.palantir.docker.compose.execution.DockerComposeExecOption.options; import com.palantir.docker.compose.DockerComposeRule;  public class TestClass {     public static DockerComposeRule docker;     public static void testMethod() {         docker.exec(options(), "pps-control", arguments("bash", "-c", "./build/doControlStuff.sh 123456"));     } }   But haven't been able to figure out how to use it (with correct syntax), any help would be appreciated with actual code example, thanks!  My Docker version is 18.03.0-ce, build 0520e24


Show that some monomial ideal is primary

Show that $I=(X_{k_1}^{a_1},...,X_{k_s}^{a_s})$ is $(X_{k_1},...,X_{k_s})$-primary.   I noticed  that $$\sqrt{({X_{i_1}}^{a_1},...,{X_{i_k}}^{a_k})}=\sqrt{({X_{i_1}}^{a_1})+\cdots+({X_{i_k}}^{a_k})}=\sqrt{\sqrt{(X_{i_1})^{a_1}}+\cdots+\sqrt{(X_{i_k})^{a_k}}}=\sqrt{(X_{i_1})+\cdots+(X_{i_k})}=\sqrt{(X_{i_1},...,X_{i_k})}=(X_{i_1},...,X_{i_k}).$$ I have to show that $I$ is $P$-primary (where $P=(X_{k_1},...,X_{k_s})$), i.e., if $u v\in I$ then $u\in I$ or $v\in P$. I tried to prove that if $u\notin I$ and $v\notin P$ then $uv\notin I$. (There is a similar question, but the answer is too hard for me.)


Best way to convert an ArrayList to a string

I have an ArrayList that I want to output completely as a String. Essentially I want to output it in order using the toString of each element separated by tabs. Is there any fast way to do this? You could loop through it (or remove each element) and concatenate it to a String but I think this will be very slow.


Prove that the sum of all positive integers $k$ with $1 \le k < n$ and $gcd(k,n)=1$ is $1 \over {2}$$n\phi(n)$  I know that there's a duplicate of this question out there, but only hints were given. Any help with a formal proof would be much appreciated.


Stuck in integration: $\int {\frac{dx}{( 1+\sqrt {x})\sqrt{(x-{x}^2)}}}$

$\displaystyle\int {\frac{dx}{( 1+\sqrt {x})\sqrt{(x-{x}^2)}}}$   $=\displaystyle\int\frac{(1-\sqrt x)}{(1+x)\sqrt{x-x^2}}\,dx$      $=\displaystyle\int\frac{(1-\sqrt x+x-x)}{(1+x)\sqrt{x-x^2}}\,dx$   $=\displaystyle\int\frac{\,dx}{\sqrt{x-x^2}}-\displaystyle\int\frac{\sqrt x(1+\sqrt x)}{\sqrt x(1+x)\sqrt{1-x}}\,dx$   I have tried the above integration a lot . But not able to solve further .   Please give me some hint how to proceed or some other method


*Italic* text formatting doesn't seem to work on Android Chrome

Recently I commented on  question   and the text did got bold but the italic word didn't seem to get italic on Android Chrome(Latest Ver.), but when I saw from the PC browser, it rendered as it should...  I've attached a screenshot of my phone ...


Open source computer algebra systems for general relativity

I would like to use an open source computer algebra system (CAS) for research in general relativity. Kindly suggest a good choice between Ipython and Sage. I am more interested in the theoretical aspect rather than numerical computations.


How to prevent laptop from going to sleep when SSH'ing to it?

I have used dconf settings to prevent my laptop from going to sleep when the lid is closed. This seems to require that there's a user logged in so it's not a global setting (is there a global setting somewhere?).   However, when I log in via SSH the laptop soon goes to sleep. So somehow the SSH login overrides the GUI login.  Is there something I could do to prevent this?


Is there any way to know when I will receive my UK visa?

On May 9, I applied from Rome using the UK visa center. Two months have passed, and I have not been given any decision on my application. I submitted my visa request on the basis of my husband's Italian passport. It's been 70 days without any response. Is there any way to know when I will receive my visa?  Here's what the status screen shows:


Find the value of $\displaystyle\int_{|z|=2}\frac{e^{1/z^2}}{1-z}dz$   The first idea I had was to apply Cauchy's integral formula. But can this be done? $e^{1/z^2}$ is not holomorphic on the interior of $|z|=2$. Still, if we would apply this we would obtain:  $\displaystyle\int_{|z|=2}\frac{e^{1/z^2}}{1-z}dz=-2\pi ie$.  Another way I think, is to apply the residue theorem. For $1-z$ has a simple zero at $z=1$ and $e^{1/1^2}\neq 0$, then the residue of $e^{1/z^2}/(1-z)$ at $z=0$ is $-e$. Again we obtain $2\pi iRes(g;0)=-2\pi ie$, where $g=\frac{e^{1/z^2}}{1-z}$.  But again, it seems to me this is not right because $g$ has two singularities, at $z=1$ and $z=0$. What we might do about $z=0$? The answer is not $-2\pi i e$?


Command-line to switch between profiles in gnome-terminal

I created a new profile for gnome-terminal and I can switch between "Implicit" profile and the new created profile as you can see in the below image:  Now I wonder how can I switch between profiles using a command-line/script or maybe using a shortcut for this.  Note: Solutions like: gnome-terminal --tab-with-profile=Implicit && exit   are excluded because I prefer not to close and open another terminal or get another terminal window in this process of changing the profile.


I wrote a code block, but I am not sure it is thread safe.  List<Task> tasks = new List<Task>(); foreach (KeyValuePair<string, string> kvp in result) {     var t = new Task(async () =>      {         int retries = 0;         bool success = false;         try         {             while (retries <= _maxRetries && !success)             {                 await doSomething(kvp.Value);                 success = true;             }         }         catch (Exception e)         {             retries++;         }          if (retries == _maxRetries)         {             //TODO: need to do smth about it         }     });     tasks.Add(t);     t.Start(); } await Task.WhenAll(tasks);   Can I rely on the fact that when the compiler sets the task he uses a safe  value, meaning that as long as Im in the loop and the task haven't stated yet, the values set are ok?  Because, I think that after the first retry of the while loop, the kvp object won't be as he was when the task ran at first time.  If its in-fact not thread-safe, which I think it really isn't, how can it be fixed?


On evaluating $\int_0^\infty e^{-x^2}\,dx$

Are there any other methods to integrate the following integral than the ones cited on the ? Maybe with a more elementary tool set?     $$\int_0^\infty e^{-x^2}\,dx$$     Addendum: I am not looking for proofs that involve double or triple integration.


Declare a c++ interface that allows multiple implementions

I want to have different implementation hidden behind a unique interface. I tried the answers to , but it seems that the only thing that it does is to force developers to implement certain methods. Using the answer to the question mentioned, this is what I'd like to do. #include <iostream> using namespace std;  class Interface {     public:         virtual ~Interface() {}         virtual void OverrideMe() = 0; };  class Implementation1 : public Interface {     public:         virtual void OverrideMe()         {             cout << "1" << endl;         } };  class Implementation2 : public Interface {     public:         virtual void OverrideMe()         {             cout << "2" << endl;         } };  int main(int argc, char *argv[]) {     Interface a = Implementation1();     Interface b = Implementation2();      a.OverrideMe(); //expecting 1     b.OverrideMe(); //expecting 2 }  This does not compile, and I could find a way to have a type that allows different behavior based on the constructor. Even if I add the Parent class mentioned in the answer, the program does not compile.


I am developing a program that continually sends a stream of data in the background and I want to allow the user to set a cap for both upload and download limit.  I have read up on the  and  alghorhithms, and seemingly the latter seems to fit the description since this is not a matter of maximizing the network bandwidth but rather being as unobtrusive as possible.  I am however a bit unsure on how I would implement this. A natural approach is to extend the abstract Stream class to make it simple to extend existing traffic, but would this not require the involvement of extra threads to send the data while simultaneously receiving (leaky bucket)? Any hints on other implementations that do the same would be appreciated.  Also, although I can modify how much data the program receives, how well does bandwidth throttling work at the C# level? Will the computer still receive the data and simply save it, effectively canceling the throttling effect or will it wait until I ask to receive more?  EDIT: I am interested in throttling both incoming and outgoing data, where I have no control over the opposite end of the stream.


How do I remove Windows but keep Ubuntu?

I want to keep Ubuntu but remove Windows.


It seems like I am stuck on such a simple problem:  How to I find the antiderivative of $\cos^2x$? I have tried partial integration, it doesn't seem to work (for me). Some help on how to integrate it would be nice.


I am doing a multivariate Cox regression, I have my significant independent variables and beta values. The model fits to my data very well.   Now, I would like to use my model and predict the survival of a new observation. I am unclear how to do this with a Cox model. In a linear or logistic regression, it would be easy, just put the values of new observation in the regression and multiply them with betas and so I have the prediction of my outcome.  How can I determine my baseline hazard? I need it in addition to computing the prediction.  How is this done in a Cox model?


Can someone explain why i got this strange "artifact". I'm following a tutorial.


Does an integral operator with a symmetric integrable kernel have to be bounded on $L^2$?

Suppose $K(x,y)$ is a symmetric kernel. Let $\phi\in L^2(\Omega)$, where $\Omega$ everywhere is a domain in $R^n$.  Can $\int_{\Omega}K(x,y)\,\phi(y)\,dy$ belong to $L^2$?  In other words can an inequality of the type  $$ \left\|\int_{\Omega}K(x,y)\,\phi(y)\,dy\right\|_{2} \leq \|K\|_{L^1(\Omega\times\Omega)} \|\varphi\|_{2} $$ exist?


I came across an issue in python appending to a list. The code I implemented was:  a=[1,2] b=[3,4] a.append(b) b.append(5) print a print b   My understanding of python append was that the expected output of this code would be:  Expected Output  a=[1,2,[3,4]] b=[3,4,5]   But the actual output is something different. Actual Output  a=[1,2,[3,4,5]] b=[3,4,5]   I just want to know why this happened.  Since I appended the list b to a, before appending 5 to b, list a should have [1,2,[3,4]]


JQuery click event not working on dynamically loaded element

I have a page of dynamically loaded elements that respond as they should with click events. When I click on one of the elements the data loads into a shopping cart and that what's not responding. Specifically, it's a trash icon.  The window does not refresh when I click on the item to send it to the cart.  This sends the data to the cart. It is not wrapped in $(document).ready() fyi  $("#product-add-to-cart").click(e => {        let cart_data = ""       let modal_data = ""        const cartImg = image1       const itemTitle = title       const subTotal = parseFloat(subtotal.innerText)        // --------- Added to Cart -------------       cart_data += `<img src="../${cartImg}" alt="cart-img" id="cart-image">`       cart_data += '
'       cart_data += `<span id="cart-item-title" class="font-weight-bold mb-0">${itemTitle}</span>`       cart_data += '
'       cart_data += '
'       cart_data += '$'       cart_data += `<span id="cart-item-price" class="cart-item-price" class="mb-0">${subTotal}</span>`       cart_data += '
'       cart_data += ''       cart_data += '<ion-icon name="trash"></ion-icon>'       cart_data += ''        $(".cart-item").html(cart_data)   These are the functions I've tried. This is in a different JS file but I tried the functions in both files and it was the same.  $("#cart-item-remove").click((e) => {     console.log(e.target)   })   $("#cart-item-remove").on("click", "a", function(e){       console.log('delete')   })   I found other similar threads and one suggested .on() but it has an additional argument and I wasn't sure how to apply it.


How do I compute the limit of this integral: $\lim_{n\to\infty}\int_{0}^{\infty}\frac{\sin(\frac{x}{n})}{(1+\frac{x}{n})^{n}}dx$?

I'm trying to compute the limit of the integral $\displaystyle\int_{0}^{\infty}\frac{\sin(\frac{x}{n})}{(1+\frac{x}{n})^{n}}dx$ as $n$ goes to infinity. I tried and realized that this is probably not an elementary limit computation. I'm completely lost as to what result to use. Convergence theorems of Lebesgue integrals didn't get me far. Is this a problem of Fourier Analysis? I'd like to know of a way to do this.


Log file extract data and append back same line

I have a snort.rule file, I need to extract cve numbers followed by reference key from the line and append them back in msg field of the same line inside flower brackets, below is the old log.     alert udp $HOME_NET 1900 -> any any (msg:"ET INFO UPnP Discovery Search Response vulnerable UPnP device 2"; content:"Intel SDK for UPnP devices"; pcre:"/^Server\x3a[^\r\n]*Intel SDK for UPnP devices/mi"; reference: /infosec/blog/2013/01/29; reference:arch/UPnP-arch-DeviceArchitecture-v1.1.pdf; reference:cve,2012-5958; reference:cve,2012-5959;sid:2016303; rev:4;)   Required output is below, bold ones are the new changes,     alert udp $HOME_NET 1900 -> any any (msg:"ET INFO UPnP Discovery Search Response vulnerable UPnP device 2 {cve,2012-5958 cve,2012-5959}"; content:"Intel SDK for UPnP devices"; pcre:"/^Server\x3a[^\r\n]*Intel SDK for UPnP devices/mi"; reference: /infosec/blog/2013/01/29; reference: arch/UPnP-arch-DeviceArchitecture-v1.1.pdf; reference:cve,2012-5958; reference:cve,2012-5959;sid:2016303; rev:4;)   I am able to extract the CVE numbers, but appending back I am not getting  cat /tmp/snort.rule | grep -o -E -e 'sid:[^;]+' -e 'reference:cve,[^;]+'


I am using the Koma-script book class (scrbook) to draft a manuscript. The publisher has a very strict requirement on the margins of the pages.   I define the margins with the DIV command:  \documentclass[fontsize=14pt,a4paper,DIV=7,twoside,chapterprefix=on,draft]{scrbook}   This seems to work well for most of the document, except occasionally, there will be a word that goes over the margin. Is there a way to enforce strict guidelines about the margin?  Please see this screen-shot:     I tried reducing the font size by a couple of points, but it breaks the margins at other points:    I am using the microtype package, but it doesn't seem to eliminate all the over-runs.   Secondly, is there a way or a tool to automatically check to see if any part of the text, figures or tables have gone over a 3cm margin requirement? (My publisher seems to have an automated tool that marks the sections over the margin).


I accidentaly deleted all chat history of one of my contacts. Could anyone help me to get back all this messages?


I am using mac, and /etc is just a symlink to /private/etc, which contains hundreds of (important) configuration files, and the total size of /private/etc directory is smaller than 1 MB.  Is it a good way to backup these files using git? If not, why?  What might be some side effects?  Edit: as user ivanivan pointed out, there might be security concerns for some file containing passwords or keys. Can you give me some example of these files? (e.g. ssh keys and /etc/shadow)  Edit: maybe I can encrypt the .git dir before pushing it to a private remote repo?  Edit: git doesn't track file permission and files in /etc have all kinds of permissions. using git may cause some serious problems. On the other hand, etckeeper handles file permissions properly.


How to make grub menu appear instead grub minimal bash-like in booting?

This keep happening when I install the Ubuntu as a dual boot for my laptop. I get a black that appears when booting with the following messages.  Minimal BASH-like line editing is supported.    For the first word, TAB lists possible command completions.  Anywhere else TAB lists possible device or file completions.     grub>   grub>   grub>   grub>   grub>   grub>   grub>   grub>   grub>    I have to enter these commands like this:  grub> set prefix=(hd0,msdos6)/boot/grub/  grub> insmod normal  grub> normal   And the GRUB menu appears. How to make my GRUB menu appear without having to type those command at my GRUB prompts?  I tried sudo grub-install and it give me this error message.    I tried to check if i have chosen the right disk, which come two possibilities, /dev/sda1 and /dev/sda6, but neither of these two works, and they gave the same error message.  /dev/sda1/    /dev/sda6


How do I turn an input String's characters to lowercase?

I am trying to create the following program in which I need to turn the input String's characters into lowercase to ease my work.  I tried using toLowerCase(); first but it didn't work. Then I tried using toLowerCase(locale); and yet I have not succeeded.  public static void  Mensuration() {     Locale locale = Locale.ENGLISH;     Scanner inputz = new Scanner(System.in);     System.out.println("Which kind of shape's formula would you like to find out.2D or 3D?");     char dimension = inputz.nextLine().charAt(0);     if(dimension == '2') {System.out.println("Okay so which shape?");     String dimensiond = inputz.nextLine().toLowerCase(locale);     if(dimensiond == "rectangle") {System.out.println("Area = length x breadth\nPerimeter = 2(length + breadth)");}         }         }   I expected the program to give the accurate output but the thing that happens is that there is no output actually!!


Base change and irreducibility/reducedness/connectedness in Qing Liu's book (3.2.7 and 3.2.11 using 3.2.6)

This is from Qing Liu's Algebraic Geometry and Arithmetic Curves (page 89). When he proves (c), he first prove the result when $K/k$ is finite, and then says that the general case immediately follows from the finite case and lemma 2.6 (posted below). I have no clue of how the lemma can be use to reduce the general case to the finite case.   Moreover, there is a remark pictured below that also uses the lemma 2.6 and once again I'm confused about how to use it. How can I complete these details?


Standard example where Jacobson radical not equal nilradical

Is there a standard example in commutative algebra of a ring where the jacobson radical does not equal the nilradical?


I am looking for a Latex command to print the mathematical contradiction symbol, which is the upside-down T.


Filipino Citizen with Europe visa holder

My husband and are i both Filipino citizen with a philippine passport  and will travel home to philippines from Norway with almost 11hrs lay over in Incheon South Korea. We both have a valid Norwegian residence visa. Do we need a visa for us to go out from the airport?Thank you.


i was trying to make an eye, and this happened.  is there a way i can texture a sphere without it replicating the texture?


Recover deleted data with rm -rf on Wubi?

I accidentally deleted /home with sudo rm -rf.  I tried to restore it with testdisk, but because Ubuntu is from Wubi, it cannot list the filesystem and I don't know another way to do this.  How could I restore my data? It's important.  I'm using 10.10 on Wubi


My keywords are decreasing - what should I do?

I have a pet related site and posted 8 articles 2 months ago. Last month when I checked Google Search Console (search analytics) all my targeted keywords (8) for those articles were visible and they were moving forward.   But when I was checking for this month, I saw all those main keywords (8) are gone for those 8 articles.  Note: All articles are fresh, and they were checked for plagiarism, grammar, and that the word-count exceeded 750 words.  I just have a feeling that doing some quality backlinks will get those keywords back again, but I'm not sure about it. What should else should I do to help with this?


Proof of radius of convergence exponential function

Suppose one is trying to find the radius of convergence of  $$ \exp(x)=\sum\limits_{k=0}^{\infty} \frac{x^k}{k!} $$  This "proof" was given in the lecture: $$ \begin{align} r =& \frac{1}{\limsup\limits_{n \rightarrow \infty}\sqrt [n]{|a_n|}} \\ =& \frac{1}{\limsup\limits_{n \rightarrow \infty}\sqrt [n]{\frac{1}{n!}}} \\ =&\lim\limits_{n \rightarrow \infty} \sqrt [n]{n!}\\ r=& \infty \end{align}$$  Other proofs involving the ratio test also seem to inspect the convergence of $\frac{1}{k!}$ instead of $\frac{x^k}{k!}$. Why is one allowed to substitute $\frac{1}{k!}$?


Can you take different archetype options at different levels?

Once you've picked a subclass option at level 3, could you later take a different subclass option, or do you lock into a specialty at level 3 and then run with it for the rest of that class' progression?  For example, as a rogue, if you took the "Thief" archetype at level 3, giving you access to Fast Hands and Second Story Work, could you then take the "Assassin" archetype to give you the specific benefits that archetype gives instead of the "Thief" ones?  The  seems to imply that you couldn't:     At 3rd level, you choose an archetype that you emulate in the exercise of your rogue abilities: Thief, detailed at the end of the class description, or one from another source. Your archetype choice grants you features at 3rd level and then again at 9th, 13th, and 17th level.   but I'd like a more certain answer, especially one that refers to archetypes in general. Also I'm not ashamed to admit I'd prefer a source with some authority that tells me you can mix and match, but I am looking for the truth of the rules when all is said and done...   Different to  because the no on that demonstrates that you can't re-take a level of the same class. Taking different features for different levels is not the same thing, and would work differently. Similar to  but that one was specific to monks - which is why it didn't show up on any searches I did, and why it wouldn't on the searches of others. This question is specific enough to be clear and precise, but broad enough to be useful to others who aren't in the exact same situation/using the same class.


I want to have Windows in Android, Is it possible to install windows in android tablets?


Fantasy book about a girl who eats her mother's sin, and then travels with a menagerie of animals

Looking at someone else's question, I had this book come to mind all of a sudden. I read it somewhere in the 1998 to 2002 timeframe while I was in Dayton, OH (probably 1999-2000 because I vaguely remember that the snow storm the day I read it shut down my Intro to Religion class, which I took in that timeframe). It was a paperback book, probably from one of the main publishers like DAW or Baen. It showed a girl on a mount, I think a horse, with animals also riding with her. I believe she was in a dress, maybe riding side-saddle. There might have been a decrepit knight (old, armor badly fitting, drooping lance) on the cover as well.  What little I remember of the plot was that the girl's mother died. A piece of black or brown bread was placed on her chest as she died and the daughter ate the piece of bread to consume her mother's sins to ensure she'd go to heaven (pretty standard "sin eater" plot point as per the Medieval practice) with the idea that she had her life ahead of her to atone for those sins. For some reason, she leaves the village immediately afterwards, accompanied with a bunch of animals that she could communicate with. The only one I recall distinctly (and she might have picked it up during her travel) was a turtle or tortoise (probably the latter). I mainly remember that because somewhere near the end of book, she's obtained her goal (which I don't remember what it was) and the tortoise has found a mate, and there's a description of the loud clacking that ensued as the tortoises mated and their shells collided.  I think maybe the half-remembered knight was a plot point, someone she met on her travels and accompanied her. Maybe he wound up as her romance? That part is a lot vaguer in my head.


Creating rings from existing polygons using QGIS?

I have been given a shapefile from a client that features pivots, yet they were recorded as 10 circles overlapping. The software my company uses requires that these polygons be rings that don't overlap. I have read about the clip and difference tools, but I think I'm going about it the wrong way.   Can anyone help me clip these polygons so they are rings and not overlapping circles?   I have attached a screenshot of what I mean.


Setting up proxy to ignore all local addresses

I am trying to bypass the proxy for all addresses that are local network addresses.  Such as  and  and   Is there an easy way to do that?


No matter how many lights or suns I add, this shiny model stays dark

Very new to blender, first time question.  I could not find a similar problem searching existing answers.  I have a rendering, and no matter how many lights or suns I add, this model stays dark.  That's a light colored wood texture that appears dark.  This is an imported STL file.  It seems like no matter how many lights I add, it stays the same amount of dark.  You can see my settings in the next photo.  I have a sun, a point light, and spot light all by the model, but no difference weather I turn them on or off.    Thank you for any help.


I’m a 14 year old girl, and I was wondering what I should do if my parents want a divorce?  My parents (50 and 55) have been married for over 20 years. But I’ve noticed some things in the past year or two that put me on edge. Like they’d fight about the smallest things, like “Did you do this yet?” or something along the lines, then they’d fight back and forth because they misunderstood each other (this could be due to the fact that my moms second language is English). This happens every other week or so. Especially when our family goes on vacations, they fight even more.  My dad is more of a guy who plans things way ahead and gets upset and angry if things don’t go exactly his way. My mom is a little more flexible. Though, she just blames people for problems she created a lot of the time.  They both have a narcissistic parenting style. They never really gave my brother or I emotional support, but instead give us financial support, and so they ignore any mental illnesses that I tell them I have, no matter how much I explain. I know this, because about a year ago, our family went out to dinner. My brother told us that he’s depressed because we live in such a rainy place. My dad got angry, and threatened to leave the family. My mom made me swoop in, and fix everything. What if I had told him that I was actually depressed, would he have divorced my mother?  And ever so recently, my brother (16) has been playing video games, and his grades have been dropping. We aren’t supposed to play video games on the weekdays in the first place. My mom and dad have been arguing what to do with him. My mom told me my brother is going to be the reason they divorced. All of 3 of my dads siblings have gotten a divorce, so the signs are not well.  Another problem is, my mom is a stay at home mom, and didn’t finish college so if they divorce, it’s be hard for her to get a job. Because I do not plan on staying with my dad, despite him being the money maker. We disagree on things religiously and politically.  Sorry this is pretty long, any tips on what I should do? Thank you.


Why isn't Apache Traffic Server updated official package manager channels?

So I'm trying to get ATS working on a new server. Noticed the official apt-get install trafficserver is only version 3.2.x but if I download and build ATS from code I'm at version 5.3.0.  I'm having issues with getting it running properly from source (built and configured fine but somehow is not starting properly). I've been looking for an updated 5.3.x package but can't find any.   Is there any reason why the official package management/distribution doesn't have this up to date with the latest ATS version?


How can I get rid of this black hole in my minecraft world?

I have interesting bug that I have experienced before but has gone away on its own. This one is not going away though.  I have a giant stripe or chunks missing from my desert biome, I would say probably 7 chunks long.  I'm guessing the chunks are corrupted or something, what was hoping to figure is whether it can repaired or reverted.  Here is a picture of the problem.


Is it possible to get/where can I get consumer level paid support

I've installed Ubuntu on my parents' machines, but there are some consistant problems that I can't resolve. Unfortunately, setting the issues out to the different channels (ask ubuntu, forum) didn't help. Is there any way I can get paid support for individual customers, via Canonical or otherwise? It seems Canonical doesn't offer this (anymore).


I have been stuck for several days on this old Analysis problem (I am doing some study on my own).  I have tried several things (which I'll indicate below), but I cannot seem to figure it out.  Here is how the problem is presented: Problem: "Let $f$ be a continuous real-valued function on $[a,b]$.  Suppose there exists a constant $M \geq 0 $ such that $$|f(x)| \leq M \int_a^x |f(t)| dt$$ for all $x \in [a,b]$.  Show that $f(x)=0$ for all $x \in [a,b]$." My Thoughts: I have tried using the mean value theorem iteratively, but that seems to always lead me down a dead end road.  I deduced that $f(a)=0$.  If only $f$ were assumed to be differentiable, then maybe I could play with trying to get the derivative to be $0$, but unfortunately it's only continuous.  My other thought was to (somehow) use the condition to show that $\int_a^b |f(x)| dx = 0$.  I also played around a bit with contradiction, but to no avail.  Even if one of these hair-brained thoughts is correct, I am not really sure what to do next. If you have any ideas, suggestions, or solutions, I would really appreciate it if you are willing to share them.  Thank you for your time.


Make urls in plain text files into clickable links

I have a large file of plain text on Mac OSX that contains many http(s) URLs. For example:  blah blah https://www.stackexchange.com blah https://www.stackoverflow.com blah blah https://www.google.com blah   What's the easiest way to view that text in a way that I can click on each link and open it in a web browser?  I would prefer a solution that doesn't require uploading the text file to the Internet.


How to use Find Familiar 'spell delivery' aggressively without getting the familiar killed

So I've decided to choose the Arcane Trickster path for my Rogue. One interesting spell I saw was . The familiar can't attack but it can 'deliver' spells.     Finally, when you cast a spell with a range of touch, your familiar   can deliver the spell as if it had cast the spell. Your familiar must   be within 100 feet of you, and it must use its reaction to deliver the   spell when you cast it. If the spell requires an attack roll, you use   your attack modifier for the roll.   If I understand this correctly the spell is cast in the turn of the rogue and immediately delivered through the familiar as a reaction.   This means that the familiar has to be standing next to the enemy before its the rogue's turn and can only move away on its own turn. Leaving the enemy time for an attack. Since all familiars have a very low AC (13 max) and no HP to speak of, I do not understand how I can keep my familiar alive in combat.


Confusion about random variables and what they mean

I am not a statistician, and just try to understand a concept. According to Wikipedia,      A random variable is defined as a function that maps outcomes to   numerical quantities (labels), typically real numbers. In this sense,   it is a procedure for assigning a numerical quantity to each physical   outcome, and, contrary to its name, this procedure itself is neither   random nor variable. What is random is the unstable physics that   describes how the coin lands, and the uncertainty of which outcome   will actually be observed.   My understanding is,     The domain of a random variable is the set of possible   outcomes, and the range of a random variable is whatever we   set it to be. For instance, if $\mathcal{X}$ was a random variable   for the coin tossing random process, both of the followings would   still be proper to define: $$\mathcal{X}: > \{\text{head,tail}\}\rightarrow \{0,1\}\ \ \ \text{OR} \ \ \ > \mathcal{X}: \{\text{head,tail}\}\rightarrow \{102,321312\}.$$ Random   variables are the starting block for doing computations. That's all   they do!   Is this correct?   Now, I am trying to understand the following statement from  paper:     Suppose we are given a positive function $f : \{1 ... m\} \rightarrow > R^+$, which describes the unnormalized mass of a discrete random   variable $I$,      $P(I\in B) = \sum_{i\in B}\frac{f(i)}{\sum_j^m f(j)}, \text{ where } > B\subset\{1...m\}$   My immediate reaction when I hear the term function is to assume an infinite vector. In this case the $f$ vector length is bounded by $m$, and it encodes in each cell of the vector a positive real number. This can be considered as an unnormalized probability vector of a discrete random variable $I$, whose domain is $\{1 ... m\}$, and board is $R^+$. So far, this is fine.   Now, what I don't understand is the notation in the $P(I\in B)$. What does it mean? How can a function $I$ be a member of set of integers from $\{1 ... m\}$? From what I understand $I$ is not a single value, but is a function. It seems the designed interpretation is that we assume a particular input of $I$, which means $P(I\in B)$ implicitly means $P(I(i\in{B}))$, which then can be rewritten as $\sum_{i\in B}P(I(i))$. Now, since we assumed $f$ to be the unnormalized probability vector representing $I$, we can use it to compute the probability of each of the $i$ assignments by just normalizing it $$\sum_{i\in B}P(I(i))=\sum_{i\in B}\frac{f(i)}{\sum_{j\in B}f(j)}.$$   So, subject to some refinements, I can understand the notation $P(I\in B)$, but I am not sure if what I described is accurate.


Problem creating a USB bootable disk for Windows 8

I don't understand how to make my usb bootable for installing windows 8.1 pro again as whenever I am trying to make my usb bootable and try to boot from it, the computer  says "no system disk or disk error please replace and strike any key".  I have a hp notebook compaq nc4400.


How can I achieve this aligned two-column word-list-like layout?

This is my first tex question. I couldn't find a duplicate since I'm not even sure how to describe this layout in English...It looks like this:  [item1]     [explanation of item1......may be very long             accross several lines, may contain math, and             need to be wrapped automatically]  [item2]     [explanation of item2.......................             ............................................             ....................]   The space between items and explanations should be adjustable (usually several tabs in vim).   I have tried the alltt package and use tabs(spaces) to get the layout, however, it cannot do automatic line wrapping and I have to manually break lines, so that's not really a solution.  Thanks in advance for any help.


What is the inventory item after the pogo stick?

I'm missing the item after the pogo stick in the inventory although I'm already at the castle, what is it and how can I get it?


How do I use Windows shortcuts in Ubuntu?

I am new to Ubuntu. I want to ask if it is possible to use the same Windows shortcuts in Ubuntu. For example, when I type Alt+123 in Windows, I create a left curly brace.


Let $ f: \mathbb N  \to \mathbb N$ be a bijective function such that: $$ \sum_{n=1}^{\infty} \frac{f(n)}{n^2} < +\infty$$ Now my question is does any such $f$ exists?


Making an external hard drive "write protected"

Under Windows 7, what would be the easiest way to make data on an external hard drive or usb flash drive such, that it cannot be deleted nor overwritten, using various (regular, nothing that would fit into "security" category) software like word processors, image viewers and so on.  The idea is to make the data on the disc/drive non-modifiable.


I need a list of integers from 1 to x where x is set by the user.  I could build it with a for loop eg assuming x is an integer set previously:  List<int> iList = new List<int>(); for (int i = 1; i <= x; i++) {     iList.Add(i); }   This seems dumb, surely there's a more elegant way to do this, something like the


How to modify waiting time of the dual boot menu

How can I change the waiting time of the dual boot menu (starting moment) into my Ubuntu Studio 15.10 installation? Can I?


90s American live action series set on a space station, with gem implanted in hands dictating who one could marry

So I remember this show that was based in a space station (more like a hub with no political affiliations)  some of the main characters were doctors, and the thing today's sticking out to me is that everyone had to have a gem implanted I their hand and the colour of that gem dictated who you could marry/date.   This was a live action series, colour, in America. Started in like the 90s. No idea how long it ran.  Sorry I'm not giving a lot of information.   Edit: So it might be Island City, I'm going to watch the whole thing to make sure, but I really appreciate you guys thinking about this. I guess I can't trust my little kid memories.   Final edit! That was it! Thanks everyone for the help. Convinced that they need to remake it. It was awesome.


What is the number of fixed plaintexts of RSA

Considering RSA, $n=p\,q$ with $p,q$ odd primes and the public key $(n,e)$,  where $\gcd(e,\phi(n))=1$,  I need a hint on how to show that the number of plaintexts with $E_e(x)=x$ equals  $\gcd(e-1,p-1)\cdot gcd(e-1,q-1)$. So we are searching for the number of plaintexts that remain unchanged by the encryption function using the public key.


Reading zero as O (fifteenth letter in English)

I’ve observed that people read the digit zero  as oh  as though it were the letter O. For example,  in a telephone number where 0800  is oh eight hundred.  Why?  Where was this decided, or can anyone prove that it is correct?  Where can we use this form?


How do I remove the LAMP stack so I can start over?

I'd like to start over with my webserver and I'd like to reinstall all the LAMP packages, how do I do that?


Need to disable down key on my Laptop Keyboard

I need to disable the down arrow key on my laptop. I have a windows 7 Gateway Quad Core laptop. On searching the internet I found similar questions of how to without any response beyond replace the key or get a usb keyboard and disable the laptop one.


Is it possible to auto-mount a remote FS using sshfs upon instantiating a proper VPN connection?  Allow me to explain the scenario, I'm working remotely, to do that it helps if I can mount my home dir from a server in the office. To do that I need to vpn in. So within network manager I select the relevant VPN and connect. It connects but now I have to drop to the command line and mount my home dir on several machines.  If I forget to do one machine my local dev environment isn't as efficient. I suppose I could write a quick bash script to do this but I'd rather get it running automatically when I connect.


Show that $x^n-x-1$ is irreducible over $\mathbb{Z}$

Assume it is reducible, then $g(x)h(x)=x^n-x-1$ Note $g(0),h(0),g(1),h(1)=\pm1$ Then I am stuck.


Can having too many noindex pages hurt ranking?  Eg: 50,000 low quality noindex forum posts with 1,000 indexed quality posts.   Can those 50,000 low quality noindex forum posts affect for 1,000 indexed quality postsranking?


"More Stack Exchange Communities" link broken

On the mobile view, the top-left navigation menu has a header which is also a link titled "More Stack Exchange Communities":        This link is broken; it goes to  which is 404.  "Your Communities" is also broken. It looks like maybe the links are using the domain meta.stackexchange.com where they should be stackexchange.com.


Alternatives to Dmitri Bertsekas' Introduction to Probability and Sheldon Ross' A First Course on Probability

I have Ross' A First Course on Probability and Bertseka's Introduction to Probability book. However these two books do not exactly give me what I am looking for. The problem is  Bertsekas' book is introductory, while Ross' book explains expression $E[\ E[X\mid Y] \ ]$ just by briefly saying it is a function of $y$ if I remember correctly. I need a probability book which will make me feel comfortable with the symbols and letters rather than ready made formulas. I want to be able grasp when a random variable is a constant or when it is not. I want  to be able to read and understand equations involving both random variables and constants and when are interpreted as a rv. when they are not etc.


ARM compatibility between vendors, with and without RTOS (FreeRTOS)

I would like to know how much compatibility can I expect between ARM MCUs from different vendors.  For example, let's say I write a firmware using C language for a Cortex M0 using its CAN peripheral. Will I be able to port it to a Cortex M0 from a different vendor with no changes? (or at least minimal changes) Or peripherals are completely different between them?  And what about if I use an RTOS like FreeRTOS? Does FreeRTOS abstract from the hardware so I'm able to port my software easily?  Finally, are all ARM Cortex M0, M4, etc from all vendors supported by FreeRTOS? Or only specific models of specific vendors?


I started the Ubuntu trial from a CD, but can't subsequently install Ubuntu because 'something' (probably from a previous attempt) is on the hard disk, it's not a partition. Now I simply want to reformat the whole disk, how can I do it?


What are these green rulers along the top and side of this Illustrator document?

I recently opened an Illustrator file made by my employer's previous graphic designer and found that it had these rulers along the side that have the appearance of guides, but didn't go away when I hid guides, smart guides, or rulers. They're not a problem and I don't need to recreate them, I'm just wondering if anyone has any idea what they are because I've never been them before.


How do I substitute only first occurence with sed?

Original file claudio antonio claudio michele  I  want to change only the first occurrence of "claudio" with "claudia" so that I would get the following: claudia antonio claudio michele  I have tried the following: sed -e '1,/claudio/s/claudio/claudia/' nomi  The above command performs global substitution (it replaces all occurrences of 'claudio') . Why?


Apply brace expansion in "reverse order"

For example {a..c}{1..3} expands to a1 a2 a3 b1 b2 b3 c1 c2 c3.   If I wanted to print a1 b1 c1 a2 b2 c2 a3 b3 c3, is there an analogous way to do that? What's the simplest way?


Validate Bangladeshi phone number with optional +88 or 01 preceeding 11 digits

I am using the following regular expression to validate an Indian phone number.   I want optional +88 or 01 before 11 digits of phone.   Here is what I am using:  string mobileNumber = "+8801000000000"; if (new Regex(@"^([01]|\+88)?\d{11}").IsMatch(mobileNumber)){     MessageBox.Show("Mobile number is valide", "All information is required", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } else{      MessageBox.Show("Mobile number is not valide", "All information is required", MessageBoxButtons.OK, MessageBoxIcon.Error); }   How can I do it?   UPDATE  If I write mobile no. preceding 01, for more than 11 digit it notify validation mgs(Not valid mobile no.!). Well I used, it fails when 13 digit. It alters validation mgs wrongly.  Here is my code:   <input type="text" placeholder="Enter bKash wallet number"    class="form-control" ng-model="BkashWalletNo" ng-disabled="AutoConfirmed"      name="BkashWalletNo" ng-pattern="/^(?:\+88|01)?\d{11}\r?$/" />
Not valid mobile no.!