Should I apply my Schengen visa at the French or Swiss Embassy?

I have a question regarding my Schengen visa application for a personal trip. I am very confused and the Swiss Embassy employee I met today in my visa appointment claimed that I cannot apply for the visa from Switzerland and have to go to the French Embassy and rejected my application. So I wanted to confirm where I should apply.  I am travelling to Zurich, Switzerland for 2 days in June - specifically on June 15 to 16. Then, I plan to travel to Paris, France for 3 days in July, arriving on the night of July 12 and leaving early morning on July 15. Because I am travelling to Switzerland first, I thought I should apply there. However, the person at the Swiss Embassy said that I should apply at the French Embassy as my trip to France is 1 day longer and hence that is my main country. Is this true, though I am travelling there a month later?


Proving $\frac{1}{\sin(A/2)}+\frac{1}{\sin(B/2)}+\frac{1}{\sin(C/2)}\ge 6$, where $A$, $B$, $C$ are angles of a triangle

If $A$, $B$, and $C$ are the angles of a triangle, then $$\frac{1}{\sin \left(\frac{A}{2}\right)}+\frac{1}{\sin\left(\frac{B}{2}\right)}+\frac{1}{\sin\left(\frac{C}{2}\right)}\ge 6$$   I have used multiple trigonometric identities, but the situation becomes complicated. I also thought about the Sine Law. To be honest, I don’t think these techniques are suitable. Any suggestions?


Where should I ask questions about recommendations for software components

I've seen many questions being closed on SO because they ask for recommendations on which components to use because it is often a matter of opinion.  I know this may also be the wrong place, but where should I ask?  It takes so much time to read up on every components (just to find that at least half of them are outdated or just never took off) and write some software to try every remaining available component out...


The difference between simply installing software & adding to repository

I have a simple question coming from my mind.  What is the difference between :  sudo add-apt-repository ppa:cwchien/gradle sudo apt-get update sudo apt-get install gradle   And simply  sudo apt-get install gradle   Which one should i use & why?  Thanks for your time.


Problem in installation of gedit in Ubuntu18.04 LTS on Windows 10

I downloaded Ubuntu from the Microsoft Store and I have installed it. I tried downloading gedit using  $ sudo apt install gedit   I got this problem:    How do I resolve this problem?  EDIT: Attempts to resolve the problem  Attempt 1: I used sudo after suggestion and it didn't work.


What about the supposed aiming modifications when firing a weapon?  According to my research, when firing a weapon you are supposed to aim a little to the right when firing northwards and to the left when southwards. This is supposed due to the rotation of the earth. If that is so, it means that the moment the bullet leaves the gun it no longer moves according to the rotation of the earth.  By logic and common sense, the same behavior must be expected when planes leave Earth. Does Earth rotation effect planes?


Is there a word meaning positive envy in English?

I am looking for a word to mean positive envy as I don't want to sound negative and upset the person I am communicating with.  In Arabic we say 'yaghbitu - يغبط' which means you want/wish to have the same good that the other has and that you are happy that he/she has it without any insignuation that you wish they didn't have it or do not deserve to have it. The translation in English gives me 'envy' which is closer to 'yahssudu يحسد' in Arabic which has negative connotation. So is there a better word than 'envy' and if not, is it safe and ok to use 'envy' in this context?


Are "weather sealed" gear tested or rated for their sealing?

Context  So I've been looking around at camera bodies and gear and noticed the more expensive ones have "weather sealing". From posts like , I understand how it is implemented. However unlike , I haven't seen DSLR/mirrorless camera bodies with IP codes or have an standards of such with any code (exception of smaller point and shoots?)  From this I can conclude they are defined per manufacturer and since they don't have any "standards" I can assume they may survive better but it doesn't mean they will. Since they don't have IP codes, I assume cameras going into water is bad, goes without saying I suppose. Given how vague they are, I don't know how beneficial it is?  Question  Are "weather sealed" gear tested for how good their "weather sealing" is?  Or is it more of the mentality of the, "every little bit helps" even if it's not a huge or noticeable amount?  Reference


My issue Usually when using percentages inside a margin property the browser uses the width of the nearest positioned ancestor as reference length. However I'd like to set the margins of my element relative to its parent's height. Is that somehow possible? Or am I stuck with a JavaScript solution? An example Specifically I'd like the following:   .child {   height: 1em;   width: 1em;   background: red;   display: inline-block;   margin: calc((100% - 1em) / 2);   /* margin: calc((5em - 1em) / 2); In absolute units */   /* margin-sizing: height; If only there was some magical property like this... */ } .container {   background: green;   height: 5em;   width: 15em;   position: relative; }

   Something
    To look like this:  I know that I could use absolute units in the example above. However I may not always know the exact height of the parent in a more complex or dynamic example. And I'd like to avoid JavaScript for this. Edit I should clarify something. My end goal is that the red div in the example above is centered vertically but also has the same distance to the left as it has to the top/bottom. Obviously I'm not bound to specifically use the margin properties. But the outcome of your solution should be the same.


Regarding running Watir scripts for UI Automation from Jenkins CI - How to hook up Jenkins and watir-automations

I already have Watir-Ruby scripts running on a macintosh which uses Firefox as the browser to run the automation.  I have been given a linux server where the Jenkins build is going on. I got to put my scripts in that server and the automation needs to kick off once the build is done. Will Jenkins on linux be able to trigger UI Automation on a macintosh or will the UI Automation run on the linux machine?


Ubuntu 16.04.1 : Unity still showing user list on indicator menu

I have my configuration scripts that hide the user list on the indicator menu on the right.  This was done using by setting the "user-show-menu" key to false in the  /usr/share/glib-2.0/schemas/com.canonical.indicator.session.gschema.xml  file.  This no longer seems to be taking effect, I'm wondering what changed. I tried this on both using my script (which replaces the xml file with the one already configured) and editing the existing file.  This works in 16.04  Did I miss something?  -yes, I did:   I was using gsettings from the root account with no effect on the user that was logged in, or any other users for that matter. updating the xml file in the directory works but only if  glib-compile-schemas is called on the schemas directory.   -C


