What is the energy source for the spice-sandworm cycle?

The lifecycle of the Maker apparently contains stages when it produces spice (actually its precursor), and stage when it feeds on sand plankton, which are said to consume spice.   Where is the source of energy for the whole food chain? Where are the autotrophic organisms?  Are the sand plankton photosynthetisating, or are the sandtrouts using geothermal power?


Suppose you have some vector $[a_1, \ldots, a_n]$ where the terms are non-negative.  How do you call the normalization method where you divide each element by the sum (to get a probability vector)? i.e. $$a_i \mapsto \frac{a_i}{\sum a_j}$$


Prove that for sufficiently large $x$, $(\log x)^p<x$ where $p$ is a positive integer.

Ok so I was playing with GeoGebra by plotting various functions, then I come up with the following kind of graph when I plot $\log(x)$ to various positive powers and $f(x)=x$.   The green one is the function $f(x)=x$ and the blue one is $g(x)=(\log(x))^4$.  So it seems for sufficiently large $x$, any positive power of $\log(x)$ is less than $x$. But I am unable to prove this fact. Can anyone give me a hint as how to approach to this problem?


How to modify these commands to also support vertical alignment for tabularx?

The following commands can be used to .  \newcolumntype{L}[1]{>{\hsize=#1\hsize\raggedright\arraybackslash}X}% \newcolumntype{R}[1]{>{\hsize=#1\hsize\raggedleft\arraybackslash}X}% \newcolumntype{C}[1]{>{\hsize=#1\hsize\centering\arraybackslash}X}%   Here is an modified example from the wikibook:  \documentclass[letterpaper,12pt]{letter} \usepackage{tabularx} \usepackage[table]{xcolor} %Used to color the last column   \newcolumntype{L}[1]{>{\hsize=#1\hsize\raggedright\arraybackslash}X}% \newcolumntype{R}[1]{>{\hsize=#1\hsize\raggedleft\arraybackslash}X}% \newcolumntype{C}[1]{>{\hsize=#1\hsize\centering\arraybackslash}X}%  \begin{document} \begin{tabularx}{\textwidth}{ | L{1} | R{0.5} | R{0.5} | C{2} | }     \hline     label 1  & label lable 2 & label  & label 4  \\     \hline     item 1  & item 2  & item 3  & item 4  \\     \hline \end{tabularx} \end{document}   The resutl is：   From the figure, we can see the texts are vertically aligned at the top. My question is that how to modify these commands to also support the vertical alignment of these columns.


We have an external js file loaded on our static html page with a jQueryUI dialog opening a url with jQuery.load() from a button click.  Inside the ajax content returned is a handful of input elements, all number type.  We need to bind the keydown and change events to the number inputs, however it's not binding since the .bind() is happening before the elements are in the DOM from the ajax result.  We know about .on() but having an awfully hard time wiring it up.  I know we're missing something simple; any suggestions?    Basic Fiddle recreation:


How do some tools (e.g. nano , less) manage to leave no content in terminals after exit?

Whenever I use a pager like less or an editor like nano in the shell (my shell is GNU bash), I see a behaviour I cannot explain completely and which differs to the behaviour I can observe with other tools like cat or ls. I would like to ask how this behaviour comes about.  The —not easy to explain— behaviour is that normally all output to stdout/stderr ends up being recorded in the terminal-emulators backbuffer, so I can scroll back, while (not so normally to me) in the case of using less or nano, output is displayed by the terminal-emulator, yet upon exiting the programs, the content "magically disappears".  I would like to give those two examples:   seq 1 200 (produces 200 lines in the backbuffer) seq 1 200 | less (lets me page 200 lines, yet eventually "cleans up" and nothing is recorded in the backbuffer)   My suspicion is that some sort of escape codes are in play and I would appreciate someone pointing my to an explanation of this observed behavioural differences.  Since some comments and answers are phrased, as if it was my desire to change the behaviour, this "would be nice to know", but indeed the desired answer should be the description of the mechanism, not as much the ways to change it.


Access a list index after introducing words using input

I want to know why I cant access a list index. I have a list full of words(input) but then t try to acces for example: list[2] and I get an error.  words=[] n =input().split() words.append(n) print (words])   Intput: Hi internet what up Output: [['hello', 'internet', 'what', 'up']]  print(words[0])   Output:['hello', 'internet', 'what', 'up']  print(words[1])   Output: IndexError: list index out of range


Ubuntu One failed to sync after password change

I have changed my Ubuntu One password and now my Ubuntu One windows client fails to sync. Is there any way to get the windows client to work again?


18.04 - I keep running out of space - how can I enlarge my partition?

When I first installed Ubuntu I dual booted with awful disgusting windows and just decided this week to go pure Ubuntu. I love it however now I have a large formatted volume 500 gigs (where windows was, I formatted it in Linux) but my OS is only 20 gigs. I want to triple or quadruple my os partition and not lose any of my files.  Is there a way I can take space from the 500 gig partition and add it to my 20 gig os partition?


Greek Text (babel) and English Code Text (listings): Problem

I use the babel package in order to write in greek with font "kerkis".  I want to add code in english ("courier new" font) to my latex document but I get some difficulties.  Can anybody help me, please. Thank you in advance.  \documentclass[12pt]{article} \usepackage[english,greek]{babel} \usepackage[utf8x]{inputenc} \usepackage{graphicx} \usepackage{fancybox} \usepackage{verbatim} \usepackage{courier} \usepackage{kerkis} \usepackage{float} \usepackage{geometry} \usepackage{fancyhdr} \usepackage{titlesec} \usepackage{tocloft} \usepackage{hyperref} \usepackage{afterpage} \usepackage{color}    \usepackage{listings}  \renewcommand{\lstlistingname}{Κώδικας}  \lstset{  %matlab   backgroundcolor=\color{white},     basicstyle=\normalsize,    % COURIER NEW?        commentstyle=\color{green},    % comment style   escapeinside={\%*}{*)},           extendedchars=true,               frame=single,                              keywordstyle=\color{blue},       % keyword style   numbers=left,                     numbersep=5pt,                     numberstyle=\normalsize\color{black},    rulecolor=\color{black},           stepnumber=1,                      stringstyle=\color{magenta},     % string style }   \begin{document}  \selectlanguage{greek} Ελληνικά: \textlatin{this word means greek}  \selectlanguage{english} Now I write in english  \selectlanguage{greek} Ελληνικά  %\selectlanguage{english}???  \begin{lstlisting}[caption = \textlatin{example1.m}] { % Entropy E = 0; for i = 1:J     if p(i) ~= 0         E = E + p(i)*log2(1/p(i));     end end } \end{lstlisting}  \end{document}


Is it true for every prime power $q$ that $q-1 | q^r - 1$?

Suppose $q$ is a prime power, $r$ is some positive integer. We can construct the field $\mathbb{F}_q$ where there are $q-1$ non-zero elements. The relation $x\sim y \iff y \text { is a (non-zero) scalar multiple of } x$ in the set of nonzero vectors $\mathbb{F}_q^r-\{0\}$ is an equivalence, and $cx=c'x \iff c=c'$ by cancellation law in $\mathbb{F}_q$. Therefore there are equally sized equivalence classes and there are $\frac{q^r -1}{q-1}$ of them, which is an integer. Now is there a way in elementary arithmetic showing that $\frac{q^r -1}{q-1}$ is an integer?


Help figure out why my method Deserialize from the class XML return null, why? Document format attached........................................................ ................................................................................ ................................................................................                                                          public class XMl {     //список данных из xml      public XMl() { }      public dataroot Deserialize(String pathToFile)     {         //dataroot dataRoot = null;          //var serializer = new XmlSerializer(typeof(dataroot));          //var reader = new StreamReader(pathToFile);         //dataRoot = (dataroot)serializer.Deserialize(reader);         //reader.Close();          //return dataRoot;          XmlSerializer ser = new XmlSerializer(typeof(dataroot));         dataroot dataRoot = null;         using (XmlReader reader = XmlReader.Create(pathToFile))         {             dataRoot = (dataroot)ser.Deserialize(reader);         }          return dataRoot;     } }   [Serializable()] public class XML_Vozdykhoobmen {     [XmlElement("ID_Zdan")]     public String ID_Zdan { get; set; }      [XmlElement("ID_Pom")]     public String ID_Pom { get; set; }      [XmlElement("NaimZdaniya")]     public String NaimZdaniya { get; set; }      [XmlElement("NaimPomeshcheniya")]     public String NaimPomeshcheniya { get; set; }      [XmlElement("KlimatPoyas")]     public String KlimatPoyas { get; set; }      [XmlElement("Temperatyra")]     public String Temperatyra { get; set; }      [XmlElement("PritokKratnost")]     public String PritokKratnost { get; set; }      [XmlElement("PritokEdinitsaIzm")]     public String PritokEdinitsaIzm { get; set; }      [XmlElement("VytyazhkaKratnost")]     public String VytyazhkaKratnost { get; set; }      [XmlElement("VytyazhkaEdinitsaIzm")]     public String VytyazhkaEdinitsaIzm { get; set; }      [XmlElement("EdinitsaIzm")]     public String EdinitsaIzm { get; set; }      [XmlElement("PoRaschety")]     public String PoRaschety { get; set; }      [XmlElement("Kolichestvo")]     public String Kolichestvo { get; set; }      [XmlElement("Prim")]     public String Prim { get; set; } }  [Serializable()] [XmlRoot("dataroot")] public class dataroot {     //[XmlArray("Vozdykhoobmens")]     [XmlArrayItem("XML_Vozdykhoobmen", typeof(XML_Vozdykhoobmen))]     public XML_Vozdykhoobmen[] Vozdykhoobmen { get; set; } }


Question:  If $f\in C^1[0,1]$, show that  $$\int_0^1 |f(x)|dx\le\max\left\{\int_0^1 |f'(x)|\,dx,\;\bigg|\int_0^1 f(x)\,dx\bigg|\right\}.$$  I have tried to make connection between $|f|$ and $|f'|$ by using  $$(tf(t))'=f(t)+tf'(t),$$  integrate the equation with $t$ on $[0,1]$, it gets  $$|f(1)|\leq \bigg|\int_0^1 f(t)\,dt\bigg|+\int_0^1 |f'(t)|\,dt,$$  but it is not the desired inequality.


i have a SHP file of a building converted from a DXF file. This SHP file is unprojected and have no specific coordinates (origin 0,0). I find WGS84 coordinates (lat, long) of this building from Google Maps. My aim is to replace these coordinates to the SHP file on QGIS.  Could you explain the process step by step?  (I read lots of similar questions, about affine transformation. But i don't know the paramaters.)    What i ask is how to make this transformation in QGIS (step by step)?   SHP file coordinates (not projected)  Scale: 1:142.670.713  X1,Y1: 16.70824, 253.74534  X2,Y2: 1.03521,-6.34918  X3,Y3: 244.00248,-7.49189  Target WGS84 coordinates   X1,Y1: 41.047773, 28.896241  X2,Y2: 41.045452, 28.895929   X3,Y3: 41.045436, 28.899039    I need a second vector layer with coordinates. I have just a SHP file of a building converted from a DXF file. That is not projected. I know where this building is, and can find the WGS84 coordinates from Google Maps. My aim is add WGS84 coordinates to this SHP file and export to replace the building on Google Maps.  My Questions are:  1) I think my SHP file has measurements in meters and unprojected. I have WGS84 lat long coordinates from Google Maps. How can i project this SHP file, for being ready to transformation? Right Click -> Set Layer CRS -> Choose WGS84 EPSG: 4326. Is this enough?  2) qgsAffine plugin just need transformation matrix paramaters. But the answer of @Jochen Schwarze is a bit complex for me. Is there a online calculator? (Just give the source XYs and target XYs and calculate the parameters.)    I think, I have a projection problem before affine transformation. I have a DXF file of a building from AutoCAD. I saved this DXF file as a SHP file in QGIS. But this SHP file is converted from a plain DXF file and is not referenced/projected, it is drawn from coordinates 0,0 in AutoCAD in meters. And the drawing has meters, WGS84 has decimal degrees.  When I set Layer CRS as WGS84 in QGIS, the coordinates don't change.  How can I project this SHP file as WGS84 in QGIS?


I'm doing some work in Jech's Set Theory book and I am a little confused about the definition of parameter in the Axiom Schema of Separation. Within a formula, what relationship would a parameter have with the free variables, and bound variables? I'm just fuzzy about what exactly a parameter is and how it is used in the formulas. I appreciate any help. Thanks.


Happy New Year..! I have two List, List A and List B in List A, i have column name Title, Status and Value In List B i have column name Title, Status and Value in both the sheet title value is same so now i want when i enter value in List A, Status and Value same should copy to the List B (Status and Value). Reason of doing this is that, i want this Status and value to be unedited in List B. So want to pull data from another list. Pls help


I have a custom logger class which implements the ILogger interface. The custom logger is a separate assembly/nuget. I was trying to use stacktrace to find the name of the calling method but it seems it differs if used in the program versus a unit testing project. Is there a more convenient way to get the calling method e.g. the calling assembly method name? public class MyClass {     private void HelloWorld() {         var myLoggerProvider = new LoggerProvider(Config);         LoggerFactory.AddProvider(myLoggerProvider);         var logger = LoggerFactory.CreateLogger<Program>();         LogInformation("HelloWorld");    } }  //   Inside custom logger  ////...      public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)     {        //   Get the calling function name       var classFunction = new StackTrace(4).GetFrame(0).GetMethod().Name;     }  ///....


Is there a QGIS 3 setting to completely turn off plugins?

I would like to turn off all plugins without uninstalling them.  I usually do this while testing to rule out an issue being caused by a plugin.  I am looking for the QGIS equivalent to the ArcMap Administrator setting BlockAddIns being set to 4:  0—Load all add-ins regardless of whether or not they have digital signatures. 1—Only load and use add-ins that are digitally signed by a trusted certificate authority. 2—Only load and use add-ins that have been published by ESRI. 3—Only load add-ins from the administrator folders (described below) and all add-ins published by ESRI. 4—Do not load or execute any add-ins in this application.


If $a_1,a_2,\ldots, a_n$ are distinct primes, and $a_1=2$, and $n>1$, then $a_1a_2\cdots a_n+1$ is of the form $4k+3$.  I have no ideas how to approach this question. Any hints?


In an Introduction to Abstract Algebra by Thomas Whitelaw, he gives examples of the congruence mod operation, such as $13 \equiv5 \pmod4$,  and $9 \equiv -1 \pmod 5$. But when I first learned about the modulo operation my junior year, I would have told you that $13 \equiv 1 \pmod 4$, and that $9 \equiv 4 \pmod 5$.     Is this just a difference in the definition of modulo? Or is this pretty typical (to not take it to the largest factor, or one over)?


What to do now i am not clear what he want to know about me My consultant ask me to submit this case again nd we will show how our money link to my business


Assign Domain to IP Address which has a path

In my DNS settings, I want to point this website domain - www.websiteA.example to the following IP address which has a path http://xxx.xxx.xxx.xxx/pathA (this is a VPS, if it makes any difference) Is this possible? If so can you please provide more information on how I can achieve this?


How to count the number of bytes in a file, grouping the same bytes?

Example: I have the file "mybinaryfile", and the contents in hex are:  A0 01 00 FF 77 01 77 01 A0   I need to know how many A0 bytes there are in this file, how many 01, and so on. The result could be:  A0: 2 01: 3 00: 1 FF: 1 77: 2   Is there some way to make this count directly in shell or do I need to write a program in whatever language to do this specific task?


Correlation of linear combination of random variables

How do I proceed further? (assuming what I did is correct in the first place)


American living abroad and not working for an American company - tax reporting and bank accounts

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


"sha256sum mismatch jdk-7u3-linux-x64.tar.gz " error when trying to install Oracle Java

i recently tried installed java 7 on ubuntu 12.04 and i think i screwed something up  I followed .  First you need to remove openjdk for this run the following command from your terminal  sudo apt-get purge openjdk* Now you can install Java7 by adding the following repository:  sudo add-apt-repository ppa:eugenesan/java sudo apt-get update sudo apt-get install oracle-java7-installer     Now everytime i install a new program i get the following error:  Download done. sha256sum mismatch jdk-7u3-linux-x64.tar.gz Oracle JDK 7 is NOT installed. dpkg: error processing oracle-java7-installer (--configure):  subprocess installed post-installation script returned error exit status 1 Setting up python-central (0.6.17ubuntu1) ... Setting up python-eggtrayicon (2.25.3-11) ... Setting up gmail-notify (1.6.1.1-1ubuntu1) ... Processing triggers for python-central ... Errors were encountered while processing:  oracle-java7-installer Error in function:      However.The program seems to install and work just fine so it doesn't seem to be a problem preventing me from doing anything  So then i reinstalled openjdk by going:  sudo apt-get install openjdk*  But i still get the same error.  going:  sudo apt-get install oracle-java7-installer gives me the same error.  What is going on?  Please let me know if this is clear or not and ill try to explain my issue better


I flagged a link-only answer as "not an answer" but my flag was declined

Earlier I flagged :     Please used this tutorial here   I flagged it as "not an answer" since , but received the following response.     not an answer – 1 hour ago   declined - The correct response is to down-vote and/or comment. There is no need to get moderators involved.   I completely disagree with this response, and thought I would mention it here (I had a couple of other flags declined earlier which I was also a bit dubious about, but this one seems clear cut).  Has the policy changed?


Since I'm using the  package by Joseph Wright a reference to a figure, or scheme (a float environment defined by the package) is always printed as:     Figure XY   or      Scheme YZ   Normally one would write someting like   Cooking bacon (see figure \ref{fig:Foo bar}) and eggs.   And get an output like     Cooking bacon (see figure XY) and eggs.   Now, with the chemstyle package, this renders to:     Cooking bacon (see figure Figure XY) and eggs.   How can I get back to the normal behaviour of \ref?  If you see this Joseph, think about implementing an option to switch the behaviour of this as some people may like the automatic output, but others, as me, don't.    MWE  \documentclass{article}  \usepackage{chemstyle} \usepackage{graphicx}  \begin{document}  \begin{figure}[htb!]     \centering     \includegraphics{example-image}     \caption{Foo figure}     \label{fig:foo} \end{figure}  Figure \ref{fig:foo} shows a Foo.  \end{document}


How do I know why I'm getting downvotes, if no one comments?

So I asked my first question and got instantly downvoted for no reason that I can determine. How can I figure out why my question is getting downvotes so that I can fix it?   I provided code examples. I did searches to try and find the answer prior to asking. I don't get it.     Clarification:  If the user does searches and provides code and asks a pointed question but then gets downvotes with no comments and only some vague text in a tooltip about it being somehow unclear, but not specifically how, ...is the implication that psychic powers are the usual expectation on StackOverflow? ;-)   I guess I can adapt somewhat by pasting in 30 or 40 google searches. Then, at least, I have proof of research.


Prob. 4, Sec. 1.2 in Kreyszig's Functional Analysis: Example of a sequence converging to $0$ which is not in any $\ell^p$

Here's Prob. 4, Sec. 1.2 in the book Introductory Functional Analysis With Applications by Erwine Kreyszig:      Find a sequence which converges to $0$, but is not in any space $\ell^p$, where $1 \leq p < +\infty$.    My effort:      For any $n \in \mathbb{N}$, we have the following chain of inequalities.    $$ 0 < \sqrt[p]{2n - \sqrt[n]{n}} \leq 2n - \sqrt[n]{n} < 2n;$$    so    $$ 0 < \frac{1}{2n} < \frac{1}{2n - \sqrt[n]{n}} \leq \frac{1}{\sqrt[p]{2n - \sqrt[n]{n}} }.$$   Now as the series $\sum \frac{1}{2n}$ diverges to $+\infty$, so does each of the series $\sum \frac{1}{2n - \sqrt[n]{n}} $ and $\sum \frac{1}{\sqrt[p]{2n - \sqrt[n]{n}} }$.       Now we take the sequence $\left( \xi_n \right)_{n \in \mathbb{N}}$, where $$\xi_n \colon= \frac{1}{\sqrt[p]{2n - \sqrt[n]{n}} }$$ for each $n \in \mathbb{N}$. Then we note that $$\lim_{n \to \infty} \xi_n = 0,$$ but this sequence is not in $\ell^p$, for any fixed $p$ such that $1 \leq p < +\infty$.    Am I right? If so, is this example simple enough? Or, can we come up with one which is even simpler? If not, then where am I going wrong?


He is one of the men who do the work.   Could someone explain why it is "do" and not "does" up there? I'm sure this question has been asked before and I've memorized what to do with such sentences. But still I'm confused as to the reason why "do" is correct.  Is the subject up there "men" and not "he"? Why isn't it possible to make "he" the subject?


Flickering windows and menus - Ubuntu 16.04

so I'm a new user, just installed Ubuntu on the 14th, so a few days ago. At first it worked fine, but now I have a problem where any time my mouse goes over the taskbar, it disappears, and all of my windows yesterday.   I'm using Ubuntu 16.04 LTS straight from the website and installed it by erasing Windows 10. My computer has a Pentium(R) Dual-Core CPU E5200 processor and Intel® Q45/Q43 graphics card, as far as I can find.   The problem just started today, and attempting to update the Intel drivers failed to solve the problem. Googling the issue has done nothing, so I'm sort of at my wit's end, as I was planning to use this computer heavily and I can't even open another program without opening the terminal because the menus flicker out. Unity dash (that is the equivalent of the start menu, right?) won't open and I don't know the program name for Chromium so I'm using Mozilla at the moment.   Any sort of help would be appreciated, thank you.   Edit: My question isn't a duplicate to the one linked because of a few reasons:  1) When my desktop loads, it looks normal. I have the sidebar and everything, it's just when I mouse over the sidebar that it disappears.   2) I can sort of alt-tab; for example, from mozilla I can switch to the Ubuntu Software window (which I managed to open by mousing over the sidebar, waiting for the flicker to end, and clicking it right as it came back up), and back, with a flicker only from Mozilla to the Ubuntu Software window, but not back.  3) My system doesn't crash, but when I tell it to shutdown from the top menu, it just sits there. If I tell it to reboot from the terminal, it works.   Windows key does not work, though.


How do I play a friend's game on my PS4 console?

My brother downloaded a game on his ps4 console, and I would like to play that game on my console without buying it myself. Is this possible?


Formatting arrows between rows of corresponding matrices

Some material I'm creating requires output that looks like this:  (note the position of the arrows).    I'm using the following code (with the AMS macros) to generate this, and I'm looking for comments - it works fine, but I'm curious if there's a better/cleaner way to deal with the arrows:  \[   \begin{bmatrix}[rrr|r] 1 & 2 & 0 & -1 \\ 2 & 1 & 1 & 1 \\ -1 & 1 & -1 & -1   \end{bmatrix}   \begin{matrix}[c] ~ \\ \xrightarrow{R_2-2R_1} \\ \xrightarrow{R_3+R_1} \end{matrix}   \begin{bmatrix}[rrr|r] 1 & 2 & 0 & -1 \\ 0 & -3 & 1 & 3 \\ 0 & 3 & -1 & -2 \end{bmatrix}   \begin{matrix}[c] ~ \\ ~ \\ \xrightarrow{R_2+R_3} \end{matrix}   \begin{bmatrix}[rrr|r] 1 & 2 & 0 & -1 \\ 0 & -3 & 1 & 3 \\ 0 & 0 & 0 & 1 \end{bmatrix} \]   I'm using only the standard AMS macros, together with a cute addition to the matrix macros that I found on the Web that allows column specifications within the AMS matrices:  \makeatletter \renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%   \hskip -\arraycolsep   \let\@ifnextchar\new@ifnextchar   \array{#1}} \makeatother


So I came across Pascal's identity: Prove that for any fixed $r\geq 1$, and all $n\geq r$, $$ \binom{n+1}{r}=\binom{n}{r}+\binom{n}{r-1}. $$  I know you can use basic algebra or even an inductive proof to prove this identity, but that seems really cumbersome. I was wondering if anyone had a "cleaner" or more elegant way of proving it. For example, I think the following would be a decent combinatorial proof.   Proof: Let $S$ be a set with $n+1$ elements, and consider some fixed $x\in S$. There are $\binom{n+1}{r}\;\; r$-subsets of $S$--count them according to whether or not they contain $x$: there are $\binom{n}{r}$ not containing $x$, (each formed by choosing $r$ of the remaining $n$ elements in $S\setminus\{x\}$), and there are $\binom{n}{r-1}\;\; r$-sets containing $x$, (each formed by selecting an additional $r-1$ elements in $S\setminus\{x\}$).   Is that right? Are there any other efficient ways of doing it?


I'm a novice in Blender and my problem is the roof isn't transparent everywhere, when I put camera in a certain angle the location of the transparent changes.  I use BlenderGuru pro lighting skies for the light.


$\mathbb{Q}(\sqrt{p},\sqrt[3]{q})=\mathbb{Q}(\sqrt{p}\sqrt[3]{q})$ for distinct prime $p,q$

Can someone please give me a tip how to show that for distinct prime $p,q$ that $\mathbb{Q}(\sqrt{p},\sqrt[3]{q})=\mathbb{Q}(\sqrt{p}\sqrt[3]{q})$ and how to find the minimal polynomial of $\sqrt{p}\sqrt[3]{q}$ over $\mathbb{Q}$ ?


I would like to ask that what code should i add in order to make my related posts by tag to display randomly? I got this code from somewhere else.  <?php $orig_post = $post; global $post; $tags = wp_get_post_tags($post->ID); if ($tags) { $tag_ids = array(); foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id; $args=array( 'tag__in' => $tag_ids, 'post__not_in' => array($post->ID), 'posts_per_page'=>5, // Number of related posts that will be shown. 'caller_get_posts'=>1 ); $my_query = new wp_query( $args ); if( $my_query->have_posts() ) { echo '

Related Posts
'; while( $my_query->have_posts() ) { $my_query->the_post(); ?>

<a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>" rel="nofollow"><?php the_title(); ?>
 <?php the_excerpt(); ?>
  <? } echo '
'; } } $post = $orig_post; wp_reset_query(); ?>   Any solution? Thanks!


Do Egyptian Citizens need transit visa at Athens International Airport

I hold an Egyptian Passport and will book a ticket from Moscow, Russia on Aegean Airlines to Cairo, Egypt. As any foreign airlines I will transit in Athens international Airport for 8 hours, do I need a Schengen transit visa to spend those 8 hours at Athens International Airport. Are the airline hostesses going to make sure that I have such transit visa before they let me on board in Moscow Domodedovo Airport.


I have a post carousel where i am showing archive post .

                                                      Ahmedabad Investor CampFinal Disscusion
29 may 2019

   and CSS  .post__title, .post:link, .post:visited {      font-size: 18px;      font-weight: 500;      color: #fff;      cursor: pointer;      display: block; }  .post__img {      position: relative; }  .post__img::before {      content: "";      display: block;      height: 100%;      position: absolute;      top: 0;      left: 0;      width: 100%;      background-color: rgba(255, 255, 255, .8); }  .post__date {      font-size: 12px;      font-weight: 400;      color: white; }  .post--small {      display: flex; }  .post--small .post__img {      width: 119px; }   I am trying to achieve overlay on images with any extra div , so i used ::before element . I think everything i done is right but this code didn't work .   Please help , Thank you in advance


I have following enum class:  #ifndef UEPROTOCOLCOMMANDS_H #define UEPROTOCOLCOMMANDS_H  enum class UeProcotolCommand {     INVALID_COMMAND=0x0000000000000000,      SERVER_GET_CLIENTS_VERSIONS=0x0000000000000001,     SERVER_CONNECTION_RESET=0x0000000000000002,      CLIENT_GET_DATABASE_CREDENTIALS=0x1000000000000001,     CLIENT_DISCOVER_COMM_SERVER=0x1000000000000002 };   // UeProtocolCommands  #endif // UEPROTOCOLCOMMANDS_H   and it generates following error:  In file included from ../../../../uePOSCommProtocol/net/comm_protocol/uemessageheader.h:6:0,                  from ../../../../uePOSCommProtocol/net/comm_protocol/uemessagerequest.h:6,                  from ../../../../uePOSCommProtocol/ueposcommprotocol.h:8,                  from ../../../uemainwindow.h:16,                  from ../../../main.cpp:3: ../../../../uePOSCommProtocol/net/comm_protocol/ueprotocolcommands.h:11:37: error: enumerator value 1152921504606846977l is too large for underlying type 'int'      CLIENT_GET_DATABASE_CREDENTIALS=0x1000000000000001,                                      ^ ../../../../uePOSCommProtocol/net/comm_protocol/ueprotocolcommands.h:12:33: error: enumerator value 1152921504606846978l is too large for underlying type 'int'      CLIENT_DISCOVER_COMM_SERVER=0x1000000000000002                                  ^ make: *** [main.o] Error 1 14:23:40: The process "/usr/bin/make" exited with code 2. Error while building/deploying project uePOSCommClient (kit: Desktop Qt 5.6.0 GCC 64bit) When executing step "Make"   I need to tell to compiler that enum elements are of type quint64, not the default int. How?


Export tracklog from GPS information panel

When I use QGIS on the field, I always turn the tracklog on in the "GPS information" panel. So the tracklog is showed as I walk with the GPS on, but I can't find the way to download this track into a shapefile or a GPX file.   Can someone explain me how to proceed?


Calendar rightNow = Calendar.getInstance(); String month = String.valueOf(rightNow.get(Calendar.MONTH));   After the execution of the above snippet, month gets a value of 10 instead of 11. How come?


How can I access google.com outside the US?

I live in the UK, and whenever I visit google.com I am redirected to google.co.uk, but I want to see my website's rankings on the US version (I presume the results are different). Is there a way to do this?


I have a strange REGEX Request.  I would like to clear out all of these chinese characters from my file.  Im already not good with regex, and I would like to do this using RegEx within visual studio find/replace (current document) if possible.  Basically the search string would be like this: BEFORE   <nomenclature name="sCharge_Account_String" value="Charge Account/ 收费帐户:"/>   AFTER   <nomenclature name="sCharge_Account_String" value="Charge Account:"/>   So I want to clear everything between the "/" and the ":" but include the "/"


Can we arrange an uncoutable amount of points on $\mathbb{R}^{2}$ so that their closure has dimension 0?

Just out of curiosity, can this be done? For the euclidian topology.


2 Functions creating same variable, yet no conflict?

In the book Pro HTML5 games there is a part that shows how to create 2 bodies in Box2dWeb. For example, a circle and a rectangle, one could do the following:   function createRectangularBody(){      var bodyDef = new b2BodyDef;      bodyDef.type = b2Body.b2_dynamicBody;      bodyDef.position.x = 40/scale;      bodyDef.position.y = 100/scale;      var fixtureDef = new b2FixtureDef;      fixtureDef.density = 1.0;      fixtureDef.friction = 0.5;      fixtureDef.restitution = 0.3;      fixtureDef.shape = new b2PolygonShape;      fixtureDef.shape.SetAsBox(30/scale,50/scale);      var body = world.CreateBody(bodyDef);      var fixture = body.CreateFixture(fixtureDef); }   And   function createCircularBody(){  var bodyDef = new b2BodyDef;  bodyDef.type = b2Body.b2_dynamicBody;  bodyDef.position.x = 130/scale;  bodyDef.position.y = 100/scale;  var fixtureDef = new b2FixtureDef;  fixtureDef.density = 1.0;  fixtureDef.friction = 0.5;  fixtureDef.restitution = 0.7;  fixtureDef.shape = new b2CircleShape(30/scale);  var body = world.CreateBody(bodyDef);  var fixture = body.CreateFixture(fixtureDef); }   To create the bodies, it is then called both functions:  createRectangularBody(); createCircularBody();   Afterwards, it is called a method that draws the bodies, so we have  createRectangularBody(); createCircularBody(); setupDebugDraw();//Draws the bodies defined by functions above   My questions is, inside both functions we have the same objects bodyDef and fixtureDef and then proceed to change attributes of these objects. After that, we pass both objects to the world.CreateBody() method and then store then in variable body and fixture. How come there is no conflict? Are the objects created treated as different since they are in different functions? I thought that the function declared after the other would modify the objects and the whole thing wouldn't work, but that wasn't the case.


My question is clear: what is philosophy and why it is exist and why people still care about philosophy when we have science?


16GB pen drive showing 2MB space after formatting on windows 7

I burned Ubuntu 14.04 image on 16GB pen drive on laptop having ubuntu.  Now when I inserted this pen drive it showed 2MB free space without recognising any other space.  I formatted pen drive on windows 7 PC.   Now after I rebooted my computer and tried to boot from pen drive, i was able to install ubuntu on my dekstop.  now my problem is that now also it is showing 2MB free space.  After using the disks utility I get the following displayed :    How can I recover my 16 GB free space ??  Please Help !!


Ubuntu 14.04 installation of the dropbox daemon failed

I know questions like this were asked several times before, but non of those solutions helped me out. I tried to install dropbox on a clean Ubuntu 14.04 installation, but I can't get it to work.  First I tried to install the nautilus-dropbox package from the default source, then I tried to install the dropbox package from the dropbox third party source. Both installations failed to install the dropbox daemon, even installing it manually failed.  The download of the daemon completes fine every time, but the installation process fails at 60% saying my Internet connection failed.  Screenshot :    There is no proxy in my local network and there is no proxy configured in the Ubuntu settings.  I hope somebody knows a solution for this problem.  Thanks  Panzki


How to remove items from the right click (context) menu in Windows?

The  is minimal and clean on a fresh installation of Windows. Install a bunch of applications and soon the context menu is loaded with all kinds of opening options from various applications.  How do I remove items from the right click (context) menu?  I find that there are different types of right click menu items:   Global items that appear in all context menus. Items that appear only on folders. Items that appear only on files. Items that appear only on special folders (Ex: Right clicking a folder of MP3s shows up a context menu with items like Play with Windows Media Player.) Items that appear only on certain file types (Ex: Right clicking a MP3 file shows up a context menu with items from Windows Media Player/Foobar2000/VLC/your-favorite-media-player begging to open this file.)   I want to be able to delete all these kinds items from the right click (context) menu.


Are there disadvantages to switching companions?

I got to the highest level of trust of one of my companions. Now I'm curious if there are disadvantages to doing the same with a different companion to get their perk as well.  Do I lose the perk from the first companion? Do I slowly lose karma with them if not traveling with them?   Is there any negative side effect, or should I just run around as a two-faced chameleon gaining the perks from all of them I can?


What are Luke and Yoda eating in Yoda's hut in Episode V?

I was watching Episode V with my nephew yesterday.  In the scene in Yoda's hut on Dagobah, Yoda offers Luke some oat porridge like food before revealing himself to be a jedi master.  My nephew's question was:     What are they eating?   He was incredulous when I said 'porridge', but that's my closest guess.


What's the word to convey the meaning "not consciously aware of"?


I was looking through a list of wpf questions with 0 answers and found this one:    The caveat here is that in the list, it showed 0 answers but had the markup as if one of the 0 answers was accepted. Intrigued, I clicked and discovered that this answer:  (10k+ req to view) had been deleted.  The deleted answer was accepted (although it is not very high quality). Or the accepted answer was deleted. One of the two happened, but I was not sure how. I tried it on one of my own accepted answers and was denied with the message "You cannot delete this accepted answer".  How did the linked accepted answer get deleted?


Gmail says the username is 'already in use' and 'not in use' at the same time

I'm helping my father today to update his Google account. Below is a step-by-step procedure of what we did, and where we got in trouble.     1.  The procedure step-by-step  First we logged in with his usual emailaddress karel.mulier@hotmail.com. We got into his Google account, and pressed on the icon representing the Gmail:      Google immediately showed us a message, encouraging us to add a Gmail to this Google-account. I've taken a screenshot, and added translations from Dutch to English in green ink:    As you can see, the username karelmulier is already in use! This is very worrying to us, because my father never created a gmail address. We fear that someone with bad intentions created this account on my fathers name.  I search for account recovery on Google, and got onto this link:    I get a form where I can fill in the 'lost' account that I want to recover. Here is a screenshot:    As you can see, Google claims that the account karelmulier@gmail.com doesn't exist.     2.  Our confusion  When I attempt to add the Gmail address karelmulier@gmail.com to my fathers existing account, Google refuses because it "is already in use". When I try to recover it (from some bad guy abusing my fathers name), Google tells me it doesn't exist. How is this possible?


Parenthesis in expr arithmetic: 3 * (2 + 1)

expr does not seem to like parenthesis (used in mathematics to explicit operator priority):  expr 3 * (2 + 1) bash: syntax error near unexpected token `('   How to express operator priority in bash?


DB connection error after copying a WordPress Multisite instance to a second location

Here's my setup. I have a Multisite instance running at , and I want to do development and staging. Moving an existing Multisite instance of WP onto localhost is a nightmare, so I'm going to do dev on a staging location instead.  I set up  to point to the /public_html/staging/ directory of the hosting account, and copied all of the WP files from my root into the /staging/ directory. I also copied the database files (SQL dump, imported the tables into a new database), and changed the wp-config.php file to point to the new database.  After running SQL to change the database records, I also change this one line in the wp-config.php file:   /** Turning on WordPress MU, new in 3.0 */ define( 'MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', false ); $base = '/'; define( 'DOMAIN_CURRENT_SITE', 'example.com' ); // <- I change this line define( 'PATH_CURRENT_SITE', '/' ); define( 'SITE_ID_CURRENT_SITE', 1 ); define( 'BLOG_ID_CURRENT_SITE', 1 );   Changed to:  define( 'DOMAIN_CURRENT_SITE', 'staging.example.com' ); // <- now changed   When I load up , I get... Error establishing database connection!  I've checked and triple checked the username and password, made sure that the user has all privileges on the new staging database, and I've left the DBHOST as 'localhost' (although changing it to staging.example.com didn't help, either).  Why would the database connection fail? Anyone? (Thanks for your help in advance.)  NB:  is working fine running on very similar db connection settings, just with a different database, so it's not an issue with the database server being down.


What is the meaning of this sentence? I ain't worried 'bout nothin'

I ain't worried 'bout nothin'  I want to know the meaning of this line. I found it in a song named fifth harmony.


Infinite "for" loop when using not equal

Hi this is surely simple but i cant find the answer to why this doesn't quit the loop after 0.9      #include <stdio.h>      int main()     {             float x;             for(x=.1;x!=1.0;x+=.1)             printf("%f\n", x);             return 0;     }


Can the referee cancel the goal in such case?

In the following scenario, can the referee cancel the goal?  The ball goes out of play. A fight begins between to player of different teams. The referee warns both players, ends the fight and restarts the play. Plays restarts and one of the players who fought scores a goal just 10 seconds after the game restarted. At the same time, assistant referee warns the head referee that the player who scored a goal had hit his/her opponent during the fight. The head referee shows the player red card and sends him/her off.  In my opinion, the referee can send the player off but cannot cancel the goal, even though the goal was scored by the player who must have been sent-off. The reason why I think like that is, the position has changed after the fight. Am I right?


How to verify whether I have updated from beta to stable?

I has been using Ubuntu 11 Beta, I want to verify I have the stable version. I read that I should use update manager to update, and read that the was supposed to be an "upgrade platform" or similar button, something I used when I updated from Ubuntu 10.10 to 11 beta. But this time, I dont see that, just normal updates. I tried   cat /etc/issue  Ubuntu 11.04 \n \l   Is it the latest?


Ubuntu installation problem in remaining free space

I'm using windows 10 but I left some free space of about 300 GB so that I can install Ubuntu 14.04 on it , but windows is not showing any partition and I cannot get any further in installation , I also don't want to lose my data in windows so kindly guide me about this problem that how can I install Ubuntu easily in the free space I left.


Group of Order $p^2$ Isomorphic to $\mathbb{Z}_{p^2}$ or $\mathbb{Z}_{p}$ $\times$ $\mathbb{Z}_{p}$

I'm a bit lost on this problem:      Show that a group of order $p^2$ is isomorphic to $\mathbb{Z}_{p^2}$ or $\mathbb{Z}_{p}$ $\times$ $\mathbb{Z}_{p}$.    The only thing I can think of that may relate to this problem is Lagrange's Theorem, where the order of a subgroup divides the order of a group. But I'm not sure if I can even use that for this problem... Any help would be tremendously helpful. Thank you!


My doc is  \documentclass[12pt,a4paper]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[english,ukrainian]{babel} \usepackage{indentfirst} \usepackage{misccorr} \usepackage{graphicx} \usepackage{amsmath} \usepackage{multirow} \usepackage{tabularx} \begin{document} \begin{center}\textbf{Хід роботи}\end{center} \begin{tabular}{| c | c | c | c | c | c | c | c | c | c | c |} \hline  \multirow{2}{*}{№ Досліду} & \multicolumn{4}{ |c| }{Результати досліду} & \multicolumn{6}{ |c| }{Розраховані величини} \\ \cline{2-11} & $E$, В & $I$, мА & $U_0$, В & $U_1$, В & $R_0$ & $R_1$ & $P$ & $P_0$ & $P_1$ & К.к.д \% \\ \hline 1.$r_1 = 0$ & 12 & 4.000 & 12 & 0 & 3 & 0 & 18 & 18 & 0 & 0 \\ 2.$r_1 = r_0 / 2$ & 12 & 2.666 & 8 & 4 & 3 & 1.5 & 31.984002 & 21.322668 & 10.661334 & 33 \\ 3.$r_1 = r_0$ \\ 4.$r_1 = 2r_0$ \\ 5.$r_1 = 3r_0$ \end{tabular} \end{document}


If $X_1,X_2$ are independent beta then showing $\sqrt{X_1X_2}$ is beta

Here is a problem that came in a semester exam in our university few years back which I am struggling to solve.     If $X_1,X_2$ are independent $\beta$ random variables with densities $\beta(n_1,n_2)$ and $\beta(n_1+\dfrac{1}{2},n_2)$ respectively then show that $\sqrt{X_1X_2}$ follows $\beta(2n_1,2n_2)$.   I used the Jacobian method to obtain that the density of $Y=\sqrt{X_1X_2}$ is as follows: $$f_Y(y)=\dfrac{4y^{2n_1}}{B(n_1,n_2)B(n_1+\dfrac{1}{2},n_2)}\int_y^1\dfrac{1}{x^2}(1-x^2)^{n_2-1}(1-\dfrac{y^2}{x^2})^{n_2-1}dx$$  I am lost at this point actually. Now, in the main paper, I found a hint had been supplied. I tried to use the hint but could not obtain the desired expressions. The hint is verbatim as follows:     Hint: Derive a formula for the density of $Y=\sqrt{X_1X_2}$ in terms of the given densities of $X_1$ and $X_2$ and try to use a change of variable with $z=\dfrac{y^2}{x}$.   So at this point, I try to make use of this hint by considering this change of variable. Hence I get, $$f_Y(y)=\dfrac{4y^{2n_1}}{B(n_1,n_2)B(n_1+\dfrac{1}{2},n_2)}\int_{y^2}^y\dfrac{z^2}{y^4}(1-\dfrac{y^4}{z^2})^{n_2-1}(1-y^2.\dfrac{z^2}{y^4})^{n_2-1}\dfrac{y^2}{z^2}dz$$which after simplification turns out to be (writing $x$ for $z$)$$f_Y(y)=\dfrac{4y^{2n_1}}{B(n_1,n_2)B(n_1+\dfrac{1}{2},n_2)}\int_{y^2}^y\dfrac{1}{y^2}(1-\dfrac{y^4}{x^2})^{n_2-1}(1-\dfrac{x^2}{y^2})^{n_2-1}dx$$  I do not really know how to proceed. I am not even sure that I am interpreting the hint properly. Anyway, here goes the rest of the hint:     Observe that by using the change of variable $z=\dfrac{y^2}{x}$, the required density can be expressed in two ways to get by averaging $$f_Y(y)=constant.y^{2n_1-1}\int_{y^2}^1(1-\dfrac{y^2}{x})^{n_2-1}(1-x)^{n_2-1}(1+\dfrac{y}{x})\dfrac{1}{\sqrt{x}}dx$$Now divide the range of integration into $(y^2,y)$ and $(y,1)$ and write $(1-\dfrac{y^2}{x})(1-x)=(1-y)^2-(\dfrac{y}{\sqrt{x}}-\sqrt{x})^2$ and proceed with $u=\dfrac{y}{\sqrt{x}}-\sqrt{x}$.   Well, honestly, I cannot understand how one can use these hints: it seems I am getting nowhere. Help is appreciated. Thanks in advance.


Where is the difference in meaning of these two sentences? "I wish you wouldn't drink so much" vs. "I wish you didn't drink so much."


Telling if a Redstone Energy Cell is full -Recent Tekkit-

Is there any way to tell if a Redstone Energy Cell is full in the Galacticraft version of Tekkit? Any form of emitting a redstone signal when it is full to turn off my engines would be great.


Are there infinitely many $A\in \mathbb{C}^{2 \times 2}$ satisfying $A^3 = A$?

Let $A$ be a $2 × 2$-matrix with complex entries. The number of $2 × 2$-matrices $A$ with complex entries satisfying the equation $A^3 = A$ is infinite.  Is the above statement true? I know that $0$ and I are two solutions. But are there any more solutions?


If conservation of energy was wrong, how would we know about it?

Suppose you just started learning physics and you've been introduced to conservation of energy and kinetic energy. Apart from those concepts you know next to nothing. Then you observe an inelastic collision. You measure the speeds of the objects before and after the collision and you are puzzled because kinetic energy is the only form of energy you know and you see it's clearly not conserved. You conclude that either:  a) Conservation of energy is wrong.  b) The formula $E_k = mv^2/2$ is wrong.  c) There is some other form of energy you didn't account for.  HOW do you know which one of those scenarios is true? Can you measure the total amount of energy contained in those two objects before and after the collision and reassure yourself that everything is okay, energy hasn't gone anywhere, it just changed its form? If you observe an object that seems to gain energy from nothing, how will you know whether conservation of energy fails or there is some undiscovered form of energy that you don't know how to measure yet?


QGIS categorized legend show only with data

I generate maps from CSV to which I apply a style sheet.  In the stylesheet defines the set of items I may encounter.  But in most csv, there are not all the elements defined in style.  So I find myself with times 10 points of the same type on the map, but with a legend of 50 categories.  How to display the categories that are present on the


Got problem with installation. "No root file system is defined."

I'm very new with Ubuntu and generally with linux. I saw ubuntu and it seems like this OS is really good and stable, and so I decided to install it alongside my windows 7 OS.  I have a few problems with the installation. Here is what I did:   I downloaded the 64bit version from Ubuntu official website, and burned it on a dvd. I set the boot sequence to first load from my CD-Rom. Ubuntu installation started, and I chose "Install Ubuntu" in the menu. (where there is also a "Try Ubuntu" option) I clicked forward until I got into the installation type screen    As you can see, the installation wont show my actual details about my hard drive! I have 1 hard drive with 750 GB - 80 GB - My main drive with windows 7 OS 600GB - All of my stuff 20GB Free space that I saved for Ubuntu But the installation wont show that!


Clicking bar@reputation graph, reputation changes wrong

It seems when your clicking the reputation bar for single days, you get the reputation for the previous day. Also the x axis ticks do not seem to be alligned with the tool-tips.   E.g. in the screenshot below:   The Tooltip says June 6. The tick is labelled June 7. The list of reputation changes is incorrect.


I starting learning Sweave today, and I am having difficulty positioning my figures correctly. I am finding that when I use the figure environment, the position of the figure doesn't correspond to its position in the document. Here is a minimal example of a .Rnw file showing with this problem:  %figure appears after both text A and text B \documentclass[12pt]{article}  \begin{document} \SweaveOpts{concordance=TRUE} Text A \begin{figure} \begin{center} <<fig=TRUE, echo=FALSE>>= hist(rnorm(100)) @ \end{center} \caption{histogram} \label{fig:hist} \end{figure}  Text B \end{document}   In this example, text A and text B both appear after the figure, which is not what I would expect. Surprisingly, if I don't use the figure environment, the figure is positioned correctly:  %figure appears between text A and text B  \documentclass[12pt]{article}  \begin{document} \SweaveOpts{concordance=TRUE} Text A \begin{center} <<fig=TRUE, echo=FALSE>>= hist(rnorm(100)) @ \end{center} \end{document}   Any ideas?


What is the maximum voltage that can be put on a metal sphere before electrons fly off it or the metal itself explodes due to electrostatic forces?


Submitting multiple papers to the same journal simultaneously

I know that it is ill advised to submit a single paper to multiple journals at once. But what about multiple papers to a single journal? For instance, I have a few different drafts that I could clean up, which would probably fit well in Mathematics Magazine. I don't know how long it takes for a submission to be accepted or rejected. Is it acceptable to submit additional papers before hearing back about the first one?


Is my pseudo code for changing time format correct?

I need to create a pseudo code that will prompt for time in 24 hours format, convert it to 12-hour format and also whether it is AM or PM. It will have to repeat until sentinel time of 9999 is entered. Below is what I had come out with, is it correct?    Prompt for time Get time Enter this loop:  DOWHILE (time != 9999)   IF (time < 0000 OR time > 2400 OR (time%100 >=60))  Display 'Invalid time'   ELSE  IF (time >= 1200 AND time <= 2400 )      format  = 'pm'     hours = (time/100) - 12     mins = time%100     Display 'The new time is ', hours, '.', mins, format    ELSE     format = 'am'  IF (time/100 = 00 )     hours = (time/100) + 12     mins = time%100     Display 'The time is ', hours, '.', mins, format   ELSE      hours = time/100     mins = time%100     Display ' 'The time is ', hours, '.', mins, format   ENDIF   ENDIF  ENDIF  ENDO


Asus P8H67-V AHCI Driver issues when installing Windows

I'm trying to install Windows as a dual-boot on an Asus P8H67-V (Socket 1155) PC running Elementary OS (Debian).  Here's my configuration:   Intel Core I5-2500K Samsung 840 Pro SSD   This previously had Windows 7 x64 installed. I've cleaned it; now I'm trying to install Windows on it from scratch.  Samsung 850 Evo SSD   This is where I have Elementary OS installed.  Multiple WD Red (≥ 2 TB) 2 × Zotac GeForce GTX 660 BIOS set to AHCI for boot   I consider switching back to IDE in BIOS not to be an option.    I'm trying to install Windows by booting from the following devices:   External DVD/BR Drive using a verified Win7_x64 Disc (this has worked on other machines) Samsung USB Stick (128 GB, 8 GB Partition for Win10_x64)   I get this error message:  Load Driver  A required CD/DVD drive device driver is missing. If you have a driver floppy disk, CD, DVD, or USB flash drive, please insert it now.  Note: If the Windows installation media is in the CD/DVD drive, you can safely remove it for this step   This message appeared for Windows 10 and Windows 7.  The installers boot like a charm, as does Elementary OS.  I have tried:   Using both a USB 3 port and a USB 2 port. No success over here. Somehow I was able to boot both devices in IDE Mode – still it wouldn't let me install... Same message. Assuming that it has something to do with AHCI instead of IDE in SATA Mode inside BIOS Configuration, I downloaded AHCI Drivers from Intel (chipset manufacturer) and ASUS (motherboard manufacturer) but none of them worked. The drivers were shown as applicable for the hardware (Windows 10 Setup), but I was still not able to continue the setup process.   Question:   Is there a possibility to determine which exact driver is missing? The error message is not what I would call conclusive as it does not really state more than "It's not working, I don't know why." Is there something I missed? Any other drivers to try? Any preparation for the Samsung 840 needed I missed?


Term for a word used to pad a sentence while the speaker thinks of what to say next

Is there a word for a term employed to play for time and allow the speaker a little longer to work out what he/she wants to say next?  Words like um and er fall into this category, of course, but so (sometimes) do terms like actually, obviously, you know, like...  I wondered about filler word, but that would cover other reasons for using such a term. It's more about the grammatical relation to the rest of the sentence (none at all) rather than the purpose for which the speaker is using it.


How do I parse command line arguments in Java?

What is a good way of parsing command line arguments in Java?


I am animating a plane which has to wrap around a cylinder. How can I approch this animation? The idea is the plane to be tape, which you put one end first then wrap the other around a cylinder.    I tried doing a shape key, however I cannot manage to make it good. I am thinking of doing armature, however I will do the vertex painting and bones.


Let $a \in F - F^{p}$. Show that $x^{p} - a$ is irreducible over $F$.

Let $F$ be a field of characteristic $p>0$, and let $a \in F - F^{p}$. Show that $x^{p} - a$ is irreducible over $F$.   I didn't get a good idea to solve that question. But I'm not looking for an answer, I would just like a hint. Thanks for the advance.


How can this sentence be corrected to be more concise and grammatically correct?

Is the following sentence grammatically incorrect because the word "they" is plural when there is only one teacher? How can it be corrected?     Thomas may be afraid to speak to the teacher as he feels they hold   prejudice against him.   Alternatives I concidered are     Thomas may be afraid to speak to the teacher as he feels he hold   prejudice against him.   and     Thomas may be afraid to speak to the teacher as he feels the teacher hold   prejudice against him.   but these seem even more awkward.


I believe when a singleton object gets serialized and is then deserialized upon a plethora of times in series, there are multiple instances of singletons created.   How can you avoid such a situation?


How can I know how far the in focus area extends

I know when for example camera is on f2.8 it means an area in front and back of the place that focus is, will be in focus and areas closer or farther will be out of focus, but if it is for example f22.0 then that area in focus will be much larger. What I can't understand is that is there a mathematical way of calculating how many meters is in focus depending on f number and the lens ( for example 35mm, 24mm, etc) ?  For example last night I was about one meter away from a dancer who was also one meter away from the trumpet player and on a f2.8 24-70mm lens I wanted to be able to set it in a way that the dancer is in focus and the trumpet player behind her is in bokeh. How should I have approached this?


Compute $\lim_{n \to \infty} \int_0^{\frac{\pi}{2}} \sum_{k=1}^n (\sin{x})^kdx$

Compute $$\displaystyle \lim_{n \to \infty} \int_0^{\frac{\pi}{2}} \sum_{k=1}^n (\sin{x})^kdx.$$   I tried writing $\displaystyle \lim_{n \to \infty} \int_0^{\frac{\pi}{2}} \sum_{k=1}^n (\sin{x})^kdx = \lim_{n \to \infty} \int_0^{\frac{\pi}{2}} \frac{1-(\sin{x})^{n+1}}{1-\sin{x}}dx$, but I don't know how to continue form here.  I know that the limit diverges to $\infty$, but I don't know how to prove it.


Chebyshev polynomials increase more quickly than any other polynomial outside $[-1,1]$

In Appendix C3 of Shewchuk's , it is stated without proof that     Chebyshev polynomials... increase in magnitude more quickly outside the range $[-1,1]$ than any other polynomial that is restricted to have magnitude no greater than one inside the range $[-1,1]$.   Here, we mean Chebyshev polynomials of the first kind, $T_n(x)=\cos(n \cos^{-1} x)$ for $x \in [-1,1]$.   I have not been able to find a proof of this fact anywhere, and don't even know what I would search for in the first place.  I have tried proving it myself, supposing that some polynomial attains a larger magnitude and attempting to arrive at a contradiction by showing, for example, that such a polynomial has too many zeros.    How might I begin to prove something like this / where can I find more information?


I'm making some queries to get data from db but I need to group it and reorder it to return it to a view.  I've read about grouping by multiple indexes but the problem is how to reorder to get the desire result  This is the query:  var q = query.Where(a => ((a.Date >= From) && (a.Date <= Until)) || ((a.Date>= LastMonthFrom) && (a.Date <= LastMonthUntil)));   this return a data like this:  id | Names   | Total | Date 0  | Manoel  | 24    | 04-2019 1  | Anthony | 25    | 04-2019 0  | Manoel  | 15    | 04-2019 1  | Anthony | 03    | 04-2019 0  | Manoel  | 10    | 03-2019 1  | Anthony | 10    | 03-2019 0  | Manoel  | 85    | 03-2019 1  | Anthony | 30    | 03-2019   now if I apply a group by like this one:  var x = q.GroupBy(a => new { a.id, a.Date}).Select(w => new MyModel { Names = w.FirstOrDefault().Names, Total = w.Sum(_ => _.Total), Months = w.Key.Date }).ToList();   this indeed return the list grouped by ids and months (date) but it return it like this:  id | Names   | Total | Date 0  | Manoel  | 39    | 04-2019 1  | Anthony | 28    | 04-2019 0  | Manoel  | 95    | 03-2019 1  | Anthony | 40    | 03-2019   my question is how can I reorder the columns or indexex to return it this way:  id | Names   | 04-2019 | 03-2019 0  | Manoel  | 39      | 95 1  | Anthony | 28      | 40


How to parse an object from java to jsf, and reverse?

I have Course class which have a String name, and a Profesor profesor. I want to create a new Coure: <!DOCTYPE html> <html lang="en"   xmlns="http://www.w3.org/1999/xhtml"   xmlns:h="http://java.sun.com/jsf/html"   xmlns:f="http://java.sun.com/jsf/core"   xmlns:p="http://primefaces.org/ui">      <f:metadata>     <f:event listener="#{collectionProfesor.loadProfesors()}" type="preRenderView"></f:event>   </f:metadata>     <h:head>     <title> Create Course </title>     <h3> Create Course </h3> </h:head>         <h:body>     <h:form>             <h:panelGrid columns="3" >             <h:outputLabel> Name</h:outputLabel>             <h:inputText id="nameCourse" value="#{course.name}" required="true" requiredMessage="Mandatory field." />             <h:message for="nameCourse" styleClass=""/>                          <h:outputLabel >Profesor </h:outputLabel>             <h:selectOneMenu  value="#{course.profesor}" layout="grid" columns="2">                  <f:selectItems  var="profesorAux" value="#{collectionProfesor.profesors}" />             </h:selectOneMenu>                                      <h:outputLabel/>                     <h:commandButton value="Submit" action="#{collectionCourse.addCourse(course)}" />            </h:panelGrid>     </h:form>           <h:outputLink value="Course.xhtml">Back to Course List</h:outputLink>    </h:body>          In CollectionProfesor, I have a List with professor, and that list is populate with this method collectionProfesor.loadProfesors(); h:selectOneMenu  value="#{course.profesor}" layout="grid" columns="2" --- Here, I want to make course.setProfesor() f:selectItems  var="profesorAux" value="#{collectionProfesor.profesors}" ---collectionProfesor.profesors return the list with profesors which is created here ---f:event listener="#{collectionProfesor.loadProfesors()}" type="preRenderView" h:commandButton value="Submit" action="#{collectionCourse.addCourse(course)}" --collecionCourse class has a list of coursses. The addCourse(Course course), add the course to the list But I receive an error (null pointer exception).The page is render, and all the professor appear, but when I click submit I have an error. Can you help me?


I am a php developer. I've been developing projects on a Windows system. Now I have completely switched to Ubuntu. I've installed XAMPP on my Ubuntu 16.04. I am not able to save my web files on htdocs as I used to save them in Windows before. My current default directory is opt/lampp/htdocs/. Is there a different way to handle the projects on a Linux system?


If dx is a variable, then how can we divide by it since we know it can be zero.

I thought I knew that we use differentials just because they made calculus intuitive and there was math rigor behind all of these. But when I saw   this problem came out.  For example, deriving implicitly: $$ x^2+y^2 = 5  $$ we get $$ 2x\mathrm{d}x +2y\mathrm{d}y = 0 $$ $$ 2xdx+2y\frac{dy}{dx}dx=0 $$ and then to find the slope of the graph we solve for dy/dx $$ \frac{dy}{dx}=-\frac{x}{y} $$  Does't that imply that $dx \neq 0$ ?  And how would it be in the general case whe differentiating implicitly


Changing the appearance of equation numbers with amsmath

For equations in my document, I use the facilities of the  package. In order to make the equation numbers  more eye-catching, I want them to be in boldface and a little bit indented to the right, i.e. like this:    I've already tried redefining the internal amsmath macros \maketag@@@ or \tagform@. But both  \def\maketag@@@#1{\hbox{\m@th\bfseries#1\hspace{3mm}}}   and  \def\tagform@#1{\maketag@@@{\bfseries(\ignorespaces#1\unskip\@@italiccorr)}\hspace{3mm}}   also change the references produced by \eqref, as this macro internally uses \tagform@ to produce its output. These references should keep their default appearance, however, as I don't need the prominent formatting in the running text.  The most promising approach I've tried so far is to redefine \print@eqnum:  \def\mytagform#1{\maketag@@@{\bfseries(\ignorespaces#1\unskip\@@italiccorr)}\hspace{3mm}} \def\print@eqnum{\mytagform\theequation}   This redefinition doesn't affect the \eqref references. Sadly though, it seems to work only with align environments, the tags of equation environments aren't changed:  \documentclass{article} \usepackage{amsmath} \makeatletter % \maketag@@@ and \tagform@ also influence \eqref % \def\maketag@@@#1{\hbox{\m@th\bfseries#1\hspace{3mm}}} % \def\tagform@#1{\maketag@@@{\bfseries(\ignorespaces#1\unskip\@@italiccorr)}\hspace{3mm}}  % \print@eqnum looks promising, but applies only to align environments \def\mytagform#1{\maketag@@@{\bfseries(\ignorespaces#1\unskip\@@italiccorr)}\hspace{3mm}} \def\print@eqnum{\mytagform\theequation} \makeatother \begin{document} \begin{equation}     1+1=2\label{equation} \end{equation} \begin{align}     1+1 &= 2\label{align} \end{align} \eqref{equation}, \eqref{align} \end{document}   outputs   How can I change the appearance of equation numbers without affecting references produced by \eqref?


I thought a sudo will work, but it says command not found:  sudo: ./eTax_ticinoPG13_inst_Linux.sh: command not found nuc@nuc:~/Downloads$ ./eTax_ticinoPG13_inst_Linux.sh bash: ./eTax_ticinoPG13_inst_Linux.sh: Keine Berechtigung nuc@nuc:~/Downloads$ sudo ./eTax_ticinoPG13_inst_Linux.sh sudo: ./eTax_ticinoPG13_inst_Linux.sh: command not found   Can anyone help me?


Jon Arryn & Bran Stark assassination motives

Why Littlefinger bothered to kill Jon Arryn and assassinate Bran Stark?  Jon Arryn have already known too much about Lannisters' incest, so I would expect that he will be killed by Lannisters or someone else for sure.  Also why bother to kill Bran Stark and frame Lannisters when Lannisters would already have motive to kill Bran Stark and silence him for good? Wasn't Littlefinger's plot wasted to do it all by himself when it could be resolved in a way he wanted without his involvement anyway?


Shouldn’t “would dare mess with me” be “would dare TO mess with me”?

It is a dialogue from a famous movie "Home alone" it is something like below:  The way I'm feeling right now no murderer or mugger would dare mess with me.  And now I am wondering, why it is not "no mugger or murderer would dare to mess with me" can anyone tell what's the difference?


i am unable to resolve an error  from pandas import DataFrame ImportError: cannot import name 'DataFrame' from 'pandas' (E:\Python37-32\lib\site-packages\pandas__init__.py)  i even tried uninstalling and then reinstalling pandas


Proving a summation inequality with induction

The exact question:  Prove:  $\displaystyle\sum_{k=1}^n \frac{1}{\sqrt{k}}\gt2(\sqrt{n+1}-1)$  I have looked at similar problems but still don't understand how to prove this inequality by induction. So far I have this:  Induction basis:  Let n=1  $\displaystyle\sum_{k=1}^n \frac{1}{\sqrt{k}} = \frac{1}{\sqrt{1}} = 1 > 2(\sqrt{1+1}-1) = ~.828$  $1>.828$  So it proves the inequality true when n=1.   Now i really don't know how to continue even with all the examples i have browsed through. One of them i came across showed that the induction hypothesis should let P(n) equal the equation above and do something with P(n+1). I am not looking for the answer I just need help on how to continue with the problem. What other steps are necessary for me to complete this proof by induction.


why do we use normalization coefficient in the central limit theorem?   For CLT we use $\sqrt{n}$ as the normalization factor, but why do we need it?


Dimensioning of a technical drawing in TikZ

Is there is an easy way to mark dimensions in a technical drawing with TikZ?    Is there a library or something?  Edit  I am using XeLaTeX.  Update  I chose Martin's answer because it serves me well for the moment. Ultimately the best solution would be a library that, in an easy and consistent manner, would allow to change the arrow/dimension lines styles, would support polar coordinates, would allow to choose 2 nodes and the vertical distance that you want the dimension to be typeseted etc.


What's a recommended set of warnings as errors that won't get in the way when writing new code?

For example I have '-Werror=return-type' because I'll get weird bugs if I accidentally forget to return a value in my function. I don't know why it isn't an error in C++. I also have missing-variable-declarations to avoid bugs. However I don't want unused-variable/label as errors on debug builds because I'll have a few of them before I finish writing the code. (That error is on in release build). Recently I added macro-redefined which inspired this question because there's a lot more I should add. Which warning as errors do you guys recommend in debug builds?


I applied for a UK visa in February and April 2017 to travel with my sister. However my application was initially refused, stating I might become an illegal immigrant. Once I sent further documents to prove that I will not, they rejected saying I do not have enough money. Again I sent proof that I am being sponsored by my sister and that all expenses on this trip are paid. They rejected that my source of money is not clear. I couldn't go with my sister.  Presently I have been offered a seat in a Master's course in New Zealand and I need to apply for a visa. I however do not have all copies of previous refusals. I do have my visa application numbers.  My question is, how can I get a copy of the visa refusal letter at the earliest?  Can someone please help?


Is there an online directory listing upcoming scientific conferences?

I am looking at organizing a small conference next summer and I would like by all means to avoid concurrent dates with any major or highly-overlapping conference on the same or related topics. I thought that it would be really useful if there was an online directory where I can check a calendar of upcoming scientific conferences and workshops (maybe sorted by field) and plan mine on a week in which it does not coincide with an already planned event. That way I would not be "competing" for speakers and attendants against the organizer of a different event. I would prefer to avoid "manually" browsing the internet to find this information out, so a centralized online service would be perfect for my needs.  Does such an online resource exist? If the answer depends on the discipline, I am mostly interested in physics, chemistry and materials science conferences and workshops.


I have a list of lists and need to extract each item; to ultimately write their Cartesian product.   from itertools import product  b = {} a = [[1, 2], [3, 4], ['a', 'b']]  for i, v in enumerate(a):   b[i] = v  #These don't work because we are feeding a single list to product print list(product(x for x in a)) # [([1, 2],), ([3, 4],), (['a', 'b'],)] print list(product(b.values())) # [([1, 2],), ([3, 4],), (['a', 'b'],)]   The product works correctly if I am able to get this :   print list(product([1, 2], [3, 4], ['a', 'b'])) [(1, 3, 'a'), (1, 3, 'b'), (1, 4, 'a'), (1, 4, 'b'), (2, 3, 'a'), (2, 3, 'b'), (2, 4, 'a'), (2, 4, 'b')]


How does bash accept argument during a callup

Suppose I have a bash script called foo.sh  #!/bin/bash echo "Type your name" read personname if["$personname" == "kevin"]; then     echo "Your name is kevin"     exit 1 fi   Now, I give it global access as cp foo.sh /usr/bin/foo   So, I find it difficult now to call the script and pass the argument at the same time.  I can only do  bash foo john   instead of doing   bash foo john


Block Facebook newsfeed on OS level (for any browser) without blocking social login buttons

I'm looking for a way to block Facebook newsfeed browsing (in any browser, so browser proxy settings are not an option here), but still give user ability to use social login buttons/API. I've tried modifying hosts file, but this blocks the entire domain and I cannot specify any specify URL path that must continue working.  Would appreciate ideas for both: Windows and OSx machines.


How to draw Object selection with eyedropper layout using Python script

I wanted to draw this Object selector layout using Python Script and Retrive the Selected Object Also Apply the Modifier to Selected Object    I have Tried this from the another question asking for same thing but that is not working  import bpy    class Test_PT_layout_panel(bpy.types.Panel):     bl_label = "Prop Panels"     bl_category = "Test Panel"     bl_space_type = 'PROPERTIES'     bl_region_type = 'WINDOW'     bl_context = "output"      def draw(self, context):         layout = self.layout         string_property = PointerProperty(type=bpy.types.Object)         col = layout.column()         col.prop(scene, "string_property", context.scene, "objects")   def register():     bpy.utils.register_class(Test_PT_layout_panel)   def unregister():     bpy.utils.unregister_class(Tests_PT_layout_panel)      if __name__ == "__main__":     register()


How to scale dimensions proportionally to a specific size?

I modeled a man and would like to scale him down to be exactly 6' tall (Z dimension), however I cannot find a way to do that. I know I can go to front ortho view and and use the normal scale S  key to scale it, however that requires some pretty specific fine tuning in order to get it to the right dimensions.  I'd like to be able to essentially type "6" into the Z dimension (don't worry I have it setup in imperial) and have it scale the X and Y dimensions proportionally.


If I sell my house, will I have to pay taxes on the profit?

I am in the United States, in Colorado.  I purchased a house in July of 2013.  It was in poor condition, so I spent the first two months repairing things before moving in.  Now, 11 months after moving in, I'm ready for a change.  Here's the plan.  I'm wondering what the tax implications will be?  Current house:   Purchased July, 2013 Purchase price: $72,000 Down payment / closing costs: $20,000 Materials and permits for repairs: $20,000 Sell in September, 2014 for $150,000, taking away ~$75,000 in cash.   Basically, I'll make $35,000 on the current house after all expenses.  How much do I need to put toward my next house to avoid taxes?  I have my eyes on a house for $130,000.  Ideally, I'd put $50,000 down, use $10,000 toward repairs/upgrades, and use the remaining $15,000 to pay off debt.


How to send email from a custom domain when using Messaging.SingleEmailMessage

I am sending email by creating a Messaging.SingleEmailMessage object and then using Messaging.send().  The emails are being sent out successfully, but the from address is a very long url with a big id followed by .salesforce.com, which doesn't look great.  Is there any way to set the from address to be my company's custom domain?  Thanks


Left padding an integer with zero (Java)

I have checked and apparently you can't left-pad zero onto an integer. Converting to string and back to integer doesn't work either. Although, what I am trying to do is use the integer for a FOR loop and then send into a JPQL query, using concatenation, which needs the date format to be in XML Gregorian Calendar(YYYY-MM-DD HH:MM:SS).   One way to solve my problem would be to use formatter before sending it into a JPQL query. What I mean to ask is : Is there a better way to do this, in my case?   Here is the relevant piece of code:  for (int month = startMonth; month <= endMonth; month++) {                      inputDates = "SELECT COUNT(d) FROM Datafile d WHERE d.datafileCreateTime BETWEEN {ts  2013-" +month+ "-01 00:00:00}  AND {ts 2013-" +month+ "-02 23:59:59}";                     ...


What concept does a natural transformation between two functors between two monoids viewed as categories correspond to?

Let $\mathcal{M}$ be the monoid $M$ viewed as a category (single object, arrows are elements of $M$) and similarly for $\mathcal{N}$ and N.  Let $F : M \to N$, and $G : M \to N$ be two monoid homomorphisms which are also functors from $\mathcal{M} \to \mathcal{N}$.  Then a natural transformation from $F \implies G$ is an element $\psi_N \in N$ such that $\psi_N \cdot F(a) = G(a) \cdot \psi_N, \ \forall a \in M$ where $\cdot$ is the monoid law of $N$.  Then what monoid-theoretic concept does this natural transformation correspond to?  I've never seen it before.


Why is this sentence correct? “She suggested that he go to the cinema.”

Why is this sentence correct?     She suggested that he go to the cinema.   I would definitely use goes instead of go.


When should one place an % at the end of a line to prevent the insertion of unwanted space

I understand that a % character at the end of a line prevents the insertion of a space in the text. However when creating macros I am unclear when you should place a percent sign at the end of a line, i.e. which are the `safe' macros that do not require a percent sign when they appear at the end of a line?  Is it better to always put a percent sign in macro code, unless you explicitly want a space?  E.g. \small & \selectfont do not seem to insert any unwanted space, but commands like \hspace & \rule do insert unwanted space (at least to my knowledge).


Limiting date range for depature date based on arrival date value

I have two date pickers (arrival date and depart date) the user selects an arrival date and then, when the user selects a depart date it must disable (or grey out) all previous dates from which the arrival date has been chosen, i.e if arrival date is 4th July 2013, user can only select a depart date from 4th July 2013 and onwards.  I have used the following code to no success:  <script> jQuery(function($){ $( "#input_2_5" ).datepicker({   onClose: function( selectedDate ) {     $( "#input_2_6" ).datepicker( "option", "minDate", selectedDate );   } }); $( "#input_2_6" ).datepicker({    onClose: function( selectedDate ) {     $( "#input_2_5" ).datepicker( "option", "maxDate", selectedDate );    } }); </script>


I'm in trouble here  I have been writing important word documents and saving them on my flash drive  Some one deleated them all in another pc, I need help getting them back  I tried recovering word temporary files, couldn't find them Please


Finding speed of mass m attached with two inextensible strings

Question:In the arrangement shown in figure,the ends P and Q of an inextensible string move downwards with uniform speed u. Pulleys A and B are fixed. The mass M moves upwards with a speed- Actual solution: Let the speed of mass M be v.The length of the string will remain constant. So by constraint relationship, we can say that the velocities increasing the length of the string (u)= velocities decreasing the length of string.( Component of v on any one of left or right string= v cosθ) Therefore, v cosθ= u and hence v= u/cosθ My approach:: I did just the reverse of this. I took components of u along the y-axis to get the speed of mass m. Here is the reason why: The velocity of the mass M should be the vector-summation of the velocities of the string attached to block A and the string attached to block B.After all, these strings are the cause behind the motion of the mass M and thus, their "influence" must be added in order to obtain the behavior of mass M. As the motion of mass m is vertically upwards, their components must cancel along the X-axis and should add up on the Y-axis. Component of left string on Y-axis= u cosθ and component on Y-axis=u cosθ. So net resultant and the speed of mass m=2u cosθ. Where am I wrong as the answer is not 2u cosθ?


Manually verify SSL Self Signed certificate signature - javascript

I'm trying to manually verify self signed certificate but the process is not clear. I created a self signed certificate server.cert using a ca.crt file which I also created.  I provided the server.key + server.crt to my SSL server.  now, how the client suppose to verify the server.cert (assuming the server send it server.cert)?  As I understand, when creating a server.crt, the ca supposed to encrypt the Hash(server.cert) using the ca's private-key and this whole thing (including the signature) is the server certificate. so how would I validate the certificate. I suppose I somehow need to be using the ca.cert in my client side? because the ca.cert also contains the ca.public key, but what do I need to do to the server.crt to be able to say that the signature is correct?


I am looking for a CV template to reproduce (more or less) the following style:


- is not different from  in virtual console

I rarely use virtual consoles. Thus I just noticed that some of my bash key bindings do not work there. The reason is probably that the key codes (what is shown after pressing Ctrl-V) for Ctrl-→ and → are the same i.e. the Ctrl seems not to be recognized with the arrow keys. The regular Ctrl combinations (C, Z, Y...) do work.  What is the reason for this behaviour? How can that be changed?


qgis 2.10.1. mac - geotiff singleband pseudocolor

i've installed mac version from kyngchaos including all required packages ... ... and just noticed the following:  while windows version behaves like expected when trying to render an ordinary tif via "singleband pseudocolor" (see the image)   the same procedure on the current mac-release returns:   interesting detail: pressing "apply" in mac version doesnt change anything and if you press "OK" and re-open layer properties the "render type"-setting has  swiched back to "singleband grey".  even more interesting: "singleband grey" is faulty too: none of the options "color gradient", "min", "max", "contrast enhancement" does affect the way the tif is displayed,  neither do the "load min/max values" settings !  anyone any ideas?


If a sequence converges, prove a sequence of partial sum also converges.

If the sequence $\{a_{n}\}$ of real numbers converges to $a \in \mathbb{R}$, prove that the sequence $\{b_{n}\}$ where $b_{n} = \frac{1}{n} \sum_{k=1}^{n} a_{k}$ also converges to $a$. Prove also that the converse is not necessarily true.  I know that since $\{a_{n}\}$ converges, it is a Cauchy sequence. But I am not sure if this is helpful in proving that $\{b_{n}\}$ also converges to the same point.


Error while reading Edit Text content on Button click and displaying in a TextView

I am implementing a fragment in a navigation drawer menu. I want to read the content of the edit text on clicking a button and display the read content in a text view. But, I am getting the following error: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View    Fragment class:   public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {      editText = (EditText) getView().findViewById(R.id.id_editText);     button = (Button) getView().findViewById(R.id.id_button);     textView = (TextView) getView().findViewById(R.id.id_textView);     button.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             String Name = editText.getText().toString();             textView.setText(Name);         }     });      return inflater.inflate(R.layout.fragment_chat, container, false);  }   Fragment xml  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#566D7E" tools:context="com.example.jr.mybluetoothchat.ChatFragment">   <EditText     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:inputType="textPersonName"     android:text="Enter Text"     android:ems="10"     android:layout_alignParentTop="true"     android:layout_centerHorizontal="true"     android:layout_marginTop="90dp"     android:id="@+id/id_editText" />  <Button     android:text="Click"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_below="@+id/id_editText"     android:layout_centerHorizontal="true"     android:layout_marginTop="43dp"     android:id="@+id/id_button" />  <TextView     android:text="Entered Text"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_below="@+id/id_button"     android:layout_alignStart="@+id/id_editText"     android:layout_marginStart="43dp"     android:layout_marginTop="91dp"     android:id="@+id/id_textView" />     Content Main xml      <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/id_content_main"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="#BCC6CC"     android:paddingBottom="@dimen/activity_vertical_margin"     android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_margin"     app:layout_behavior="@string/appbar_scrolling_view_behavior"     tools:context="com.example.jr.mybluetoothchat.MainActivity"     tools:showIn="@layout/app_bar_main">   </RelativeLayout>   Main Activity  public boolean onNavigationItemSelected(MenuItem item) {         // Handle navigation view item clicks here.         int id = item.getItemId();          if (id == R.id.nav_home)         {             Toast.makeText(this,"Home",Toast.LENGTH_SHORT).show();         } else if (id == R.id.nav_chat)         {             Toast.makeText(this,"Chat",Toast.LENGTH_SHORT).show();             FragmentManager fragmentManager = getSupportFragmentManager();             FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();             ChatFragment chatFragment = new ChatFragment();             fragmentTransaction.replace(R.id.id_content_main,chatFragment);             fragmentTransaction.commit();         } else if (id == R.id.nav_invite)         {             Toast.makeText(this,"Invite",Toast.LENGTH_SHORT).show();         }          DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);         drawer.closeDrawer(GravityCompat.START);         return true;     }


Is $R/N(R)$ a faithfully flat $R$-module?

I'm studying recently faithfully flat modules and I'd like to know the following:      Is $R/N$ faithfully flat as $R$-module, where $R$ is a commutative ring with unit and $N$ is the ideal of nilpotent elements of $R$?


Microphone - static background noise suppression

My soundcard is Realtek ALC 892. On Windows 7 I use official Realtek drivers, on Linux I use PulseAudio (on Ubuntu 13.10). On both Windows and Linux, when I enable microphone boost +30db (required because my microphone is quiet), I get very annoying and loud background noise (I also confirmed the background noise with Audacity on both systems).  However, Windows Realtek drivers have noise suppression option which works (after enabling it, Audacity shows no background noise and my ears also confirm that there is no background noise).    My question is how can I enable background noise suppression in ALSA/PulseAudio? Is there any module I can install or maybe there is a setting for it that can be enabled in config file?  I can't find solution for it and this is the only thing that prevents me from switching to Linux completely - as I talk using microphone a lot and on Windows the Realtek software removes the background noise completely and PulseAudio doesn't remove it, which means the recorded voice on Linux is very bad.  I know I could buy better soundcard and microphone, but as I said, Windows Realtek drivers remove the noise on software level in real time (ie no noise when talking on TeamSpeak3/Steam/whatever voip programme) so I hope that there is such option on Linux as well.


Why is the compiler showing warning of following if condition to be always true?

#include<stdio.h> int main() {     int a=2;  if(a==3,4)   printf("hello"); return 0; }   Warning: Condition is always true  Why is it always true??


Automatically show connected mass storage devices on Windows desktop

Is there way to automatically display connected mass storage devices on the Windows desktop, like most Unix-based operating systems are doing?  I didn't find any native ways to do that, but maybe there are some third-party tools to add that feature.


Intuition behind the definition of Measurable Sets

I started studying "Measure Theory and Integration" and went through the first section which talks about Lebesgue Outer Measure of a set. All was well until I started with the second section which starts with the definition of Measurable sets :  ** The set $E$ is Lebesgue Measurable if for each set $A$ we have**  $m^*(A)=m^*(A\bigcap E)+m^*(A\bigcap E^c)$  I know the $\leq$ inequality comes from subadditivity.  So it all boils down to showing the $\geq$ inequality.  Though I read the definition and am able to solve questions on the topic. I don't quite understand it intuitively. Any help would be appreciated.  Also give me an example where $\geq$ inequality is not satisfied.   Thank you.


Given $X_n$ is a random variable that equals the number of tails minus the number of heads when n fair coins are flipped, what is the Variance of $X_n$ ? I tried to solve it


Deal with negative predicted values in a linear model

I have a mixed effect model to model crop yield as a function of rainfall and temperature:   mdl <- lmer(yield ~ rainfall + I(rainfall^2) + I(temperature^2) +        (1|location) + (1|year))   I look at the predicted values and the some values of predicted yield are negative. Now realistically, yield can never be negative. So what do I do:  (1) make all the predicted negative values of yield equal to 0. Does this makes sense?  OR  (2) log the observed yield value.    mdl <- lmer(log(yield) ~ rainfall + I(rainfall^2) + I(temperature^2) +         (1|location) + (1|year))   Backtransforming the logged predicted yield value will always be positive and hence my predicted yield will never be zero. However, taking the log of yield makes my residuals more skewed and violate the normality assumption.   Any advise?  I can provide data and plots if needed.


Why is ‘i’ in milk pronounced differently from ‘i’ in find?

As far as I know, in words of the structure CVCC, the vowel is usually short. Examples include milk, front, clamp, wasp, sport, etc.  However, with some CC types, the vowel seems to always be long (kind, mind, old, climb), which surprises me. Why is there such a difference?


We know the escape velocity from the Earth is 11.2km/s. Isn't it the velocity required to escape from earth if we go normal to the surface of earth? i.e while we derive the formula for the escape velocity from earth we never consider the slanted motion of the object. So when we launch a rocket we need to use very less value of velocity compare to escape velocity to escape from earth because rocket follows a slanted path so curvature of earth has an effect?  If what I said above is right, then how we can say escape velocity is 11.2 km/s?


Server recommendations for application API

I currently have an application (API) hosted on a small server 1 GB RAM, 1 vCPU (Digital Ocean), the application read/writes to a MYSQL database which is also hosted on the same server.  I expect that the server will receive a huge POST requests soon, nearly 50K request per hour.   So the questions are, What do is your recommendation on upgrading the server?   Should I use a dedicated server for database? Should I use NGINX or Apache?, Is there custom settings needs to be done on the web server?; ex max concurrent connections, connection pool ..etc  Thank you


what is going wrong when I compare to equal elements of String

The answer should be good but it always gives output bad, I have tried everything Here is the code : import java.util.*; public class stringuses {     public static void main(String[] args)     {     Scanner sc=new Scanner(System.in);     String str=new String("i am ayush");     System.out.println("Who am i ?");      String ans=sc.nextLine();     if(str==ans)     {         System.out.println("good");     }     else     {         System.out.println("bad");     }        }  }


I've accidentally staged a lot of changes including new files that I do not want to commit.  How can I unstage or reset only the new files?  I am not looking for a script of any kind; I am looking for core git functionality to be exposed and documented here on SO under a meaningful topic title.


Why can't I give myself a nickname?    I have already tried about 50 names. I have tried many American names and some nonsense names.  Any suggestions?


When $f$ and $g$ are invertible functions we have  $$(g\circ f)^{-1}=f^{-1}\circ g^{-1}$$  I think we have this in every Group $(A,*,u,')$  $(a*b)=c$   $(a*b)*b'=a=c*b'$  $c'*a=c'*(c*b')=b'$   $(c'*a)*a'=b'*a'$      $$c'=(a*b)'=b'*a'$$   and in general we have   $(a_1*a_2*...*a_n)'=a_n'*...*a_2'*a_1'$  1)What is the specific name of this theorem?   2)There is something wrong with my derivation?  EDIT Can we see this as a property of a function $f:A\rightarrow A$ on a structure $(A,\circ)$:  $f(x\circ y)=f(y)\circ f(x)$  ?


What happens to grub if I repair or reinstall an already-installed Windows 10 installation?

So I recently installed Ubuntu 18.04 alongside my existing installation of Win 10. Ubuntu is working great, but something in Windows mysteriously broke and Windows is running like utter dogshit for no apparent reason. I’m thinking a repair or reinstall might fix this.   However, there’s one small problem. I have read before that Ubuntu, by default, puts grub on the Win efi partition or something to that effect. I don’t know much about that, but I expect if I reinstall Windows my grub will be wiped out, and a repair may or may not do the same.  So I guess my real questions are as follows: What happens to my grub if I “repair” a Win10 Home 1809 installation? What happens to it if I reinstall Windows? Finally, how do I avoid having to reinstall grub?  Hoping one of you beautiful people knows what I should do here, because I sure don’t.


How to make the command line / terminal mirror the GUI?

When using the GUI and making actions I think that users would like to see how those actions are being reflected in the terminal using command lines.   I can imagine that there are different layers of commands/processes that could be reflected which are endless but lets keep it simple and in direct relation to the end user GUI experience.  Examples:    opening an applications such libreoffice or web browser... browsing home folders and copy, cut, paste... Network manager changes such as wireless up, down and wired up, down... and so on...   This would satisfy curiosity and also help as a teaching/learning tool for those curious about the command line. Do others see this need? Does this already exist and if not would this be feasible for an end user teaching experience?


Choose the index for default sort in MySQL

I have a table in MySQL with 3 columns a, b, c. Each has an index but none is primary key. When I run query SELECT * FROM table LIMIT 50;   I am trying to have the result sorted by column b ascending, however the result is sorted by column a ascending instead. I cannot make column b primary key because there are some duplicate values in column b. How do I do this without making column b primary key?


I have a table that is very wide. Now I want to force it into one landscape page. I already set the page orientation to landscape but now I don't know how to force it into one page with scaling. Any hints?


The inverse image of dense set is dense and of a comeager set is comeager?.

Let $X,Y$ be topological and $f:X \to Y$ be open and continuos.  I am studying Baire space and I would like to try the following facts :      $(i)$ The inverse image of dense set is dense.       $(ii)$ The inverse image of comeager set is comeager.   I am studying Baire space and I would like to try the following facts  Can we collaborate to verify the above claims?    Thanks.


Upgrading Drive on Notebook with bitlocker installed?

Currently have a Windows 7 Ultimate on my Notebook with Bitlocker encrypting the drive. I just have a normal 160GB hard drive now. Just ordered a SSD to replace it. Should i just suspend bitlocker before i upgrade my drive (remember had to do this when i upgraded the bios) or should I totally remove drive encryption before i start?


As far as I can recall the old style of progress indicator for privilege in the profile page was more bold than now:        Now the line is too thin. Looks like a design oversight.


Definite integral with trigonometric functions

I have problem finding, how to solve this integral $$ \int _0 ^{\frac{\pi}{4}} \frac{3 \sin x + 2 \cos x}{2 \sin x + 3 \cos x}dx $$  This I can rewrite as  $$ \int _0 ^{\frac{\pi}{4}} \frac{12 \sin ^2 x - 5 \cos x \sin x - 6}{4-13 \cos ^2 x}dx = $$ $$ = \int _0 ^{\frac{\pi}{4}} \frac{12 \sin ^2 x}{4-13 \cos ^2 x}dx - \int _0 ^{\frac{\pi}{4}} \frac{5 \cos x \sin x}{4-13 \cos ^2 x}dx - \int _0 ^{\frac{\pi}{4}} \frac{6}{4-13 \cos ^2 x}dx $$ But from this point, I can't get any closer to the answer. Can you, please, help me?


1.13 - Checking if player holds item with specific name

Let's say that I want to teleport a player who doesn't hold a name tag called "abc" to X Y Z.  All I could come up with was [/data get entity @p SelectedItem.tag.display.Name] and I'm stuck here because I don't know how to compare such data (that is, if it's possible).


Ubuntu 15.10 was released yesterday. What's the proper way to upgrade from Ubuntu 14.04?