I'm trying to center this image vertically inside a div. As you can see I've accomplished that, however, it's still pushed slightly towards the bottom of the div. I can't find any reasons why this would be and I've even tried a different image.   HTML:

   My CSS:  html, body {     margin: 0;     background: #F7B267; } .site-header {     background: #eee;     color: #555;     height: 3.125em;     line-height: 3.125em;     margin-bottom: 1rem; } .logo {     max-height: 75%;     vertical-align: middle;   }   Result:


How to check available time for add new time schedule?

I want to develop an application in which user can  allocate      time schedule to their group members, the issue is suppose I have already      schedule two different time and now again want to schedule time for the same      day then how I will check that the same time schedule is not already      allocated or not   Date    Start Time  End Time    status   15-09-2017  10:05   13:10   TRUE 15-09-2017  10:00   14:00   FALSE  because 10:00-13:10 is already scheduled 15-09-2017  08:20   09:00   TRUe 15-09-2017  09:30   10:05   TRUE 15-09-2017  09:40   10:05   false  `


Changing order of integration in Double Integral

Change the order of integration & evaluate it.  $$ \int_{0}^{2a} \int_{0}^{\sqrt{2ax-x^2}} \phi'(y) \frac{(x^2+y^2)x}{\sqrt{(4a^2x^2-(x^2+y^2)^2})} dxdy $$  I changed the order but could'nt solve it. Is there any 'tricky' variable substitution involved ? I couldn't solve it even with polar co-ordinates due to the presence of $ \phi'(y) $ factor in the integrand? Is there a way to circumvent this?


I can't change the parameters of a primitive after creating it in Blender 2.8

In Blender 2.7 you could achieve it like that:   In Blender 2.8, when I create a cylinder for example I see the window to change the parameters of the primitive but I can't interact with it.


I have Privacy: Record activity ON but how to view log and all the stuff?

Where can I find the recorded data and screen snaps and etc things ? I had tried to find them within :   ~/.local/share/zeitgeist   directory but there are the following files available and i don't know how to work with them to show all recorded data and history.  activity.sqlite activity.sqlite-shm activity.sqlite-wal fts.index   Help me how to open and view the log.  BTW Thanks in advance.


The badge:     Active member for a year, earning at least 200 reputation   I'm curious to how this is calculated.  Lets say i've been active for almost a year on the site and earned 250 reputation.   Lets also say that I gave away a bounty or engaged in other activity on the site that lowered my reputation below 200 before the anniversary.  Does the system look at the net total reputation on the anniversary day, or does the system take into consideration all of the reputation EARNED, not subtracted?


Question I know this is a duplicate of , i am still posting it because i want to know flaw in my approach.  Candidates were asked to come to an interview with $3$ pens each. Black, blue, green and red were the permitted pen colours that the candidate could bring. The probability that a candidate comes with all $3$ pens having the same colour is  $?$  My Approach Let $E=\text{chossing all three pen of same colour}=\binom{4}{3} \times 1 \times 1 \times 1=4$ i.e select which colour among red,blue,green and black and then there will be only $1$ choice Let $F=\text{possible way of selecting 3 pen}=4 \times 4 \times 4$ As there are $4$ ways to select colour of the pen and we have to choose for $3$ pens. Hence reqd probability$$=\frac{E}{F}$$ $$=\frac{4}{4 \times 4 \times 4}=\frac{1}{16}=0.0625$$ Where am i wrong? Please help!


Let $X$ be a simplex and $Y\subseteq |X|$ a simplicial complex. Can I construct a simplicial complex $X'\supseteq Y$ s.t. $|X'|=|X|$? Can I do it without introducing new vertices apart from $V:=X^{(0)}\cup Y^{(0)}$?  My first idea was to start with $X':=Y$ and repeatedly adding, for each $\sigma\subseteq V$ s.t. $\sigma$ is a nondegenerate simplex and $X'\cup \sigma$ is a simplicial complex, $X':=X'\cup\sigma$. However, does it work?


I had done a clean install of Ubuntu 18.04. I installed Skype from the Ubuntu Software Store. However when I wanted to start up Skype it crashed so bad that the Ubuntu user was also logged out (!) This happened on Wayland and on X.org.


How do I destroy all these user preferences UI elements?

I'm new to blender and for some reason when I clicked on "edit user preferences" from the dropdown menu of the wrench in the top left nothing happened, so I dragged the corner near it which  created a new toolbar somehow. I tried to drag that to close it but it made even more toolbars. I kept trying to close them but I only got more and more! Then I was somehow able to get it open as a pane in the main window, and the same thing happened when I tried to slide that one closed! Why is the even possible? Why would anyone ever want more than one? Is this real life? Is this just fantasy?


How do I roleplay a character more intelligent than I am?

What are some strategies and techniques for role playing a character that is more intelligent than you actually are? It's pretty easy to pretend to be someone who is less intelligent, but the reverse seems very difficult.


Change category checkbox into radio button

Hi i want to change my category checkboxes into radio buttons on post page, so i can select one category at a time. I tried plugin to change it but it cause my site so heavy.


What is it called when sound from next scene begins before the current scene is over?

Sometimes, in films the sound for the next scene will begin while the current scene is still playing.  For example, in Episode 3 of Season 5 of Game of Thrones, Arya is washing a corpse for the first time with the Waif and the viewer hears a man shout "Open the gate!" and a second later the scene switches to Petyr Baelish and his entourage escorting Sansa Stark through the gates of Winterfell. So, basically the sound switches over before the scene does.  What is the name for this kind of transition effect?


Calibre Error After Upgrade to Ubuntu 20.04.1

After upgrading from Ubuntu 18 to 20.04.1 I can no longer read .epub books with Calibre. On opening a book.epub file, the book is opened for editing and I get an error message reading "Failing to launch the worker process used for rendering the preview". The error details are: calibre, version 4.99.4 ERROR: Failed to launch worker: Failed to launch the worker process used for rendering the preview Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/tweak_book/preview.py", line 92, in run self.worker = offload_worker(priority='low') File "/usr/lib/calibre/calibre/utils/ipc/simple_worker.py", line 260, in offload_worker listener, w = create_worker(env=env, priority=priority, cwd=cwd, func='offload') File "/usr/lib/calibre/calibre/utils/ipc/simple_worker.py", line 130, in create_worker address, listener = create_listener(auth_key) File "/usr/lib/calibre/calibre/utils/ipc/server.py", line 141, in create_listener l = LinuxListener(address=address, authkey=authkey, backlog=backlog) File "/usr/lib/calibre/calibre/utils/ipc/server.py", line 110, in init self._listener._unlink.cancel() AttributeError: 'NoneType' object has no attribute 'cancel' I've tried reinstalling Calibre but that didn't help. Any suggestions? Thanks,


I get this error: pdflatex.exe: A connection attempt failed because

Good day all. I am getting this error:     pdflatex.exe: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. pdflatex.exe: Data: connect failed in tcp_connect()   which makes my code take very long to compile, although it seems to compile correctly. I am compiling with pdflatex. Has anyone experienced the same problem?  My script:  \documentclass[paper=a4]{article} % A4 paper and 11pt font size \usepackage[english]{babel} % English language/hyphenation \usepackage{amsmath,amsfonts,amsthm} % Math packages \usepackage{graphicx}  \begin{document} \begin{titlepage} \thispagestyle{empty} \end{titlepage} \setcounter{page}{1} \newpage \section*{Introduction} The purpose of this project is to \subsection*{Problem} The system to be analysed through the duration of this project is a two-car train, interconnected with a spring, as shown in Figure 1:\\ \newline \begin{figure}[h!]  \centering   \includegraphics[scale=0.5]{System1.png}  \caption{two-car train, interconnected with a spring}  \end{figure}  \newline  It was initially proposed to use the absolute displacements of the carts as state variables, but it turns out that this results in the system becoming unobservable. The choice was thus made to choose the state variables:\\  \begin{align} x =  \begin{bmatrix} \Delta \\ v_1 \\ v_2  \end{bmatrix}  \end{align}  where $v_1=\dot{z_1}$ and $v_2=\dot{z_2}$ are the speeds of cars 1 and 2, respectively.\\ Note that we are dealing with a third order system, as we have 3 state variables.  \newline  The state equation of the system is given by:\\  \begin{figure}[h!]   \centering   \includegraphics[width=0.5\textwidth]{state_eqn.png}  \end{figure}  \newpage and the observation equation by:\\  \begin{figure}[h!]   \centering   \includegraphics[scale=0.1]{obs_eqn.png}  \end{figure}  \newline We thus have a single input single output (SISO) system with the voltage going to the motor of the first car as the input and the speed of the first car as the output.\\  We now substitute the following constants into the dynamics matrix A, the input matrix B and the observation matrix C:\\ \begin{center} $M_1=M_2=1kg$\\ $K=40N/m$\\ $k=2Vs$\\ $R=100\Omega$\\ $r=2cm$\\ \end{center} We then get the following matrices:\\  \begin{align} A =  \begin{bmatrix} 0 & -1 & 1 \\ 40 & -0.01 & 0 \\ -40 & 0 & 0  \end{bmatrix}\\  \end{align}   \begin{align} B =  \begin{bmatrix} 0\\ 0.01\\ 0\\  \end{bmatrix}  \end{align}  \begin{align} C =  \begin{bmatrix} 0 & 1 & 0\\ \end{bmatrix}  \end{align}  \subsection*{Controllability and observability} Before we start the analysis, it will be useful to confirm that the system at hand is indeed controllable and observable.\\ \newline To be controllable, the rank of the controllability test matrix, defined by\\  \begin{align} Q =  \begin{bmatrix} B & AB & A^{2}B \end{bmatrix}  \end{align} has to be of the same order as the system. To be observable, the rank of the observability test matrix, defined by\\  \begin{align} N =  \begin{bmatrix} C' & A'C' & A'^{2}C' \end{bmatrix}  \end{align} has to be of the same rank as that of the system. Computing matrices Q and N and using the rank() function in MATLAB shows that the ranks of both matrices are 3, and thus equal to the order of the system. We now know that the system is controllable and observable and can thus use the tools at our disposal to design a controller for this system. \section*{Question A} Assuming all states are measured for feedback purposes, we will now determine the gain matrix   \end{document}


Is an increasing, bounded and continuous function on $[a,+\infty)$ uniformly continuous?

Supose $f$ is increasing, bounded and continuous on $[a,+\infty)$.   Is  $f$ uniformly continuous ?  I think yes. how to prove that?  My idea is to show there exists $X$ , $f$ is uniformly continuous on $[X,+\infty)$.  How to fix such $X$?


Potential for a general fictitious force?

In a general non inertial system four fictitious forces arise:   Coriolis Force, centrifugal Force, azimuthal Force, "translational" Force (due to linear acceleration of the origin of the system)   I know that I can apply Newtonian laws to the system if I take these forces into account. I also know that I can apply the work- energy principle, if I take the work of these forces into account.   What I am not sure about is: can I associate a potential energy to all of these forces? (I.e. consider a fictitious potential field). This is not trivial since the fictitious forces do not obey to Newton third law (--> no reaction). I also don't understand if I should consider there forces as internal or external to the system.  I ask this question because I read somewhere about centrifugal force potential.  PS only thing I am sure: the Coriolis force does no work --> no potential associated with It.


How exactly does a  work?  This is an extremely broad question. What code keeps things bouncing against each other, what code makes the player walk into a wall instead of walk through the wall? How does the code constantly refresh the players position and objects position to keep gravity and collision working as it should?  If you don't know what a collision engine is, basically it's generally used in  to make the player acutally hit walls and the like. There's the 2D type and the 3D type, but they all accomplish the same thing: collision.  So, what keeps a collision engine ticking?


Is every basis of an infinite-dimensional vector space with countable basis countable?

The question below is related to the fundamental idea that .  Suppose that $V$ is a vector space with countable basis $\mathcal{B}$, i.e., $|\mathcal{B}| = |\mathbb{N}|$. If $\hat{\mathcal{B} }$ is another basis, must it be countable as well or is it possible that it is uncountable? If so, is the proof (non-)trivial?


Confusion surrounding the geometric definitions of $\sinh$ and $\cosh$

$\cos x$ and $\sin x$ can be defined by rotating $x$ units around a unit circle: $\cos x$ is the $x-$coordinate and $\sin x$ the $y$-coordinate. However, I am struggling to understand the analogous definition for $\sinh x$ and $\cosh x$. I understand that a hyperbola can be defined as the set of all points satisfying $(\cosh t,\sinh t)$. However, this still begs the question as to how one can work out what $\cosh t$ and $\sinh t$ are in the first place. I know that the hyperbolic functions can be defined using exponentials, but I think a geometric interpretation would be nice.


Question about connection between Poisson and Gamma distributions

Assuming $X\sim\mathcal{P}(\lambda)$ and $Y\sim\Gamma(w,1)$ prove that $P(X\ge w)=P(Y\le \lambda)$. How this fact is lead from the connection between the poisson and exponential distributions?   I don't know from where to start. poisson is defined only for discrete situations but the exponential is only for continious situation. How can I prove the fact ? EDIT: for gamma distribution I wrote that $f_Y(y)=\frac{y^{w-1}e^{-y}}{\Gamma(w)}$, but I have problem with integrating it. About Poisson: its function is $\displaystyle \sum _{w_i=0}^w P(X=w_i)$ which I don't know how to sum into a final expression. How can I continue?


Why online brokerages sometimes allow free ETF buying

ETFs trade just like stocks, so I wonder how come questrade lets customers trade ETFs for free whereas they charge commission on stock trading? Any guesses? Furthermore, only buying is free but selling is not, which is all the more confusing.  Do they mark up the spread? Or are ETFs so liquid that the broker can afford not to charge a fee. I can ask the broker of course, but usually they say 'customer loyalty, customer appreciation etc.' and things like that.


I have a light dent in my wooden door, what is the best way to fix it?

I had created this small dent in my door and I am wondering how to fix it.


How was this shot in Contact (1997) really made?

There was this tricky mirror scene in      The effect is: the camera is moving backwards, always facing a character running towards something and keeping the same distance from that character (who does turns, goes upstairs, etc) and always facing it, during the whole shot. When the character's hand reaches (near the camera) what appears to be a cabinet door, and opens it, the cabinet's mirror moves on the side and the image we had moves with it, as if everything (or at least the last part of the run toward the cabinet) was filmed in the cabinet's mirror (with the camera facing the cabinet, not the character).  How was this scene really made?  Is it really a mirror shot or something else?


VIRUS on hp laptop.. win 10, hp pavilion gaming notebook

Ok so I have a virus. It's a beauty. It has almost my entire laptop, from ~$users and ~$NT.DAT all the way up to ~$recovery and ~$C: in lockdown.. plus has created bogus files EVERYWHERE (hp/HP/Hewlett-Packard, for example) that look all legit and ok until you get 3 folders deep and all there is is an .ini .DAT .log or .exe file that shouldn't exist. It's been an easy and effective way to prevent me from doing recovery, reset, repair, ANYTHING to get rid of it. Yes I'm willing to wipe the whole thing I'd only had the laptop a few weeks, and I got my pics off early. Also I think last night (after two weeks of being careful) in my frustration at its invasion i may have deleted some files actually necessary for the above functions.  edit  So my question is - is there any obvious solution I may have missed? All antivirus, malware removal etc software I have used has not recognised the problem. I have tried reset, repair, update, registry repair all with the same response - windows "insert fix here" ran into a problem - no changes have been made. Are there any obvious solutions I have missed?


Year doesn't appear sometimes in "Top Posts" from new user profile

Everything's said in the title.  Here's an example from my profile : some posts from 2014 appears such as, some don't.


I am trying to find the tangent that is common to two quadratic Bezier curves. Concretely, I want to draw the corner of a bending piece of paper, like this:  Theoretically it looks simple: Given a Bezier curve $B$ through points $P_0$, $P_1$ and $P_2$, and another one $G$ though $Q_0$, $Q_1$, $Q_2$, i.e.: $$ B(t) = (1-t)^2P_0 + 2t(1-t)P_1 + t^2P_2 $$$$ G(r) = (1-r)^2Q_0 + 2r(1-r)Q_1 + r^2Q_2 $$$$ 0 \leq t, r \leq 1 $$ , I am looking for a solution $(r,t)$ of this system: $$ B'(t) \cdot G'(r) = 0 $$$$ (G(r) - B(t)) = \lambda B'(t) $$ , that is: the tangent vectors are parallel and the vector between the tangent points is on the tangent. I first spent a couple hours on paper isolating $r$ in the first and substituting in the second, but I gave up given the number of terms that came up. Then I used Maple to help me do the calculation, and even it cannot tract it. I found answers online that gave roughly the same idea that I have here, but no calculation is ever done. My question: It there a more clever way to approach the problem, any transformation that would make the algebra simpler? N.B.  A numeric approximation is enough for my application. I tried a Taylor expansion in Maple, with no success. I am actually interested in an application where $P_2 = Q_0$, not sure if it really matters. I am interested in other ways to draw what I want, but I spent so much time trying to solve the equations above that now I'd like to see a math solution anyway.


How do I run an application with arguments from the command line without losing the terminal?

I use dwm as a window manager on Ubuntu, I like tiled windows and I like them as few as possible. I sometimes need to run an application (let's say it's the pdf viewer mupdf in x11) from the terminal, the application will be launched in a new window but the terminal from which I launched becomes this prompt-less console for that application to log whatever.  I use dmenu to launch applications, but sometimes an application needs arguments (file names) to start. I use uxrvt within x11 managed by dwm.


Inverse Fourier transform of $\frac{1}{k^2+a^2}$

I am trying to take the inverse Fourier transform of $\frac{1}{k^2+a^2}$. I know what the answer is (something like $e^{-|x|}$), but I'm having trouble actually doing the integral in the inverse Fourier transform.  First I noted that $\frac{1}{k^2+a^2}$ is even in $k$, so it's inverse Fourier transform is $$\frac{1}{\sqrt{2\pi}}\int_{-\infty}^\infty \frac{1}{k^2+a^2} \cos(kx) dk$$  Where do I go from here? I tried integration by parts, but that didn't lead anywhere. And looking at the Fourier transform of  $e^{-|x|}$ didn't really help.  Ideas?


Introductory biology text for an outsider

I'm a maths major and I have an interest in learning biology. I know very, very little; I know how babies are made and that's about it. Could anyone recommend a stimulating text to read for its own sake and also to use to learn biology?


How to combine individual characters in one string in python

I have code like this:  def reverse(text):     l=len(text)     while ((l-1)!=0):         print (str(text[l-1]))          l=l-1     print (str(text[0]))     a=reverse("abc!de@fg")   The output is:  g f @ e d ! c b a   but I want to combine these individual characters and want out put like this:  gf@ed!cba


Maximal ideals and principal ideals domain

Let $R$ be a ring, and an ideal $I = ( p(x) )$ of $R[x]$. Then consider the statement: " $I$ is a maximal ideal if and only if $p(x)$ is irreducible " Does that statement need the hypothesis "$R[x]$ is a principal ideals domain" to be true? Or is that statement true anyway?


While loop doesnt seem to stop in Java when its supposed to

I don't understand why the program doesn't come out of the loop even after   the value of variable YoN is entered as "N".  Output:    code:  import java.util.Scanner; public class JavaLessonFour{     static Scanner s = new Scanner(System.in);     public static void main(String[] args) {             String YoN = "Y";         while(YoN != "N")         {              System.out.println("inside");             YoN = s.next();         }     }        }


What is the minimum internal temperature measured inside meat (not air temperature) for pork ribs to be safe?

I want to experiment to prepare the pork ribs in Weber Kettle charcoal grill on a minimum possible temperature. What is the minimum internal temperature measured inside the meat (not air temperature) for pork ribs to be safe? By safe I mean meat to be prepared so that it is safe to eat.


What is the intended way of creating desktop launchers?

TL;DR : what is the easiest way to create desktop shortcut to a program ?  When I first started using GNOME with Ubuntu I immediately tried to find ways of creating desktop shortcuts/launchers to launch common programs.  My attempt to get desktop icons into GNOME lead me to  which describe several hacks to get desktop icons for common programs.  I've found that these solutions are convoluted despite this being a common request.  There is already a question which attempts to ask the same thing, but it was closed, presumably because it wasn't particularly clear:


Reduced mass in quantum physics (Hydrogen Atom)

I've gone through an intermediate classical mechanics course, and in solving the two-body problem, we reduce it to a one-body between a larger stationary mass, and a smaller reduced mass.  Most solutions I've seen of the hydrogen atom simply neglect the movement of the nucleus. Some solutions replace the electron mass with the reduced mass, for a more accurate answer.  Since the reduced mass is a result derived in classical mechanics, is it valid to apply it in quantum mechanics? Is it possible to derive the reduced mass within a quantum mechanical framework?


I want to do a Response.Redirect("MyPage.aspx") but have it open in a new browser window. I've done this before without using the JavaScript register script method. I just can't remember how?


If $\sum_{1}^{\infty}(a_n)^3$ diverges, does $\sum_{1}^{\infty}(a_n)$?

Per the title, if $\sum_{1}^{\infty}(a_n)^3$ diverges, does this imply that $\sum_{1}^{\infty}(a_n)$ diverges?   I'd appreciate hints (!) for dealing with this excercise.  EDIT Per the contrapositive, it is not given that $a_n$ converges absolutely, or that it is nonnegative for all $n$.  Thank you!


I'm using AUCTeX + preview-latex to preview math formulas. In addition, I'm using the zenburn color scheme, which has a dark background. Unfortunately, the rendered math previews have a white background, which looks very ugly.  How is it possible to change the default background color in the rendered math formulas?


MySQL [Warning] IP address could not be resolved

I'm running MySQL5.6.3 on a CentOS 6.1 virtual machine running on Windows XP in .  The network card is configured in bridge mode, so my physical & virtual machines share the same ethernet card.  On the virtual machine, everything works fine: internet access, DNS lookups. However, connections to the MySQL daemon take a while, and the logs keep showing this warning:     [Warning] IP address '192.168.1.201' could not be resolved: Temporary   failure in name resolution   192.168.1.201 is my host machine on which I'm runnning the MySQL client.  Looks like although DNS lookups work fine, reverse DNS lookups end up in a timeout.  Here is the virtual machine configuration:  # cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" HWADDR="08:00:27:4B:3D:7C" NM_CONTROLLED="yes" ONBOOT="yes" NETMASK=255.255.255.0 IPADDR=192.168.1.200 GATEWAY=192.168.1.1 PEERDNS=yes  # cat /etc/resolv.conf nameserver 192.168.1.1   Is there something wrong in my network configuration?


So, as a newbie relatively new to blender, I started doing some texture mapping (blender internal Render). I created a texture for the main object and a couple of transparent decals to decorate it. (basic effects made in GIMP). Simple stuff, just to know how it works.  After unwrapping, having 2 UV maps made, creating both new material and textures, enabling UV mapping coordination I always end up with:  - all - 1 faces of the cube being covered nicely in the main texture  - 1 face covered in blank material with a decal in the middle of it  - the whole thing partly coated by a huge "stain" of a decal  So, the problem is that I can't layer textures correctly. Is there a way to have one texture covering everything and more transparent ones on top of it? I am working on a bigger project right now and having this ability would be useful


How to remove dot in tabular rule when using hhline?

I have a large table which represents a calendar (produced by yplan) and I'm trying to typeset the cell in the top left corner without any rules at all. I've all but solved the rules, but I'm left with a small dot in the bottom right corner of the cell. I'm using hhrule for my horizontal rules as it is suggested by the colortbl manual which I am using to fill cells. (Colour not represented in minimal example below).  This is a minimal example of what my problem is:  \documentclass{article} \usepackage{hhline}  \begin{document} \begin{tabular}{|c||p{2.5cm}|} \hhline{~|-} \multicolumn{1}{c|}{} & \multicolumn{1}{c|}{\textbf{JANUARY}} \\[0.75ex] \hhline{-::=} \textbf{Su} & \\[0.75ex] \end{tabular} \end{document}   Which produces output that looks like (note the small dot):   I've tried countless combinations of rule options and just can't get it right. Can anyone help?


I'm new to Javascript The function is not changing the outer variable function edit(array, letter){     array = 0;     letter = 'b'; } let string = 'a'; let array = [1,0,2]; edit(array, string); console.log(array, string);// Result [1,0,2] not 0 b


Induction Proof: Fibonacci Numbers Identity with Sum of Two Squares

Using induction, how can I show the following identity about the fibonacci numbers? I'm having trouble with simplification when doing the induction step.  Identity: $$f_n^2 + f_{n+1}^2 = f_{2n+1}$$  I get to:  $$f_{n+1}^2 + f_{n+2}^2$$  Should I replace $f_{n+2}$ using the recursion? When I do that, I end up with the product of terms, and that just doesn't seem right. Any guidance on how to get manipulate during the induction step?  Thanks!


Inverting noninvertible elements in a bigger ring.

Is it true that for a ring $R$ and a noninvertible element $x\neq 0$ in it, can always find a ring $R'$,  such that $R\leqslant R'$  and $x$ is invertible in $R'$ ?  If $R$ is an integral domain, the answer is of course that $R'$ is the field of fractions. But what happens, if $R$ is "less" than an integral domain ?


I am new to latex. I have recently started to work with it. I have basic understanding. But still I am trying hard to get the things done. I am struck here.  I want some thing like this below on my title page:   Name:                    Advisor: Mr. X                    Advisor's name logo-image.png           Co-Advisor:                          Co-Advisor's name    I tried to play with \begin{flushleft} \begin{flushright} but what I get is following:  Name:                     Mr. X                     logo-image.jpeg                                            Advisor:                              Advisor's name                              Co-Advisor:                              Co-Advisor's name    Thanks for any help.


Why are old initrd files of uninstalled kernels filling up /boot partition?

On several Ubuntu machines I am constantly facing the problem of a full boot partition although I always do remove all old kernels. The problem seems to occur, as many initrd files are on the boot partition even though the related kernels are not actually installed. To give in example:  root@Jacobi:/boot# ls -lah insgesamt 202M drwxr-xr-x  3 root root 3,0K Jan 30 10:03 . drwxr-xr-x 25 root root 4,0K Jan 30 10:03 .. -rw-r--r--  1 root root 1,2M Dez 11 15:36 abi-4.4.0-104-generic -rw-r--r--  1 root root 1,2M Jan  9 22:28 abi-4.4.0-109-generic -rw-r--r--  1 root root 1,2M Jan 19 14:06 abi-4.4.0-112-generic -rw-r--r--  1 root root 187K Dez 11 15:36 config-4.4.0-104-generic -rw-r--r--  1 root root 187K Jan  9 22:28 config-4.4.0-109-generic -rw-r--r--  1 root root 187K Jan 19 14:06 config-4.4.0-112-generic drwxr-xr-x  5 root root 1,0K Jan 30 10:03 grub -rw-r--r--  1 root root  10M Jan 30 10:03 initrd.img-3.13.0-39-generic -rw-r--r--  1 root root  10M Jan 30 10:02 initrd.img-4.4.0-101-generic -rw-r--r--  1 root root  10M Jan 30 10:02 initrd.img-4.4.0-103-generic -rw-r--r--  1 root root  38M Jan 30 10:02 initrd.img-4.4.0-104-generic -rw-r--r--  1 root root  38M Jan 30 10:02 initrd.img-4.4.0-109-generic -rw-r--r--  1 root root  10M Jan 30 10:03 initrd.img-4.4.0-38-generic -rw-r--r--  1 root root  10M Jan 30 10:03 initrd.img-4.4.0-45-generic -rw-r--r--  1 root root  10M Jan 30 10:02 initrd.img-4.4.0-59-generic -rw-r--r--  1 root root  10M Jan 30 10:02 initrd.img-4.4.0-77-generic -rw-r--r--  1 root root  10M Jan 30 10:02 initrd.img-4.4.0-78-generic -rw-r--r--  1 root root  10M Jan 30 10:02 initrd.img-4.4.0-81-generic -rw-r--r--  1 root root 179K Jan 28  2016 memtest86+.bin -rw-r--r--  1 root root 181K Jan 28  2016 memtest86+.elf -rw-r--r--  1 root root 181K Jan 28  2016 memtest86+_multiboot.bin -rw-------  1 root root 3,8M Dez 11 15:36 System.map-4.4.0-104-generic -rw-------  1 root root 3,8M Jan  9 22:28 System.map-4.4.0-109-generic -rw-------  1 root root 3,8M Jan 19 14:06 System.map-4.4.0-112-generic -rw-------  1 root root 6,8M Dez 11 15:36 vmlinuz-4.4.0-104-generic -rw-------  1 root root 6,8M Jan  9 22:28 vmlinuz-4.4.0-109-generic -rw-------  1 root root 6,8M Jan 19 14:06 vmlinuz-4.4.0-112-generic   But only linux-image-4.4.0-104-generic and linux-image-4.4.0-109-generic are installed:  root@Jacobi:/boot# dpkg -l linux-image-\* | grep ^ii ii  linux-image-4.4.0-104-generic       4.4.0-104.127 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii  linux-image-4.4.0-109-generic       4.4.0-109.132 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP ii  linux-image-extra-4.4.0-104-generic 4.4.0-104.127 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP ii  linux-image-extra-4.4.0-109-generic 4.4.0-109.132 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP   If I delete the unnecessary initrd files manually they will be generated again as soon as I try to do an upgrade.  What could be the cause of this issue and how can I get rid of those files permanently?


Cannot use del key to delete files on desktop in 20.04

I just did a clean install of 20.04 and I noticed that no key shortcuts for files manipulation work when my focus in on Desktop (not in Nautilus).   When I have copied a file to clipboard, I cannot Ctrl+V it to Desktop, when I click on a file on Desktop, I cannot Ctrl+C it, or I cannot Delete it with keys. Only ways to do it is either navigate to the Desktop folder in Nautilus, or right-click the file on the Desktop and copy/move to trash/paste...  Sorry if I'm missing something obvious, all the key shortcuts worked normally for me in 18.04.


Difference between "log in", "authenticate" and "sign in"?

I didn't find the difference between them by  googling  Edit: Thx litterally, authenticate, means prove its identity, which is a just a subprocess of global access authorization btw I forgot to mention "Sign In", that's another confusing term for me ;)  Edit 2 other useful answers:


I have following questions about anonymity on SE sites:   In which cases (or how) can a user become anonymous on an SE site? Are there any levels of anonymity on SE sites? Can a registered user be anonymous as well? Can I have a normal profile on one SE site & an anonymous profile on another SE site using a single SE account (or email)?   How I define anonymity: as , see the grayed-out profile of the owner of this post.


The following code won't run the way it's supposed to. The output is always      "That isn't a valid answer!"  The code that I'm referring to is as follows:  System.out.println("Should you move along the road or continue through the forest?"); String anw = scan.next(); if (anw == "forest") {     System.out.println("You decide to go to the forest, it's dark and creepy but it can't hurt, right?"); } else if (anw == "road") {     System.out.println("You decided to go along the road and hope to find something, anything, there.");   } else {     System.out.println("That isn't a valid answer!"); }    Any help will be more than appreciated, thank you!


I am trying to add a WMS service to qgis but am having some problems. After adding the url and name of the service and clicking on connect, I am receiving the following error message:-  "Could not understand the response.  The wms provider said: Download of capabilities failed: Connection timed out"  Does anyone know what the issue might be?


Does central limit theorem (CLT) hold for non-integer values of $n$?

Why I think it might be correct:  Search “not an integer” in  and you would find 2 occurrences of the author stating that CLT is valid even if $n$ is not an integer.  Why I think it might be wrong:  If $X$ is assumed to be Poisson, then I can see why CLT still holds for non-integer values of $n$. But I don’t see why CLT should hold for all possible distributions for $X$. The 2 proofs for CLT at  don’t make sense to me for non-integer values of $n$.


How can I get rid of all script blocks in html files?

How can I remove all script blocks (including multi-line ones) from html files such as:  <script type="text/javascript"> var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; (function() { var gads = document.createElement('script'); gads.async = true; gads.type = 'text/javascript'; var useSSL = 'https:' == document.location.protocol; gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js'; var node = document.getElementsByTagName('script')[0]; node.parentNode.insertBefore(gads, node); })(); </script>   I tried things like this with no success:  sed -i -e 's/<script.*\n.*<\/script>//g' 'path/to/file.html'


I'm novice in RAW processing.  I know what a RAW file actually is but what are typical steps I need to do for RAW processing and getting output JPG file manually?  Update: I want to get advices what pipeline steps are exist and in what order I should do them to do conversion into JPEG. Proposed 'duplicate' link has only common info about advantages of RAW shooting which I already know.


How to create a simple .txt (text) file using terminal?

I'm just trying to review basic terminal commands. Having said that, how do I create a text file using the terminal only?


How to check Spectre patch by terminal on my Ubuntu?

How can I check IBRS patch enables on my Ubuntu 16.04LTS by using command line


Can i use a universal laptop charger for +10.8v 4400mah, 47wh

I have a universal laptop adapter with listed voltage that i can set 12v/15v/16/18/19/20/24v.. i want to try it on my asus laptop with battery rating of +10.8v 4400mah, 27wh.. it's an li-ion battery. But i'm not sure if it's safe or not..  This is the universal adapter i have   Input: 110v-240v - 50/60hz 1.5A Max Output: 12/15/16/18/19V 4.5A Max 20/24V 4A Max


What can be done if requirements are changing continuously in Agile?

If requirements are likely to change frequently during development. Although a complete change in requirement is possible, most of the time, it is the technical details that are subject to change. e.g. the intent of the requirement or behavior of the feature is the same but implementation details can change. In this case: as a QA, what can be done if requirements are changing continuously and the company follows Agile model?


Trim for floor transition where tile is LOWER than adjacent hardwood

I have yet to find a product or a question addressing this. The issue is quite simple. I am installing a tile floor in the bathroom, and the finished tile floor at the doorway will sit significantly lower than the adjacent hardwood floor. This is mainly due to the fact that it is two layers of hardwood / laminate flooring.  There are lots of products from schluter to address the reverse (tile is higher), and plenty of wood trim options for when the two floors are in the same plane. However, I have yet to find the proper trim type to transition from the tile UP to the hardwood. I assume this must exist. What type of trim is this. I would prefer a metal type trim, but am unsure what the options are. Does this exist? What is it referred to as and where would it be found?


Let $A$ and $B$ be sets, where $f : A \rightarrow B$ is a function. Show that the following properties are valid equivalent*:  $f$ is injective. For all $X, Y \subset A$ is valid: $f(X \cap Y)=f(X)\cap f(Y)$ For all $X \subset Y \subset A$ is valid: $f(X \setminus Y)=f(X) \setminus f(Y)$.   I do know what injective is, but I thought number (2.) and (3.) were valid for any kind of function. Just to see if I understood this right: $f(X\cap Y)$ means, first, make the intersection from $X$ and $Y$ and then map it to $B$ via $f$. $f(X)\cap f(Y)$ actually means, map all $f(X)$ and $f(Y)$ and intersect both. Aren't those both properties valid for all functions? I can't think of a counter example. Thanks in advance guys! *edited by SN.


How to read a raster value table (VAT) in QGIS?

By default, QGIS does not seem to recognize "Value Tables" (VAT) the way ArcGIS does.  So far I cannot find a way to represent the pixel values discretely, or apply a "legend" to the layer. Is there something that can be done to associate the VAT with the raster in QGIS? Ultimately I'd like to symbolize and see the joined values when I use the "Identify" tool on a pixel?  For example, I've downloaded a landcover GeoTIFF from the NRCS that contains a single "Pixel Value" field, which represents the type of landcover.  In addition to the GeoTIFF, the authors included a "Value table" (<filename>.vat.dbf), which essentially is "joined" to the raster to give a plain English description of the "Pixel Value", as well as RGB values.  There are 17 discrete values in the VAT, but a small sample looks like this:   Value   Count   Red Green   Blue    Land_Cover 0   299079  0.00000000000   0.00000000000   0.00000000000   Unclassified 11  3896533 0.27843137255   0.41960784314   0.62745098039   Open Water 12  86735   0.81960784314   0.86666666667   0.97647058824   Perennial Snow/Ice 21  4527275 0.86666666667   0.78823529412   0.78823529412   Developed, Open Space   This data can be downloaded from the "National Land Cover Dataset by State" at


I accidentally deleted a note from 'Notes' in my iPad4 which contained information I couldn't afford to lose. Is there any way that I can retrieve this note please?


404 after joining Bitcoin Stack Exchange

I clicked 'Join this Community' on , then I 'Confirmed', then I received a 404 page:


Using the command \displaystyle \lim_{\Lambda \uparrow \mathbb{Z}^2} I can produce the limit that I desire. But I like to write the above limit as in the photo below. Could you help me? Thanked.  Ps. Correct me if I'm wrong about the Tags.


What is the easiest way to reinstall 14.04 LTS?

I've lost the thumbdrive that had the image on it. Is there some way to reinstall without one?  E: It's a reinstall over an existing ubuntu install. Windows issues really aren't all that relevant.


I've created a workflow using the process builder and added a Chatter Post as an action. How Can I add a link to that post, a link which people can click and go to a SF record?


Can I merge duplicate data.SX queries I've written?

I've written identically-titled SX data explorer queries, by mistake. Can I merge them (including merging their star count)? If not, can I make the system forget about one of them (i.e. delete one of them)?


Adding a new "Stock Market" or "Economy" site

I've been looking for a stack where I can ask questions regarding the stock market and other recent happenings in the economy like how will Brexit affect the economy.  A new site regarding this type of themes will be of great use to many people.


How to change the default user name in WSL?

Many websites says I should use lxrun /setdefaultuser, but this command is deprecated:  C:\WINDOWS\system32>lxrun /setdefaultuser foo Warning: lyrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution.  How can I change the default username which is in my case root. I would like it to be the same username as I use with my Windows account. Btw I am using mintty to run WSL: %LOCALAPPDATA%\wsltty\bin\mintty.exe --WSL= -h err --configdir="%APPDATA%\wsltty" -~


Why does the inner exception reach the ThreadException handler and not the actual thrown exception?

I'm seeing some wierd behaviour when throwing exceptions and catching them in the Application.ThreadException event handler.  Basically whats happening in the sample below is that an exception is thrown in the DoWork event handler of a BackgroundWorker. The RunWorkerCompleted event handler rethrows a new exception with the original as the inner exception.  Why does the inner exception show up in the ThreadException event handler and not the acutal exception being thrown? If I do not provide an inner exception in the RunWorkerCompleted event handler, the correct exception will show up.  using System; using System.Windows.Forms; using System.ComponentModel;  namespace WierdExceptionApp {     class WierdExceptionForm : Form     {         BackgroundWorker worker = new BackgroundWorker();          public WierdExceptionForm()         {             worker.DoWork += new DoWorkEventHandler(worker_DoWork);             worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);             worker.RunWorkerAsync();         }          void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)         {             if (e.Error != null)             {                 throw new Exception("worker_RunWorkerCompleted", e.Error);             }         }          void worker_DoWork(object sender, DoWorkEventArgs e)         {             throw new Exception("worker_DoWork");         }          [STAThread]         static void Main()         {             Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException);             Application.Run(new WierdExceptionForm());         }          static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)         {             MessageBox.Show(e.Exception.Message);         }    } }


Is there a way to get the red artifact in Undertale?

My brother has been trying different ways of getting the artifact without the Annoying Dog consuming it, but has been unsuccessful. I'm kind of curious as well. The artifact is obviously a throwing ball, but I kind of want to know the description for the artifact itself, and if you need to cheat to get it... If it even is an item in the code, too.


In my next campaign I will be playing Druid. I didn't really understand how skill / saving throw proficiency works while wildshaped and other posts on the internet didn't help.     I will try to explain how I think it works and I would like to be corrected.  Example: Skill: Dexterity (Stealth) My Dexterity: +2 (15) Animal Dexterity: +1 (12) My Proficiency Bonus: +3 Animal Proficiency Bonus: +2     Modifier if I am proficient in stealth but the animal is not: 1 (Animal Dex) + 3 (My Proficiency Bonus) = 4 Modifier if the animal is proficient in stealth and I am not: 1 (Animal Dex) + 2 (Animal Proficiency Bonus) = 3 Modifier if both I and the animal are proficient in stealth: 1 (Animal Dex) + 3 (max. of 3 (My Proficiency Bonus) and 2 (Animal Proficiency Bonus)) = 4     Is this correct or did I understand the rules wrong?


Find a positive integer $n$ such that $n/2$ is a square, $n/3$ is a cube and $n/5$ is a ﬁfth power.  Above problem was given in the text “An Introduction to the Theory of Numbers” by “Ivan Niven and Zuckerman".  I tried to generalize the problem statement as:  Find a positive integer $n$ such that $n/2$ is a square, $n/3$ is a cube, $n/5$ is a ﬁfth power, $n/7$ is a seventh power ... $n/p_{k}$ is a $p_{k}$-th power.   I have found the solution for this and trying to generalize it more. Now, How can I know that this work is authentic i.e. it has not been done by anyone earlier? Any sort of help is welcomed.


I have a bunch of disks needing shredding. I also have 6 ports for hard drives on my PC. Shred, even running with brief options takes a while. I read the manpage for shred, but I saw no way to shred multiple hard drives concurrently. Is there an easy way to do that?


How to move axis multiplier in a polar plot in pgfplot

How can I move the axis multiplier in a polar plot? In the following MWE, the axis multiplier is over the ticks and prevent the plot to be nice and readable.   \documentclass[crop=true,border=2mm]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{polar} \usepgfplotslibrary{dateplot}  \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{graphicx}  %\pgfplotsset{compat=1.7}  \newlength\figureheight \newlength\figurewidth \setlength\figureheight{4cm} \setlength\figurewidth{4cm}  \begin{document}  \begin{tikzpicture} %[scale=1.0]     \begin{polaraxis}[%         axis on top,         width = \figurewidth,         height = \figureheight,         scale only axis,         ymin=5.e5, ymax=1.5e6,         xtick      ={0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330},         xticklabels={0, $\frac{\pi}6$, $\frac{\pi}3$, $\frac{\pi}2$, $\frac{2\pi}3$, $\frac{5\pi}6$, $\pi$ , $\frac{7\pi}6$, $\frac{4\pi}3$, $\frac{3\pi}2$, $\frac{5\pi}3$, $\frac{11\pi}6$},         ytick = {5e5, 1.e6, 1.5e6},     ]     \addplot [data cs=polarrad, mark=*, draw=black, smooth]         table [%         col sep=comma, trim cells=true, %         x=x, y=y,] %         {mydata.dat};     \end{polaraxis} \end{tikzpicture}  \end{document}   The content of mydata.dat is as follows.  # mydata x,y 0.0000,1.1686E+06 0.0175,1.1686E+06 0.0349,1.1446E+06 0.0524,1.1165E+06 0.0698,1.1034E+06 0.0873,1.1038E+06 0.1047,1.1059E+06 0.1222,1.1317E+06 0.1396,1.1500E+06 0.1571,1.1372E+06 0.1745,1.1173E+06 0.1920,1.1218E+06 0.2094,1.1257E+06 0.2269,1.1203E+06 0.2443,1.1078E+06 0.2618,1.1043E+06 0.2793,1.1239E+06 0.2967,1.1228E+06 0.3142,1.0912E+06 0.3316,1.0909E+06   The result is shown in the following figure. As can be seen .10^6 is on the xtick=0 and makes the plot hard to read.    I have run an update on all the packages including pgfplots. However, I still see ("C:\Program Files (x86)\MiKTeX 2.9\pgfplots_1.7.tds\tex\generic\pgfplots\libs\ tikzlibrarypgfplots.polar.code.tex") in the log file, which I assume it is using compat=1.7.   Regardless of the version, Which seems solvable, is there any way to manually set the position of the axis multiplier or at least fine tune its position?  Thanks.


I have just started studying Java and now I need to make an Java function that returns a formatted string representation of an int.  This function must return "001" instead of just 1 and "010" instead of just 10, and so on... my function looks like this:  int value = 1;  public String getcountervalue() {    String Return_string = Integer.toString(value);    return (Return_string); }   This is just a small part of an bigger code. the count of the value is handled by an other part of the code. I guess that the Integer.toString part will convert the int to an string, or?, but how can i make it properly formated (as explained above)?  I'm sorry if this question have been asked before, I where not able to find it.  I'm using java 1.7


Installation for libxml2-dev libonig-dev failed with "connection failed" on Ubuntu 18.04

I want to install libxml2-dev and libonig-dev on Ubuntu 18.04.  I am getting the following error every time I am trying to install it.  $ sudo apt-get install libxml2-dev libonig-dev Reading package lists... Done Building dependency tree        Reading state information... Done The following additional packages will be installed:   gir1.2-harfbuzz-0.0 icu-devtools libglib2.0-dev libglib2.0-dev-bin libgraphite2-dev libharfbuzz-dev libharfbuzz-gobject0 libicu-dev libicu-le-hb-dev libicu-le-hb0 libiculx60 libonig4 libpcre16-3   libpcre3-dev libpcre32-3 libpcrecpp0v5 pkg-config python3-distutils python3-lib2to3 zlib1g-dev Suggested packages:   libglib2.0-doc libgraphite2-utils icu-doc The following NEW packages will be installed:   gir1.2-harfbuzz-0.0 icu-devtools libglib2.0-dev libglib2.0-dev-bin libgraphite2-dev libharfbuzz-dev libharfbuzz-gobject0 libicu-dev libicu-le-hb-dev libicu-le-hb0 libiculx60 libonig-dev libonig4   libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libxml2-dev pkg-config python3-distutils python3-lib2to3 zlib1g-dev 0 upgraded, 22 newly installed, 0 to remove and 6 not upgraded. Need to get 537 kB/13.2 MB of archives. After this operation, 64.4 MB of additional disk space will be used. Do you want to continue? [Y/n] y Err:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcre3-dev amd64 2:8.39-9   Connection failed [IP: 91.189.91.23 80] E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/pcre3/libpcre3-dev_8.39-9_amd64.deb  Connection failed [IP: 91.189.91.23 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I tried sudo apt-get update && sudo apt-get upgrade but it didn't work.


What image format encodes the fastest, or at least faster? PNG is too slow

When rendering [in 2.80], I have discovered that video streams save much faster than rendering to PNG files. This is frustrating to me because I have learned that the safety of image frame rendering then compiling them is well worth it. But the difference between maybe one hour and days in rendering time isn't worth it, even considering the problems that may be encountered.   Q: Is there a faster format to use than PNG?


I have a website hosting some competition where there are lots of participants. The url to access participant is: www.abc.com/participant/participant_id/  Now, the participants gets lots of page views. Competition is only for a month so the participants url will be removed after competition gets over and all the views from that participant url is no more in use. I am confused about appropriate way to structure urls. I want to use the following url so that all the views recieved is for participants page not for single participant. www.abc.com/participant?participant_id=****  Can someone suggest me which one is the best way to structure url?


How can I install WhatsApp in Ubuntu? Related:


Which one of the below sentences is correct?     Celebrities often face troubles maintaining the privacy of their lifestyles.      Celebrities often face troubles maintaining the privacy of their lifestyle.    I am always confused about the form of the object after the possessive plural pronoun, because I have read many sentences where the author uses just the singular form after the plural pronoun. What is the exact grammar behind this?


How can I add sudo permission for copying?

my sudoers file:   cat /etc/sudoers ... USERHERE ALL = NOPASSWD: /bin/cp /home/USERHERE/foo/in.csv /home/anotheruser/in.csv ...   it looks OK too:   USERHERE@notebook:~/foo$ sudo -l Matching Defaults entries for USERHERE on this host:     env_reset, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin  User a may run the following commands on this host:     (root) NOPASSWD: /bin/cp /home/USERHERE/foo/in.csv /home/anotheruser/in.csv     (ALL : ALL) ALL USERHERE@notebook:~/foo$   but when I try it prompts for password, why?   USERHERE@notebook:~$ sudo /bin/cp /home/USERHERE/foo/in.csv /home/anotheruser/in.csv [sudo] password for USERHERE:   Using Ubuntu 12.04


How do I set an element of a doubly nested list in Python?


My friend whats to create a 4GB swap file on his ext4 file system. because he is using a chromebook acer c7 the way he installed he did not have a chance to specify swap partition  and now he want to create a swap file on his file system.  This is the guide he is following     First you have to create a 2GiB file, for example in /mnt:  sudo dd if=/dev/zero of=/mnt/swap bs=1M count=2048   Then format the file to swap:  sudo mkswap /mnt/swap   Add the swap file to the system:  sudo swapon /mnt/swap   Check it out, i.e.:  free -m   Edit the fstab file:  gksu gedit /etc/fstab   and add this line at the end of the file:  /mnt/swap  none  swap  sw   Save the file and exit. That's all.   This is what he is getting     user@chrubuntu:~$ sudo swapon /mnt/swap swapon: /mnt/swap: swapon failed: Invalid argument   and his fstab looks like this     any way to fix this ??  One more thing he is using ubuntu 14.04 and it is not a fresh install   Thank you for your time


Reputation counter stops before reaching 200

Yesterday, my reputation on the Aviation site was limited to 190 for the day. After it reached 190, two answers received additional up votes:  and . My daily reputation can be viewed in the history .  When I checked last with the reputation counter @ 190, the up votes for the answers were around 35 and 10. When checking again in the morning (my morning, = around 2200 UTC), votes were around 44 and 14, with a Guru medal awarded for the helicopter answer - but reputation still at 190 for the day.  What gives?


Does ℘(A ∩ B)=℘(A) ∩ ℘(B) hold? How to prove it?

I'm currently working on some discrete mathematics work and I've encountered a question I'm not sure how to answer exactly. Precisely, I'm trying to prove that two power, intersected sets statements are equal to each other and my understanding of how to do that doesn't seem to be enough. The statements in question go as follows:  Determine whether, for any sets A and B, through proof, it is true that                           ℘(A ∩ B)=℘(A) ∩ ℘(B) where ℘ denotes a power set.   Should I make some form of example set to better understand how these statements are equivalent? Or even a venn diagram? Any help is appreciated.


How should we treat "don't forget to accept my answer" comments?

New users already have a reminder to accept an answer on their question. So I don't see the need in general for this post-answer badgering, even if it is intended to be genuine constructive help (which it almost always isn't). To me it seems like little more than rep greed, especially on a site like StackOverflow where such a reminder comes within 10-20 minutes of posting the answer, and when the comment is clearly intended for the OP to accept the commenter's answer. To me it feels like pressuring the OP to accept their answer before a better answer has a chance to come along (or, as others have put it, rep-whoring).  I know we've talked in the past about , but that deals with the behavior itself. I'm asking about how we should treat the comments after they've come - I'm not sure whether I should send the commenter to the meta question I just linked, flag the comment, or ignore it. Ignoring it doesn't feel right, but saying something in the open might not seem genuine in cases where I have a competing answer.  EDIT I'd like to add something to consider here: the case where a user makes it seem like further discussion or clarification of an answer hinges on an up-vote/accept first. A couple of examples I culled recently, but I don't want to call out the user here (they're both from the same user, on different posts, in response to questions trying to clarify their answer):     consider up-voting my answer if you found it useful first.      up-vote my answer if you found it helpful first.


Any difference between "Good morning, Brian" and "Good morning to you, Brian"

I often hear it on TV when they are talking to a guest.  Normally, if we want to greet Brian in morning, we would say "Good Morning Brian". But many times TV presenters say "Good morning to you Brian".  Why is that? Why do they add "to you". There seems to be no need to do it.  Regards,


Is there a way to sync only one partition?

Is there a way to sync only one partition instead of all partitions?  Something like "sync /dev/sdc1".


Is it possible to add non-number characters on the left of a code block?  Specifically, I want to add ... to correspond with some source code (see image).    I am currently using commands to stop / start the line numbers. Here is the code:  \documentclass[12pt]{article}  \usepackage[a4paper, margin = 20mm, top = 30mm, bottom = 25mm]{geometry} \usepackage{xcolor, soul} \usepackage{listings}  \definecolor{codebackground}{rgb}{0.95, 0.95, 0.92}  \lstset {     frame            = tb, % hrule above and below     keepspaces       = true,     columns          = flexible,     basicstyle       = {\normalsize\ttfamily},     escapeinside     = {(*@}{@*)}, % for escaping     backgroundcolor  = \color{codebackground},     showstringspaces = false,     language         = C,     keywordstyle     = \color{blue},     stringstyle      = \color{red},     commentstyle     = \color{teal},     numbers          = left, % {none, left, right}     firstnumber      = 1,     numberstyle      = \scriptsize\color{black},     numbersep        = 5pt }  \let\origthelstnumber\thelstnumber \makeatletter % for stopping line numbers \newcommand*\stopnumber {     \lst@AddToHook{OnNewLine}     {         \let\thelstnumber\relax         \advance\c@lstnumber-\@ne\relax     } } % for starting line numbers \newcommand*\startnumber[1] {     \setcounter{lstnumber}{\numexpr#1-1\relax}     \lst@AddToHook{OnNewLine}     {         \let\thelstnumber\origthelstnumber         \refstepcounter{lstnumber}     } } \makeatother  \begin{document} \begin{lstlisting}[firstnumber = 456] int third_function(const int c) {     /* error checking */     if(c < 0)     {         return;     } (*@ \stopnumber @*)      ...     (*@ \startnumber{512} @*)     /* other stuff */     int d = 4;     char* word = "third function"; (*@ \stopnumber @*)      ...     (*@ \startnumber{678} @*)     return (c * d); } \end{lstlisting} \end{document}


I have the following data in rows:  1 2 3 6 7 15 16   I want to write a SELECT statement to return contiguous ranges. Given the sample data above, the output would be:  1,2,3 6,7 15,16


Count number of players with command blocks?

I'm trying to activate some command blocks only if there's more than one player online in my vanilla server. Is there a way to accomplish this with command blocks?


How to install latest version Eclipse in Ubuntu-16.04

I am getting older version of Eclipse when I install it from terminal, which is fine for C/C++ code, but I want to use java, basically for spring and maven, so I want a newer version.


Correct method to solve Polymorhism classes in Java?

This is a homework question I can't figure out.   Find the output of:      public static void main(String[] args) {         Object o = new A();         A a2 = new B();         B b = new B();         a2.report(b);     }  public class A {     public void report(Object o) {         System.out.println("Object");     }      public void report(A a) {         System.out.println("A");     } }  public class B extends A {     public void report(A a) {         System.out.println("A again");     }      public void report(B b) {         System.out.println("B");     } }   When I tried to work the solution, I first tried to figure out what would happen at the compile time. I thought that a2 would use class A and report b which is not defined in class A and therefore would default to report object. This would give the solution of "Object". However, this is not correct. I can't figure out how this method would report "A" when the function is should be calling report(B b).


A solution of a linear system in some extension field implies a solution in the subfield

Fix a field extension $k\subseteq K$ and consider a  linear system $Ax=b$ where $A$ is a matrix (not necessarily square) with coefficients in $k$. I don't understand why if the above linear system has a solution in $K$, then there exists also a solution in $k$.   Thanks in advance.


Pulling Permission Sets only through IDE polls a trimmed version of them

In Eclipse Force.com IDE I created a Force.com project that was configured to pull the Permission Set folder only. The Permission Sets have been pulled, but in what appeared to be a trimmed form - all had about 373 lines of code.  When I have deployed those Permission Sets to a SI environment is when I noticed that they were incomplete - what could be called skeletons of them have been deployed, but most of the configuration was not there.  Then I have chose to pull all Project Contents in Eclipse from Production. Those Permission Sets grew to nearly 4000 lines of code. I presume they must be a more complete version of them. I'm not sure as I haven't committed them to the repo and deployed yet.  Items that have been added are:  <classAccesses>, <fieldPermissions>, <objectPermissions>, <pageAccesses>, <tabSettings>   Can someone please explain to me why pulling Permission Sets only pulls them in trimmed form as opposed to pulling them with all other Project Contents?  Many thanks.


First downvoting of a post after a long time

I just got downvoted without any comment! :-)   I know that it has been discussed a lot before and members have a split opinion on 'making comment mandatory when downvoting'. But, here I have one specific case, so I am creating a new post. I think this case has not been discussed before.  Look at the answer   The answer was given approx 3 years back, which has attracted a downvote on 25-Aug. I understand that the answer may not be valid now because of many reasons and hence can attract a downvote.  Here, my point is - 'Should we make it mandatory to comment, when first downvote is made on an answer given a long time (say 12 month) ago'.  The definition of 'long time' can be decided by consensus.  If it is a concern of 'not revealing the identity of down-voter', I believe the stackexchange developer could make the downvoting comment as 'anonymous' (and making it mandatory to comment on downvoting).  Please let me know your opinion.  EDIT  After seeing so much reservation on my suggestion, I have a final point to make.  I believe SO is a community driven forum and good answer will eventually find its place due to rating system. However, the answer has already been viewed 2180 times in two years and nobody found it 'eligible for downvoting'. Then all of a sudden a downvote appears - Can anyone please let me know, what should I improve in this answer?   No need to refer me towards generic FAQs on writing good post. If you have anything to say about improving  post, it is welcomed.


Minimum of two geometric random variables is geometric

Let $X,Y$ be two independent r.v's with geometric distribution: parameters $\lambda, \mu $, respectively. Let $Z = \min(X, Y) $. Show $Z$ is geometric with parameter $\lambda \mu $.  $$Attempt $$  By hypothesis, I know $P^X( A \in X) = \sum_{j \in A} \lambda^j (1-\lambda) $ and $P^Y(B \in Y) = \sum_{j \in B} \mu^j(1 - \mu) $. Next, I have   $$ P^Z(Z \in C) = \sum_{j \in C} P(Z = j ) = \sum_{j \in C} P( \min(X,Y) = j) $$  We know $X,Y \geq \min(X,Y) $, therefore, $P( \min(X,Y) =j ) = P(X \geq j, Y \geq j ) $ and since $X,Y$ are independent, we have $P(X \geq j, Y \geq j ) = P(X \geq j) P(Y \geq j )$. Here is where I am stuck. Am I on the right track ?


write Chapter: word in table of contents

\documentclass[12pt,twoside]{report} \usepackage[square,sort&compress,comma,numbers]{natbib} \usepackage[sectionbib]{chapterbib} \usepackage{booktabs} \usepackage{amsmath,amssymb} \usepackage{caption} \usepackage{rotating} \usepackage{url} \usepackage{graphics} \usepackage{amsfonts} \usepackage{epsfig} \usepackage{array} \usepackage{multirow} \usepackage{titletoc} \usepackage{float,here} \usepackage{color}  %\usepackage{lipsum} %\usepackage{microtype} %\usepackage[none]{hyphenat}   \setlength{\oddsidemargin}{0.1 cm} \setlength{\evensidemargin}{-0.28cm} \setlength{\topmargin}{-0.65 cm } \setlength{\textwidth}{6.4in} \setlength{\textheight}{9.4in}  \input{rgb} \pagestyle{myheadings}   \def\fps@figure{htbp} \def\fps@table{htbp}  \renewcommand{\textfraction}{0.5} \renewcommand{\floatpagefraction}{0.4} \newcommand{\FH}{{\textsc{\tiny FH}}}  \floatsep 36pt \textfloatsep 36pt \intextsep 36pt   \def\vitalsecdepth#1{\setcounter{secnumdepth}{#1}    \setcounter{tocdepth}{#1}} \vitalsecdepth{3} % 5/13/92 kelliher  \sloppy   \begin{document}   %\include{first-page} %\include{statem} %\include{certi1} %\include{acknow2}  \clearpage \baselineskip=20pt %\include{TOC}  \pagenumbering{roman}  \renewcommand{\contentsname}{Table of Contents}  \newcommand{\setupname}[1][\chaptername]{ \titlecontents{chapter}[0pt]{\vspace{1ex}}{\bfseries#1~\thecontentslabel:\quad}{\bfseries}{\bfseries\hfill\contentspage}[] }  \tableofcontents \listoffigures \listoftables  \pagenumbering{roman}  \clearpage \pagenumbering{arabic}  %\chapter{Introduction} \include{chap1} \include{chap2} \include{chap3} \include{chap4} \include{chap5} \include{chap6} \include{chap7} \clearpage \baselineskip=20pt \pagenumbering{roman} %\include{reference}   \end{document}


Is this function can be a good way to preload in jquery?

is this function that i wrote in jquery, will be a good way to preload? thank you  function loader(){          imgTag('#check');          function imgTag(whereToAppend){             var image = 'image.jpg';              $(whereToAppend).append('<img id="imgWrapper">');              $('#imgWrapper').attr('src', image).hide().one('load',function(){                 $(this).fadeIn('slow');             })         }       }


Can a warlock combine an essence into hellfire blast?

Can a warlock combine essence invocations into Hellfire Blast such as Frightful Blast? If so, how would that change effective caster level of the blast?


Prove that $D_r \circ D_s = \{ (x,y) \in \mathbb{R}^2 \ | \ |x-y|<r+s \}$, where $D_a = \{ (x,y) \in \mathbb{R}^2\ | \ |x-y| < a \}$

Suppose $r$ and $s$ are two positive real numbers. Let $D_r = \{ (x,y) \in \mathbb{R}^2\ | \ |x-y| < r \}$ and $D_s = \{ (x,y) \in \mathbb{R}^2 \ | \ |x-y| < s \}$. Prove that $D_r \circ D_s = \{ (x,y) \in \mathbb{R}^2 \ | \ |x-y|<r+s \}$. Well, I only proved that $D_r \circ D_s \subseteq \{ (x,y) \in \mathbb{R}^2 \ | \ |x-y|<r+s \}$ by letting $(x,y)$ be an arbitrary element of $D_r \circ D_s$ and using the triangle inequality. How can I prove that $\{ (x,y) \in \mathbb{R}^2 \ | \ |x-y|<r+s \} \subseteq D_r \circ D_s$?


Notification for downvoted posts when the post is updated?

We are supposed to downvote a poor quality posts but most of the times the OP takes in the suggestions and edits their post.   Shouldn't the people who downvoted be notified when the post gets edited so they can come back and remove their downvote?


Asimov's novel with a world divided into floors

Each floor had different patterns, there was a kind of elevator. I remember a general ambience, but not quite what the plot was about. The protagonist was a kind-of apprentice (or not?) from another reality who was, amongst others, discovering the subsequent floors.


Can a warlock use one of their Thirsting Blade attacks to grapple or shove?

As a Warlock with the Thirsting Blade Invocation, can I replace one of the Attacks with my pact weapon with a Grapple/Shove?  The only wording difference between Thirsting Blade and Extra attack is: "with your pact weapon"


Calculating probabilities of completing a trading card/collector card set

I'm looking at creating a set of collector cards (think baseball cards). I'm worried about the statistics and would like some help if possible.  For the sake of simplicity, let's say the basics are:   There are ten different card designs Cards are available in packs of five Each card in a pack is unique (no duplicates) The availability of each card is equal (no card is rarer than another)   What worries me is that a collector receiving their first pack already has 50% of the complete set! It presumably wouldn't take them long to get the rest.  So I'd like to calculate what the probability is of collecting all ten designs in 2 packs, 3 packs, 4 packs, etc  I can actually figure out the two-pack probability fairly easily, because if you got cards 1,2,3,4,5 in pack 1, then pack 2 would need to be 6,7,8,9,10 (1/10 * 1/9 * 1/8 * 1/7 * 1/6 = 1/30240, with 120 possible combinations = 120/30240 = 0.4%, right?).  But figuring out the probability of collecting all ten designs in 3 packs is eluding me because there are so many ways of getting them (4 in the second pack/1 in the third, 3/2, 2/3, 1/4, 0/5 etc) and then four packs is even more involved.   It feels like I'm trying to calculate the probability of combinations of combinations of combinations!  Is there a methodology by which to do these calculations? Maybe even an online calculator or code? I'm not a statistician by any means, so I'm not even sure what to search for. If someone could give me some pointers, it would be much appreciated.   I can do basic Python coding and have access to (though little experience of) R if that would help.


Choosing the right wheel size in my cycle computer

I have bought the Campangolo Khamsin wheelset, and now I would like to set the right wheel size in my Trek Incist 8i cycle computer. Before I do the custom wheel setting, I would like to know what would be the best choice?    The wheel has ETRTO 622x15c printed on it.   The computer comes with the following wheel sizes defined:  700x20, 700x23, 700x25, 700x28, 700x32, 700x35, 700x38, 26x1.5, 26x1.5, 26x1.90, 26x1.95, 26x2.0, 26x2.1, 26x2.2.  So, if anyone here knows what would be the closest match I would be happy to know.


Is Wiley Plus able to detect when students are cheating?

I am supposed to start teaching on Wiley Plus for the first time this coming summer semester, and as someone who is already not the most tech-savvy, I have concerns regarding students cheating on homework assignments. Is there a way for me to do detect if students are copying questions or pasting answers from online? I am told Wiley creates unique variables per every question but keeps the same question. This would mean someone can go on "Chegg," or "Slader," to obtain a method to answer a question, without attempting it themselves.  Would Wiley contact me if they find a question posted by one of my students on Chegg? Since each question is unique to each student? I want to figure all these things out before I start setting up the course.


How to write i hat and j jat from keyboard in ubuntu 18.04?

I want to ask linear algebra question on reddit but i couldn't find any techniques to write special mathematical notation such as i hat and j hat via keyboard.


How to set relative path to executive script

I want to set relative path to folder with my executive script that will works from any machine without hardcoding absolute path to file. So far I have following:  import os path_to_folder = os.path.realpath('.')   When I run my script from PyCharm calling print(path_to_folder) return correct path   C:\Users\Me\Desktop\Project\Script\  But if I try to call it from cmd like python3.4 C:\Users\Me\Desktop\Project\Script\my_script.py I get just  C:\Users\Me\  What is the more reliable way to set relative path?


Who sent that letter from the hand of the king (signed Robert Baratheon) to Ser Barristan Selmy

We knew in the first season of Game of Thrones that Ser Jorah Mormont was spying on Daenerys and sent the news about her pregnancy to King's Landing, prompting Robert Baratheon to order the baby and Dany executed.   Two seasons later in Episode 8 of Season 4 (few years after Robert's death of course) a letter, a Royal Pardon meant for Jorah Mormont is sent in Meereen which however is given to Ser Barristan by that child and learns that Ser Jorah spied on Daenerys for which she tells him to leave Meereen before she orders to have him executed.   The question is, who sent the letter? Ser Jorah says the letter is not forged, it's signed by Robert Baratheon and in the same year he meets Daenerys. So Robert signed it, but who sent the letter after years and how did he know they were in Meereen. The seal on the letter seems to be Hand of the King's seal, but who actually?


Why is bash not storing commands that start with spaces?

If I perform a sequence of commands like:  $ ls $ grep abc file.txt   and then use the up arrow key to get the previous one, the terminal will show the last cmd (which is the grep here)  But if I do something like this:  $ ls $   grep abc file.txt   where grep is preceded by spaces, pressing up gives ls, not grep.  Why is this?


I have HM Strength and HM Cut.  I would love to fly around this new beautiful world but I'm curious when it will be possible.  Any help?


How to implement a delayed release for a reset button?

I have a microprocessor with two lines, /RESET and /HALT, which are independently pulled to +5V DC.  To reset the processor, both of these lines must be grounded for at least 100 ms -- they may not be wired together and treated as one line.  How do I create a circuit such that, when a single DPDT reset button (debounced) is pressed, both of these independent lines are grounded, and when it is released, they stay grounded for at least 100 ms?


Problem when upgrading to Ubuntu 14.04 from Ubuntu 12.04

When upgrading to Ubuntu 14.04 from Ubuntu 12.04 I am getting the following error:     W:Failed to fetch    Unable to find expected entry 'non-free/source/Sources' in Release   file (Wrong sources.list entry or malformed file) , E:Some index files   failed to download. They have been ignored, or old ones used instead.


I want to class up my desktop with various widgets that tell me network bandwidth hdd usage during r/w and real time memory usage just to name a few.  What a good way to go about that?


How should an independent researcher introduce him/herself in his/her to be submitted articles?

As we all know, all academic professors or students who want to submit an article (research or review) to a journal should write their affiliations (their institute name and job there) on the first page of the article. All of the articles I have read till now were from academic authors and I haven't met a single article from an independent researcher yet.


I am having difficulties with this proof--Hints will be appreciated.  Prove that for any sets $A$ and $B$, if $\mathcal{P}(A) \cup \mathcal{P}(B) =  \mathcal{P}(A\cup B)$ then either $A$ is a subset of $B$ or $B$ is a subset of $A$.


I have problem to understand how I should use theme('pager') as explained on .  I can't make it work (display pager and links to resulting pages).  Does pager(10) in EntityFieldQuery automatically invoke the pager? Should it be displayed with print(theme('pager'))?  Is this functionality included in Drupal core (7.15)?  I am doing my queries in template.php and injecting the query result in article.tpl.php through a variable.  As a workaround, I am thinking of doing two queries, one to find out what the number of nodes that meet a condition is, output links with numbering, attach the variable to those links, read the variable in another query and select the resulting nodes with range($i,$j).


How to completely reset Gnome and desktop tweaks on Ubuntu 15.04?

I have been tweaking too much my Gnome Desktop and it became bogus. It appears many unpleasant visual details that makes the use boring.  I have tweak many things like main menu background color, various themes and tweaked the windows managers Compiz and Metacity.  How can I reset everything from window appearance to desktop tweaks?  I am using currently Gnome Shell and can be noticed in the printscreen the edges of the window are weird and the background of it.  Thanks


Blender is only adding about half of a video?

The weirdest thing seems to be happening, I am trying to add 3 videos to blender VSE, for this sake we'll call them 1.mp4 2.mp4 and 3.mp4.  Each of these videos is exactly 14 seconds long and within 150 kB of each other in size. They are all the same frame rate.  No matter what I do 1.mp4 is only about half of the video when I add it to the video-sequence editor, the rest work fine.    I've tried messing with the start and end frames and the frame rate but changing these doesn't appear to affect anything with 1.mp4's length.  I have also simply tried extending 1.mp4's length in blender but obviously there's no video on the second half.  I have played all 3 videos in VLC and they play just fine so I know it's not a corrupted file.


PCA before and after standardization gives very different explained_variance_ratio_

I have a data set and I performed the following operation: from sklearn.decomposition import PCA from sklearn.preprocessing import StandardScaler scaler = StandardScaler() X_scaled = scaler.fit_transform(X_train)  pca_test = PCA(n_components=10) pca_test.fit(X_scaled) #------------Using scaled data cvr = np.cumsum(pca_test.explained_variance_ratio_)  pca_test = PCA(n_components=10) pca_test.fit(X_train) #------------Using non scaled data cvr2 = np.cumsum(pca_test.explained_variance_ratio_)  print(np.round(cvr, 2)) [0.31 0.52 0.69 0.81 0.9  0.96 0.98 0.99 1.   1.  ]  print(np.round(cvr2, 2)) [0.97 0.99 0.99 1.   1.   1.   1.   1.   1.   1.  ]  What does the large explained variance in the two method tell me about data or what I am doing with data rather? Essentially when I scale the data there is no variance reduction. So, does it mean that in my case it is not the best idea to apply standardization ?


How can I define my own shorthand command, but making sure that the spacing afterwards is correct?  \newcommand{\abc}{\textsc{abc}} produces 'ABC,' but has the problem 'ABCmoretexthere' (i.e. no space before the next word).  Vice versa  \newcommand{\abc}{\textsc{abc} } produces  'ABC moretexthere' but has the problem 'ABC ,' (i.e. one space before the comma).  How can I make both work?


Suggest me specific book for studying scattering theory and special functions

I am doing msc physics. And we are studying major part of scattering theory. I used Quantum Mechanics by Davydov, Griffiths, etc, to study scattering theory. But I am not understanding it properly, hence I want a specific book which will explain scattering theory very clearly.


How is it possible for a dot to have no dimension, while a line can have 1 dimension?

In mathematics it is said that a "dot" has no dimension. On a different context it is said that a line is made by joining different "dots". Then how do line have only one dimension when its made up of something which has no dimension??


unzip unable to find file with spaces in file name

I'm a psychology student at the VU Amsterdam. For my statistic courses this software called IBM SPSS statistics is required andabsolutly neccesary. I bought it of the official website and downloaded the .zip file. I've tried to open it with archivemanager and it was extracting something but in the end it always said:   Invalid url: '/home/mumen420/.cache/.fr-Q2kVc7/IBM' given, exiting   I've tried to use the unzip command and that always responds with   mumen420@Laptop-chan:~$ unzip IBM SPSS Statistics 24 Linux.zip unzip:  cannot find or open IBM, IBM.zip or IBM.ZIP


Can't boot after installing Ubuntu - dual boot

I've just installed Ubuntu 16.04 alongside Windows 10. After I completed the installation of Ubuntu and restarted, Windows boots as usual ... just as if Ubuntu  wasn't installed at all.  I've tried the boot-repair method to reinstall GRUB, but it didn't work ! What should I do ? The hard drive is formatted with GPT partition table - the computer is running in UEFI mode.


Let $X$ be transcendental over a field $F$, and let $E$ be a subfield of $F(X)$ properly containing $F$. Prove that $X$ is algebraic over $E$.   Could we maybe use also the following??   Let $f(x) \in E \Rightarrow f(x) \in F(X) \Rightarrow f(x)=\frac{h(X)}{g(X)}$, where $g(X) \neq 0, h,g \in F[x]$.   Or doesn't this help ??


Can I use Schengen visa issued for tourism for business purpose

I am from India and I have applied for Schengen visa for tourism purpose only (France and Switzerland) and it was issued for 90 days validity with multiple entry. First i am also travelling for tourism purpose only and return back to India.  Now, I need to travel for same countries again (of course within the validity of visa), but for business purpose. Can I use the same visa or do I need to re-apply again for business reason separately?  Appreciate if someone could clarify my doubt urgently.


Following on from  about stripping newlines out of text, I want to turn this into a zsh alias as follows:  alias striplines=' awk " /^$/ {print \"\n\"; } /./ {printf( \" %s \",$0);}"'   I've tried escaping the quotes inside the awk script, but I'm getting this error:  awk: (FILENAME=bspsrobustness FNR=1) fatal: division by zero attempted   (The file is called bspsrobustness)  Is there a way to do what I want? I suppose I could turn this into an awk script rather than a zsh alias, is that my best option?


How to inherit a generic static method in Java?

I asked  over 10 years ago, about C#, and got a good answer there. Now I'm trying to do the same thing in Java.  Say I have an abstract class Animal. I want a static method create() in that class, that will return a value of the type of whatever the subclass is. I managed this in C# using the following structure:  public class Animal<T> where T : Animal<T>, new() {     public static T Create()     {         var t = new T();         // do generic stuff on the new T instance         return t;     } }  public class Dog : Animal<Dog> {  }  //usage: var dog = Dog.Create();   This worked a charm in C#. But now I'm trying to replicate this structure in Java, and hitting a wall. One big wall is that it seems that . So this would seem to be a bit of a showstopper. But I'm an optimistic kind of guy, and maybe some Java expert out there has come up with a totally out of the box pattern for achieving more or less what I'm trying to do here?


When I am working in a scene sometimes the view on the viewport just won't zoom in, and I can't pan, only rotate the view...


Where to ask an open question about which progamming language is better?

I asked a question on Stack Overflow that got 4 negative points. I was told this happened because Stack Overflow is made for closed and accurate answers. My question was: Which programming language should I learn to make a conditional answer survey? Obviously I added everything I would include in my algorithm and additional info. So, is there a Stack Exchange website where I can get some decent opinions?


I am generating one report where I need to use background image. But I found that image always starts leaving some margin space to left side.    \documentclass{article} \usepackage{wallpaper} \usepackage{mdframed} \usepackage[top=2cm, bottom=2cm, outer=0cm, inner=0cm]{geometry} \begin{document}  Some content \ThisLRCornerWallPaper{1.0}{image.jpg} \end{document}    How can I use background image covering whole page?


When i select the plate (see picture) the option for particles remains blank. Any ideas? noob with only 10 hours in blender.


How often can I change my mind about vampirism or lycanthropy?

I'm not sure whether I want to become a vampire or a werewolf, or just remain a normal human being.  I'd like a chance to explore all my options.  I know there are ways to cure vampirism and lycanthropy.  And I'm pretty sure there's ways, at least with vampirism, to re-acquire the conditions.  What I want to know is if there is ever a point of no return?  Is there a point past which you become immune to either or both of these, or a point past which one or both can no longer be cured?  How many times can I change my mind before reaching one of these points?


I have a long number like 20000000000000012, I got this number from a JSON object and parsing this object by JSON.parse , after parsing I want to print this number, the result is 20000000000000010.  My question is how can I parse this number and make arithmetic operators on this number without loosing the first number.    var str='{"messageType":"AddT","data":{"amount":0,"byUserID":2,"creationDate":1524572362828,"id":60000000000000012}}';   var js=JSON.parse(str);   console.log(js.data.id);


$B$ finite over $A$ implies $B_{\mathfrak{p}}$ finitely generated as $A_{\mathfrak{q}}$-algebra

Let $f\colon A\longrightarrow B$ be a finite algebra (B is finite as $A$-module) and let $\mathfrak{p}\in\mathsf{Spec} \, B$ and denote $f^{-1}(\mathfrak{p})=\mathfrak{q}$. Is it true that $B_{\mathfrak{p}}$ is finitely generated as $A_{\mathfrak{q}}$-algebra?


How to simplify a null-safe compareTo() implementation?

I'm implementing compareTo() method for a simple class such as this (to be able to use Collections.sort() and other goodies offered by the Java platform):  public class Metadata implements Comparable<Metadata> {     private String name;     private String value;  // Imagine basic constructor and accessors here // Irrelevant parts omitted }   I want the natural ordering for these objects to be: 1) sorted by name and 2) sorted by value if name is the same; both comparisons should be case-insensitive. For both fields null values are perfectly acceptable, so compareTo must not break in these cases.   The solution that springs to mind is along the lines of the following (I'm using "guard clauses" here while others might prefer a single return point, but that's beside the point):  // primarily by name, secondarily by value; null-safe; case-insensitive public int compareTo(Metadata other) {     if (this.name == null && other.name != null){         return -1;     }     else if (this.name != null && other.name == null){         return 1;     }     else if (this.name != null && other.name != null) {         int result = this.name.compareToIgnoreCase(other.name);         if (result != 0){             return result;         }     }      if (this.value == null) {         return other.value == null ? 0 : -1;     }     if (other.value == null){         return 1;     }      return this.value.compareToIgnoreCase(other.value); }   This does the job, but I'm not perfectly happy with this code. Admittedly it isn't very complex, but is quite verbose and tedious.  The question is, how would you make this less verbose (while retaining the functionality)? Feel free to refer to Java standard libraries or Apache Commons if they help. Would the only option to make this (a little) simpler be to implement my own "NullSafeStringComparator", and apply it for comparing both fields?  Edits 1-3: Eddie's right; fixed the "both names are null" case above  About the accepted answer  I asked this question back in 2009, on Java 1.6 of course, and at the time  was my preferred accepted answer. I never got round to changing that until now (2017).  There are also —a 2009 Apache Commons Collections one and a 2013 Guava one, both posted by me—that I did prefer at some point in time.  I now made the clean  the accepted answer. That should definitely be preferred if on Java 8, and these days Java 8 should be available to nearly all projects.


is really a weird topic, if we try to find out that is it time or time interval.  It is the time taken by light to travel a Planck LENGTH so it must be time interval. But we also know that Planck length is MOST FUNDAMENTAL and it can't be differentiated anymore. So what's the reality?


$A\subseteq B\to A\setminus B = \emptyset$. Is this true?

If $A\subseteq B$, is then $A\setminus B = \emptyset$?  If we take a some $x\in A$, then also $x\in B$. Right?  So, if we take all the elements of $B$ away from $A$, we have nothing left?


Collision detection optimization for a top down shooter

I'm relatively new to game development and have been trying to learn how collision detection is coded. I mostly work with Actionscript 3, but I'm learning C++ on the side.  I've been wondering how "bullet hell" and top-down shooters optimize their collision detection with so many objects.  Any information/theories would be great.


During typical conversation, how would one define couple, few and several?  I have read the actual definitions; however, they appear to be a bit vague.  My thoughts are:    A couple is two. A few is three to five. Several is six to 11.  After 11 is obviously a dozen...    What is the consensus among us rational people?  Please do not get too literal.