Can life subsist on anything else but water?

Inspired by an   It's hypothesized that extraterrestrial life could be based on silicon rather than carbon as its main structural element.  Are there similar theories about an alternative "life solvent" rather than water?


I've include some graph in my document but the graphs are goign everywhere, 2 pages later, or they just go at end, or they can go 2 subsection under it.  Can you help me  Here is my code:  Thank you  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{SIunits} \usepackage{pgfplots} \usepackage{xcolor}  \begin{document}   \begin{figure}[h] \centering \caption{Chute de la tension première expérience} \label{fig:Chute Tension 1} \begin{tikzpicture} \begin{axis}[% no markers, xmin=0, xmax=200, ymin=12.3, ymax=12.7, ylabel = $U$, xlabel = {$Temps (secondes)$}, ] \draw[<->,thin] (axis cs:60, 12.621) -- node [right]{$\Delta U$} (axis cs:60, 12.380); \draw[dashed] (axis cs:60, 12.621) -- (axis cs:20, 12.621); \addplot [color=blue] table [x=Temps, y=U1, col sep=comma] {test2.csv}; \end{axis} \end{tikzpicture} \end{figure} \begin{figure} \centering \caption{Augmentation de l'intensité première expérience} \label{fig:Augmentation Intensite 1} \begin{tikzpicture} \begin{axis}[% no markers, xmin=0, xmax=200, ymin=0, ymax=7, ylabel = $I$, xlabel = {$Temps (secondes)$}, ] \addplot [color=red] table [x=Temps, y=I1, col sep=comma] {test2.csv}; \draw[<->,thin] (axis cs:40, 1.1308) -- node [right]{$\Delta I$} (axis cs:40, 6.0160);  \draw[dashed] (axis cs:25, 1.1308) -- (axis cs:40, 1.1308); \end{axis} \end{tikzpicture} \end{figure} \end{document}


How to shorten an article before submitting to a journal

Does anyone know a good online source for guidelines for shortening journal articles?  I've just finished a paper that I'm going to submit soon, but I think it is far too long.  Its current length is 30 journal pages.  (I know that because I've obsessively figured out what formatting would get me to have 1 word processed page for each journal page of a specific journal.)  This is in the humanities.  So I just want some good guidelines for things like "get rid of 'the fact that'."  The only such things that I found online were directed at people writing their college-admissions essay, which has to be very short, like 500 words.


why is my screen black after rdp connection?

After connecting from my home via remote desktop, both my screens are black when I arrive at work. The only thing I can see is a mouse pointer on one of the screens. I then seem to have only two choices: rebooting or working from a remote desktop connection, which works fine.  It did happen every time I tried last week.  However, I did the same from my laptop in a meeting room today, and I didn't have any problem.


Forgotten show, man wakes on a beach with people from different times

Okay, here is another question for you wonderful people. I remember a show where a man dies and wakes up on a beach with a bunch of other people.  They are all from different periods in time, with one of them being a caveman. All of these people try to build a society but of course conflict ensues.  One of the people who end up on this beach is a Roman emperor (I think maybe Nero or Caligula, but it could have been any of them). One scene I remember vividly is the Roman emperor seeing a steam engine and remarking that if he had access to such technology, he would have taken over the world. If I had to guess, I would say that it was a mid-90's American production, and it was either a movie or a mini-series.  I saw it in South Africa on the Sci-fi channel back when it knew how to spell it's name.


regex extract domain from anywhere in string using python

How do i match a domain from each of the strings below using python regex. In this case s1 is invalid becaulse .local is not a good valid tld  s1 = '220 Exng-CAS1.aldanube.local Microsoft , 16 Feb 2016 14:52:24 +0400' # ignore this  # catch all this  s2 = '220 mail6.mithi.com'  s3 = '220 news-letter.music.jp unknown' s3 = '220 nice .music.co.uk Welcome to the server. 16 Feb 2016 14:52:24 +0400'  >>> import re >>> r = re.match('[a-zA-Z0-9\-]+\.', s1) >>> r.group() Traceback (most recent call last):   File "<stdin>", line 1, in <module> AttributeError: 'NoneType' object has no attribute 'group'


Sci-fi novel about man picked up by aliens to represent earth in battle against galactic invaders

Plot points:   I think the man was one-armed or had one damaged/withered arm. He is an artist when we meet him. He's picked up by aliens to represent earth in a galactic armada. Put in a ship with other aliens only there so a representative of their species can be said to be present - but not expected to actually contribute much to the coming fight. Fight is to protect against invaders from another galaxy. Somehow or other, their ship and crew become integral to winning the war.


So this is my current code: <!DOCTYPE html>               <title>StoryReader</title>         <link rel="stylesheet" type="text/css" href="indexStyle.css">

Welcome to StoryReader.
         <button onclick="ReturnToHomepage()" style="background-color: chartreuse; border-radius: 5px; font: message-box;">Return to the homepage.</button>

Lion, Witch and the Wardrobe.

Description:

When the Pevensie children - Peter, Susan, Edmund and Lucy - step through a wardrobe door in the strange country house where they are staying, they find themselves in the land of Narnia. Frozen in eternal winter, Narnia is a land of snow and pine forests, and its creatures are enslaved by the terrible White Witch.
                 <input type="button" value="Open" onclick="OnClickLion()">

Unknown...

Description:

Coming soon!

             and I want to make it so Readers2 is next to Readers1 so on the left would be Readers one and right next to it to the right would be Readers2. I also want a gap between each div. Is this possible?


Reseed identity column in all empty tables

I need to write a query that resets the identity on all tables that have an identity column and are empty.


Revert a Feature Component programmatically

I have a Feature installed using an Installation Profile. But I always have to go and Revert a particular Component so that it's no longer Overridden (so that, for example, the Feature's Blocks appear).  I just wanted to know if I can take this step programmatically using code itself in the Installation Profile.  In the screenshot below, I've shown the component that has to be reverted programmatically (in the screenshot, it's already reverted back so check box is not available).


how to make the architecture for the auto-generated doc?

I need to generate LaTeX automatically. The user can consider to paste an element to any place of the document and then the TeX version is generated.  Now I considered to describe a document as a nested structure: document has a "rows" , "rows" has a "cells" and cells contains text or table or image, or another "rows".  But when I'm trying to convert this structure to LaTeX I have a problem - nested tables can't be multi-paged.   So I need another doc architecture? Can you suggest how to solve this task?


How does creating two Eldritch Cannons with one action work for an Artillerist artificer?

The 's 15th-level  feature (Eberron: Rising from the Last War, p. 60) states:     You can now have two cannons at the same time. You can create two with the same action (but not the same spell slot)   How would this same action creation work? Could you, for example, create one cannon then use your bonus action to cast misty step to a different location and then place the second cannon, with both summonings being considered 1 action?


I want to know if this is possbile  arr1 = [{   text: "John",   Description: "tall" }, {   text: "Dave",   Description: "short" }, {   text: "Christian",   Description: "medium" }, {   text: "Mark",   Description: "thin" }]  arr2 = [{   text2: "Orange",   Description2: "sweet" }, {   text2: "Prunes",   Description2: "Bitter" }, {   text2: "Apple",   Description2: "sweet" }]   I want to merge the two arrays to look like this  arr3 = [{   text: "John",   Description: "tall",   text2: "Orange",   Description2: "sweet" }, {   text: "Dave",   Description: "short",   text2: "Prunes",   Description2: "Bitter" }, {   text: "Christian",   Description: "medium",   text2: "Apple",   Description2: "sweet" }, {   text: "Mark",   Description: "thin" }]   I have tried to use concat() but it only puts the merge object at the end of the first array it does not seem to give the output that I want.


I have photographed the moon zoomed out to 500mm or so with my Lumix FZ150 when the sky is not very dark and have successfully captured terrific detail in the moon's features.  However, when trying to do the same with a dark or black sky, my eye sees the features, but I think the contrast is too much for the camera. I tried using a polarizer, and then a ND filter to no avail.  Would I have more success with a full frame sensor camera with many mega pixels, or will all cameras have limitations?


For an amusing (and valid but unrelated) reason I want to do the following:  class Head(type, tuple):     pass   But this results in   TypeError: multiple bases have instance lay-out conflict   (on python3.3 and python2.7)  Any way around this?  For the curious I want to create something that behaves like Mathematica expression (Derivative[1][g][x] being g'(x)). I know there are other ways, but for educational purposes I insist on this one.


Science fiction book series with characters using cards to move between space

I don't remember much, but the main characters were from a feudal world that had knights and dukes, moving between today's world and an ancient universe using a card game or something like that. What is the title of book series?


How come photons have no mass if they have energy and $E=mc^2$?

If photons have no mass, and yet have energy, how is that compatible with $E=mc^2$? Anything having mass should have energy (and the opposite should be true as well no)?


Does anyone know how I can change the default open folder in Nautilus  How to let Nautilus open documents directory by default instead of home directory?


You can only use the numbers $1,3,5,7,9,11,13,15$.  You can also repeat the numbers.  Fill in the blanks: ____ $+$ ____ $+$ ____ $=30$


Why is only a small portion of my scene appearing in the render?

This is what I get when I hit render (I've now tried unselecting crop and boarder with the same result):    This is what I want to render:    This is the first time I've made something using blender however so I'm sure I'm making some basic mistake.  To be clear, in the pictures the rendered one is what I get whenever I hit render, the other picture is what I've "made" and am trying to get rendered to a PNG file but nothing I do or can find shows me how to get the whole image, and I keep getting the same small blurry square instead of the full scene pictured.  When I use camera view this is what I see which seems to be the source of the problem:


Why this fatal error occurs? (trying to align a text in tikzpicture)

I would like to print a code in my document in the format that is very common to see online in many websites like this:    But when I try to compile, a fatal error occurs. The problem is in the command to print some text inside the square aligned to the left...  \documentclass[a4paper, 11pt]{article} \usepackage{lipsum} %This package just generates Lorem Ipsum filler text.  \usepackage{fullpage} % changes the margin \usepackage[utf8]{inputenc} \usepackage{array} \usepackage{gensymb} \usepackage{graphicx} \usepackage{mwe} \usepackage{indentfirst} \usepackage[dvipsnames]{xcolor} \usepackage{tikz}                           \usetikzlibrary{shapes.geometric, arrows, shapes.arrows,decorations.pathmorphing, matrix,chains,scopes,positioning,fit,shapes.gates.logic.US, shapes.gates.logic.IEC, calc, decorations.markings,arrows.meta,bending} \usepackage{courier}  \definecolor{red}{HTML}{FF0000} \definecolor{blue}{HTML}{0000FF} \definecolor{lavender}{HTML}{E6E6FA} \definecolor{lightgray}{HTML}{D3D3D3}  \begin{document} \begin{tikzpicture} \fill[lavender, draw=lightgray] (0,0.2) rectangle (14,3.8); \node at (-0.25,6*4/7) {1}; \node at (-0.25,5*4/7) {2}; \node at (-0.25,4*4/7) {3}; \node at (-0.25,3*4/7) {4}; \node at (-0.25,2*4/7) {5}; \node at (-0.25,1*4/7) {6};  %\node at (2.5,6*4/7) {\texttt{\#include $<$iostream$>$}}; %\node at (2.3,5*4/7) {\texttt{\#include $<$string$>$}}; %\node at (2.2,4*4/7) {\texttt{\#include "math.h"}}; %\node at (2.6,3*4/7) {\texttt{using namespace std;}}; %\node at (1.7,1*4/7) {\texttt{int main ()\{ }};  \draw (0.25, 0.25) node[above left, align=left]  {\texttt{\#include $<$iostream$>$}\par \texttt{\#include $<$string$>$} \par \texttt{\#include "math.h"} \par \texttt{using namespace std;} \par \par \texttt{int main()}};  \end{tikzpicture} \end{document}   With the commands in commentary in the above code, the output is like the bigger picture attached. However, If I do this way, I have to adjust the horizontal space for each line I might add in the program.  (If someone also knows how can I make the letters darker(not bold) it would very good!)


Best way to convert text files between character sets?

What is the fastest, easiest tool or method to convert text files between character sets?  Specifically, I need to convert from UTF-8 to ISO-8859-15 and vice versa.  Everything goes: one-liners in your favorite scripting language, command-line tools or other utilities for OS, web sites, etc.  Best solutions so far:  On Linux/UNIX/OS X/cygwin:   Gnu  suggested by  is best used as a filter. It seems to be universally available. Example:  $ iconv -f UTF-8 -t ISO-8859-15 in.txt > out.txt   As pointed out by , there is an . Gnu  () suggested by  will convert one or several files in-place. Example:  $ recode UTF8..ISO-8859-15 in.txt   This one uses shorter aliases:  $ recode utf8..l9 in.txt   Recode also supports surfaces which can be used to convert between different line ending types and encodings:  Convert newlines from LF (Unix) to CR-LF (DOS):  $ recode ../CR-LF in.txt   Base64 encode file:  $ recode ../Base64 in.txt   You can also combine them.  Convert a Base64 encoded UTF8 file with Unix line endings to Base64 encoded Latin 1 file with Dos line endings:  $ recode utf8/Base64..l1/CR-LF/Base64 file.txt    On Windows with  ():    PS C:\> gc -en utf8 in.txt | Out-File -en ascii out.txt  (No ISO-8859-15 support though; it says that supported charsets are unicode, utf7, utf8, utf32, ascii, bigendianunicode, default, and oem.)   Edit  Do you mean iso-8859-1 support? Using "String" does this e.g. for vice versa  gc -en string in.txt | Out-File -en utf8 out.txt   Note: The possible enumeration values are "Unknown, String, Unicode, Byte, BigEndianUnicode, UTF8, UTF7, Ascii".   CsCvt -  is another great command line based conversion tool for Windows.


Understanding decoherence in the double slit experiment

I am trying to understand how decoherence explains the observation of only one possible outcome rather than observing the superposition. When the electron goes through the two slits it interferes with itself in a wave, which makes sense. But when it interacts with the detector, how do we know that the states described by detection at each point on the screen are orthogonal? It feels like there should also be outcomes where the electron is also observed at some combination of these locations.


I have added a custom/secondary query to a template file/custom page template; how can I make WordPress use my custom query for pagination, instead of using the main query loop's pagination?  Addendum  I have modified the main loop query via . Why isn't pagination working, and how do I fix it?


I think I had this clear, but . I had the idea that closed questions can not be searched on Google, and can only be seen by the users of a given site with more than .   Who can see closed questions? Can anyone see these questions from Google? If so, what is the point of having a 250 reputation threshold?  Note: this is not about what/when/how to close a question (as the post linked). It's about viewing closed questions.


Inequality of numerical integration $\int _0^\infty x^{-x}\,dx$.

There was a friend asking me how to prove  $$\int_0^\infty x^{-x}\,dx<2$$  Mathematica showed that its approximate value is 1.99546, so I think it isn't easy to solve it, can you provide me some ideas about this question?


Use static_cast on non-pointer POD instead of c style cast

is there any reason for using static_cast on non pointer POD data types, like int, float, double?  float v = 100; int x = (int) v vs int x = static_cast<int>v   Is there any reason/advantage on using that, I saw several answers that covers pointers, but plain POD data I could not find explicit answers about non-pointers.


Book identification: assassin uses surrogate bodies to hunt targets on multiple planets

I’m looking for a book about an agent who is a trained assasin. He is sent to four different planets to kill a target, but for each job his mind is put into a surrogate body before being sent planetside. One of the planets is a place called "Chavon" I think and in another of the books he is temporarily turned into a dinosaur-type creature through magic.  It’s a brilliant series and I would be interested if anyone can recall what it was called as I wish to get it as a birthday present for my sister.


RSA encryption. Breaking 2048 keys with index

I have some thoughts on this. First, I want to say I am no expert on cryptography, I just know some stuff, and I took a cryptography class in University. I am very interested in this topic.  I understand that many security experts out there might get angry just by the discussion of these things, but I hope you can spare me :)  My Questions:  Would it be possible to break an RSA key, in for example 1 week of time, if the cracker have already spent X number of years building an index of primes by performing every permutation of existing prime keys up to 2^2048 ?  I understand this would take an immense amount of time to do, but it would only be done once.  Given the public key, you would be able to look up what the two primes are, and hence retrieve the private key instantly.  When I consider who might break such a code, I am primarily thinking about NSA and other Governments that might have spent years in research and have the resources and interest in doing so.  Breaking an 256 AES would then be easier, as AES keys are often generated using the RSA private key.  Would it be possible to build such an index ? How long would that take in permutations, and perhaps with the fastest computer in the world ?  I hope we can have a nice chat about this. We are just discussion theory here. I hope you can offer me some insight on this topic.  Thanks!


what's the name for this kind of a representation? the one with the upper arc


What is the meaining of void in javascript and its usage in jshint?

I am reading jshint source code and found return void error("E009"); line.  I know void means return nothing in languages such as C and C++. But what does it mean in javascript and how can it be used? Or is it good practice to use it in Javascript?


Java test class with many private methods

I have a class that has the responsibility of importing contracts from a CSV to database.  The class itself has only one public method that starts the import and the other methods are all private (because only the class itself will use, and they hold the logic).  I'm starting to make tests for this class using Spock and there are many private methods, how should I test it?  Should I turn them into public to test? Test only the main method, the public one?  Whats the best?


CSV with geometry column in JSON format to GeoDataFrame

I have a csv, that I want to open as a GPD, the problem is the geometry column "geo_shape"  I want to convert that column to the proper geometry format, could you help me? The link to the csv file


What is the max variance distribution with fixed mean and support

Is there a upper bound on the variance for a distribution that is confined say, in $[0,1]$, and has fixed mean $\mu \in [0, 1]$


I am planning to write several papers exploring various aspects of the same scientific question. Each of these papers must have an introduction which motivates it and explains the relationship between the problem and what others have studied in the past. It would be fantastic if I could simply copy-and-paste the same introduction, or, at least, 90% of it.  This seems to me to be ethically unproblematic. After all, I need to say the exact same things every time, and I certainly don't mind the self-plagiarism. Am I hurting the reader in any way? I suppose I might be, if the reader desired an introduction which consists of original material, but that is an odd desire, isn't it? Its the research, the stuff that follows the intro, that is original. Sadly, I have gotten wind that the majority of the research community apparently does not agree with the sentiments expressed in the previous paragraph. This leads me here to ask a series of related questions:  To what extent is self-plagiarism in non-technical bits considered acceptable? I often see authors recycle paragraphs but I have never seen anyone cut-and-paste the entire section outright. I'd be particularly interested in learning whether norms on this vary across different scientific communities.  How often do scholars find themselves trying to same the same thing in different words to avoid self-plagiarism?  Supposing I insert a sentence to the effect of: "The introductory section 1.2 is taken verbatim from the author's earlier paper [1]." How likely are journal editors and reviewers to complain about this?   By the way, I am fairly certain they would be very likely to complain about a sentence to the effect of "We refer the reader to [1] for motivation to study this problem and a discussion of its relation to prior work."


Downgrade from OSX 10.10 Yosemite Beta to OSX 10.9 Mavericks

I downloaded the Beta version of Yosemite, but I'm finding that some of my key programs are running properly. I keep regular backups to a Time Capsule. How do I downgrade back to 10.9?  EDIT: 21.5 inch iMac, Late 2013. Original OS: Mavericks


Is there a way to share authorship of an answer?

In the question  of the , the current accepted answer was first drafted by me, but another user provided a very good complement to the answer by editing. The point is that, it should be considered a collaborative answer of two users and the other user should be able to get as much credit for the answer as I do. Is there such feature? Can such a feature be added?


Use the definition of continuous function to show that $f(x) = x^2 + 3$ is continuous at $x=3$.

anyone can help me with this question? I know that to prove continuity the left side limit must equal the right side limit, in this case is 3. But there is only one equation for me to do so, so any idea how to solve this question? Is it possible to choose a value less than 3 and a value more than 3 and sub it into the equation? If that’s the case the limit will not be the same. Really confused with this question, any help is appreciated. Thank you.


I'm wondering if anybody knows how to find a pattern and then move it to a different location.  For example, I have many files named:  odbc.ini_20110630 odbc.ini_20110639 odbc.ini_20110643 etc...  I want to search the pattern of just odbc.ini and move all of them to a different folder.  I'm not too familiar with how to execute two commands at one time (piping).


Why is the equal volume sufficient to solve the puzzle without any calculations?

I was reading the following puzzle:  There is a glass of juice and a glass of water with identical volumes. We take 1 full spoon of the juice and put it in the glass of water. After briefly stirring the mixture, we put a full spoon of the mixture back into the glass of juice. Question: which amount is greater? The amount of juice in the water or the amount of water in the juice?  I worked it out that the amounts are equal by calculating the ratio of juice in the water etc and assuming a prefect mixture. But although the solution  reported the same result, I don't understand really understand its logic and seems faulty to me. The solution states:  After the exchange the amount of juice in the water must be the same as the amount of water in the juice, since the volumes of the two glasses after the exchange are the same. The juice missing from the one glass was moved to the other having the missing volume replaced by water.  So I don't have a problem proving it algebraically. I am trying to understand the intuition behind ths stated answer. Isn't it based on the assumption that e.g. the juice poured in the water glass might be in lower parts and we just remove using the spoon, water from the surface? Otherwise why is the equal volume used here? It seems to me that we remove a volume of juice from the juice glass (e.g. x which is the volume of the spoon) and we put back in a volume of a mixture (not water).


Cardinalities of the two sets and the condition of the function in between

So if I have two sets A and B and if |A| = |B| and if function f is a function from A to B and is injective, how can I prove that it is also surjective?  Forgot to mention.  A and B are finite sets.


Medians of a triangle and the intersecting ratio

Prove that any two medians of a triangle intersect in the ratio 2 : 1. I actually tried with median property but I don't know which theorem I should employ


How to load sample points or coordinates on GPSMAP 62s?

Does anyone know how to upload 100's of sample points or coordinates from the  to a computer?  Does anyone also know the steps to create beeps or alarms when we approach these points in field?


How do I connect to a MSSQL database using Perl's DBI module in Windows?


In the past I have just manually matched the color of the border to the color of the fill, but this can be time consuming.   I am wondering, is there any way to have the program automatically match the border color to that of the fill?   The fill color is being assigned through the styling tab in layer properties.  Using QGIS 2.8.6


128gb SSD turned into 1gb after a shut down

and bad news... My 5 years 128 gb Samsung ssd turned into 1gb after a shut down.The drive was in a dell laptop.the specs of the ssd are: Samsung 2.5" 128 ssd (SATA6.0Gbps) Model MZ-7PC1280/0L1 F/W CXM04L1Q  The bios see it now as :IDE0 SAMSUNG SATA SSD IDE0 Serial NUmber :000000000000000  I plugged the drive into a usb 2.0 enclosure and win 10 saw it as a Unknown 1gb Not initialized 1gb Unalocated drive....I tried to initialize but it gives me that error "Data error (cyclic redudancy check)"  What should i do ? I own an identical ssd in another laptop.Many thanks


My drive storage is almost full, so I'm not sure whether that is the cause of this particular issue.  This is on Ubuntu 18.04.


Is there any way to find out top 10 most used commands in history? Here top 10 means commands which I have used most of the time i.e. the commands whose used count is more than others.


I've checked similar posts and they are not helping.  I want my innermost div to appear in the center of the parent div.  For example:  <container>

 </container>    The parent div is a flex item inside an inline-flex container. margin: 0 auto is only allowing it to horizontally align, but I need it vertically aligned as well. Height and width are 80% of parent div.  How do I go about this?  Also, I will need to add a display: none at times. When I don't want display: none active, what can I leave display as?  Edit:  .Card {     width: 150px;     height: 220px;     border: 2px solid rgb(218, 186, 186);     margin: 10px;     display: inline-flex; }  .FaceUp {     display: none; }  .FaceDown {     height: 80%;     width: 80%;     margin: 0 auto; }   I've tried margin, justify-content, justify-items, align-content, align-items, vertical-align. None seem to be working.  FaceDown and FaceUp will never display at the same time. They are the child/sibling divs inside the parent div.


I'm in my second year studying physics, and ever since I took LinAlg, I've been noticing LinAlg-related concepts pop up all over the place, but it has never been presented directly as matrices, bases, etc.   For instance, I want to understand what an eigenstate- or frequency has to do with matrix eigenvalues. I want to know why we use sin and cos in Fourier analysis (it's a basis, but for which vector space, etc.). I find LinAlg elegant and compact, and I want to know what formal classical mechanics, special relativity, analytical mechanics, QM and EM (and statistical mechanics if possible) looks like using LinAlg to accomplish general and rigid derivations of the concepts involved.   Tensor notation might also be acceptable, even though I have no experience with it yet.   Any suggestions for textbooks/texts that might help?  EDIT: I don't see how this is a question about how QM relates to/uses LinAlg? There is one textbook reference in the answers for that other question, and it only refers to one chapter.


Is a Transit Visa necessary for a brief layover at London Heathrow airport

I will be transiting through London Heathrow airport on 2 occasions:  1) On 22 Sept 2016 BA flight from Bangalore to London, arrival at 13.05 hrs: departure at 14-55 hrs for Paris by BA flight.  2) On 11 Oct 2016 BA flight from Berlin to London, arrival at 12-10 hrs: departure at 14-25 hrs for Bangalore by BA flight.  I have confirmed British Airways tickets for entire journey. I have a valid Schengen visa. I book checked-in baggage at Bangalore and Berlin.  DO I NEED ANY TRANSIT VISA for Short Layover?


Parts of speech and functions: "Bob made a book collector happy the other day"

Having been bamboozled by various questions and answers on this site, I'd like to know what are the parts of speech (POS) and grammatical functions of the words and phrases in the following sentence:        Bob made a book collector happy the other day.      Here I am particular interested in the status of the following items:   book happy the other day   But I also need the parts of speech and functions of all the individual words in the sentence. By functions I mean subject, complement and the like. I would also like to know the evidence for the assignments to specific functions and parts of speech.   The reason for asking this question is because the status of the three items listed above may be thought contentious by some people. For example, it might be argued by some that book is an adjective, whilst others will say it is a noun. Similarly, the other day some will argue is an adverb. Whether adverb here should be regarded as a function or part of speech in such analyses seems unclear.


'timedatectl' is giving following output  -                        Local time: Wed 2018-06-13 18:08:51 IST                   Universal time: Wed 2018-06-13 12:38:51 UTC                         RTC time: Wed 2018-06-13 12:38:51                        Time zone: Asia/Kolkata (IST, +0530)        System clock synchronized: no systemd-timesyncd.service active: yes                  RTC in local TZ: no   How to set System clock synchronized to yes?


Exception in thread "main" java.lang.NullPointerException at PA5.main(PA5.java:85)

Scanner scan = new Scanner(System.in);  System.out.println("Enter a file:");  String fileName = scan.nextLine();  Scanner fileScan = new Scanner(new File(fileName));  int lineCount = 0;  while (fileScan.hasNext() && lineCount <10){     array4[lineCount] = fileScan.nextLine();     lineCount++;   }// printing the file   int max4 = array4[0].length();    for(int i = 1; i <10; i++){       if (array4[i].length() > max4) {   THIS IS WHERE THE PROBLEM IS absolutely lost need assistance          max4=array4[i].length();       }    }    }//end of main  }//end of class having issues with an exception in thread main nullpointer exception


How many rounds does the average combat encounter last?

I am trying to create a simple way to track ammunition for my upcoming sandbox game. In this system, players will buy ammunition in (for lack of a better word) "packets". One packet of ammunition contains enough for one encounter. To work out the price of a packet, all I need to do is multiply the cost of one arrow (or bolt, etc.) with the number of arrows fired in the average combat encounter. I understand that number of arrows used will double when extra attack is gained. I can work around that easily by making players with extra attack spend two packets per encounter.  (Why bother with ammunition at all if I'm going to simplify it this much? Because I also have a simplified encumbrance system, so this ties into that. Players have to decide how many fights' worth of ammunition they are willing to carry.)  However, to be able to work this out, I need to know how long the average encounter is. When I say "average", I mean a medium or hard difficulty encounter in which 4–6 characters face off against a similar number of opponents. In other words, what might be considered the bog-standard, run-of-the-mill encounter.  I would be particularly interested to hear from someone who has been recording the length of each encounter (as unlikely as that may be).


I don't know how to approach this.   I tried expanding $e^{\pi}$ using the power series but that was a dead end since I didn't know what to do with it. I tried estimating if $e \log({\pi})$ was greater or  $\pi$. And I guess $\pi$ is greater but I don't have a rigorous argument.


Some of the tags in the Stack Overflow tag list have a different color. Such as below:        Why do some of these tags have another color background?


Is there a way I can avoid imperial ships?

Whenever I am traveling on foot, imperial ships will fly by and drop down troops for me to fight. In a normal situation, this is no big deal and I will fight or flee to continue with my travels.  However this will also occur when I am doing a quest that requires me to locate and pick up items. This is an inconvenience as I cannot pick up items while in combat and I have to kill them before I can continue.  Is there a way I can "hide" and allow the ships to by pass my location?


This is the critter spray gun.   The liquid in the jar is at atmospheric pressure (there's a vent hole connecting it to the atmosphere). A fast jet of air flowing right over the end of the pickup tube sucks the liquid up the tube and into the air stream. How exactly does this fast stream of air creates suction? It's released in the atmosphere, so shouldn't it also be at atmospheric pressure?


Javascript biggest numeric value (add or subtract value)

Why do javascript return a true value if I check the following equation:  console.log(Number.MAX_VALUE === (Number.MAX_VALUE - 1)); // -> true   It doesn't matter if I add or subtract a certain value of the max value. Even a big number like 100000 will return true.  console.log(Number.MAX_VALUE === (Number.MAX_VALUE - 100000)); // -> true   I would appreciate any answer, thank you very much.


Is it possible to use grep to pick up only full words?

When I use the grep command, all occurrences of a word are picked up, even if they are part of other words. For example, if I use grep to find occurrences of the word 'the' it will also highlight 'the' in 'theatre'   Is there a way to adapt the grep command so that it only picks up full words, not part of words?


When working in full screen mode, I'd like a way to quickly switch between host and VM using a toggle key. How can I do this? Thanks.


"Cannon to the right of them, Cannon to the left of them, Cannon in front of them."  Years ago, when I was introduced to "The Charge of the Light Brigade" (Tennyson, 1854) our teacher pointed out the repeated use of the word "cannon", like a refrain, was a figure of speech. He went on to give other examples, of which my mind retained only this:  Victory at all costs, victory in spite of all terror, victory however long and hard the road may be.   (, June 1940)


How can I add my Listings to the \lstlistoflistings?! Here is the Listing with example:  \documentclass[a4paper,11pt]{article} \usepackage[ngerman]{babel}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}  \usepackage{listings} \usepackage[many]{tcolorbox} \tcbuselibrary{listings}  \newtcblisting[auto counter,number within=section]{cpp}[2][]{   title={Listing \thetcbcounter: #2},   coltitle=black,   colback=white,   boxrule=0pt,   arc=0pt,   outer arc=0pt,   top=0pt,   bottom=0pt,   colframe=white,   listing only,   left=15.5pt,   enhanced,   listing options={     basicstyle=\footnotesize\ttfamily,     keywordstyle=\color{blue}\ttfamily,     stringstyle=\color{red}\ttfamily,     commentstyle=\color{green}\ttfamily,     breaklines=true,     language=C++,     showstringspaces=false,     tabsize=2,     numbers=left   },   overlay={     \fill[gray!30]        ([xshift=-3pt]frame.south west)       rectangle        ([xshift=11.5pt]frame.north west);   } }    \begin{document}  \lstlistoflistings  \begin{cpp}{iwconfig Aufruf} root:~> iwconfig eth0 eth0      IEEE 802.11-bgn  ESSID:off/any             Access Point: Not-Associated   Bit Rate=0 kb/s  \end{cpp}  \end{document}   Using the code above for it only shows the \listoflistings Title and the listing itself but nothing inside the list of listings:


problem with publish date not always appearing

I have this problem where the publish date sometimes appears and sometimes it does not.  I am using ACF relationship field to find the story and then bring it to my front page.  <?php the_date(); ?>  If I open the story and re-publish it with a new publish date it works.


This is my code:  def lists_to_dict(coded, plain):     '''     (list of str, list of str) -> dict of {str: str}     Return a dict in which the keys are the items in coded and     the values are the items in the same positions in plain. The     two parameters must have the same length.      >>> d = lists_to_dict(['a', 'b', 'c', 'e', 'd'],  ['f', 'u', 'n', 'd', 'y'])     >>> d == {'a': 'f', 'b': 'u', 'c': 'n', 'e': 'd', 'd': 'y'}     True     '''     dic = {}     dic = {key:value for key, value in zip(coded, plain)}     return dict(dic)   and my output:  >>> {'b': 'u', 'c': 'n', 'e': 'd', 'd': 'y', 'a': 'f'}   can someone please tell me where do I got wrong and help me out please!


How do you install sauerbraten on Ubuntu 14.04?


How can I view the typical flight prices between two airports prior to the COVID-19 pandemic?

How can I view the typical flight prices (ideally during a given date of the year) between two airports prior to the COVID-19 pandemic? Google Flights only show the future prices.


notation conditional normal distribution

I'm describing parameter search using a particle filter, for which I use .  On page 8 of the document, he states "and $p(\theta)$ is (approximately) a mixture of multivariate normal distributions,  $p(\theta)=\sum_{j=1}^{n} w_j N_p(\theta \mid m_j, M_j)$."  where $N_p(\mu, \Sigma)$ is a p-variate gaussian distribution.  I.e. he's using a conditional probability inside a Gaussian PDF. Is that notation allowed? I've not seen that anywhere. My professor (i'm a PhD student) says it's incorrect.


How to install Visual Studio Code in Ubuntu?

I am using Ubuntu 18.04, and I need to install  in my machine i tried:    sudo snap install --classic vscode   but it didn't work.


What is the cheapest / fastest way to get from Brussels to Paris?

There are several ways of getting from Brussels to Paris. The fastest is probably the train, but it gets more expensive when you buy the ticket on the last minute.  My question can be really split into two:  Is there an alternative way, maybe through a different ticket operator, of buying a cheap train ticket from Brussels to Paris in short notice?  The alternative is going by Bus. What alternatives are there? Are there other operators besides Eurolines? maybe cheaper and/or faster?  Are there other options?


Big Sur: An error occurred while installing the selected updates

I tried to update the macos from the 10.15.7 to the recently released Big Sur. Software Update has dowloaded the installation data and the following popup dialog appeared.  I found in Console's system.log the following message, but I'm not sure if it's related to my problem. Nov 12 22:58:02 coolomet com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.SoftwareUpdateC.1617): Failed to bootstrap path: path = /System/Library/CoreServices/Software Update.app/Contents/Resources/SoftwareUpdateConfigData, error = 2: No such file or directory  I checked that the requested file exists in my system in the given location. ➜  Resources pwd /System/Library/CoreServices/Software Update.app/Contents/Resources ➜  Resources ls -l SoftwareUpdateConfigData -rwxr-xr-x  1 root  wheel  42192 22 zář 02:25 SoftwareUpdateConfigData  How can I download the Big Sur from the scratch again? I cannot find the location of downloaded installer. I don't see the usually downloaded installer in the /Application directory. ➜  Resources ls -l /Applications | grep -i install drwxr-xr-x   3 root  wheel   96 12 lis 22:54 Install macOS Catalina.app


Using LyX bibliography sorting order is not working

I am new to Lyx and have spent the better part of a week getting things to work correctly. I am stumped how to fix the problem of the bibliography sorting order not working.  I have a LyX file like this:     Mary had a little lamb.   I insert a citation so now I have:     Mary had a little lamb [1].   I then realize that I needed to cite Mary so I insert again:     Mary [2] had a little lamb [1].   No matter what I do in settings etc, I can not get it to print:     Mary [1] had a little lamb [2].   My set up:  LyX version 2.0.4 MiKTex 2.9 I am using Zotero in conjunction with LyX to build BibTeX database. I have tried different styles: unsrt, plain, ieeter  LyXserverPipe: \.\pipe\lyxpipe  I am totally tired of trying to get this up and working. I am sure the effort will be repaid, but what a pain.  Any help is appreciated.


Is there anything that emulate static interface?

I would like to ensure that a bunch of classes all have this particular static function with the same name to be called on.  The best way to do so is to have every class implement my interface.  But alas, interface don't do static, is there anyway to get around this?


What is the simplest way to extract from a file a line given by its number. E.g., I want the 666th line of somefile. How would you do this in your terminal, or in a shell script?   I can see solutions like head -n 666 somefile | tail -n 1, or even the half-incorrect cat -n somefile | grep -F 666, but there must be something nicer, faster, and more robust. Maybe using a more obscure unix command/utility?


How can I introduce a line break in the title for a chapter, but not have the line break in the contents page?

Hello, I wanted to introduce a line break in some of my titles for aesthetic reasons (to avoid a line with one word)... But now this has seeped into the contents page. Is it possible to have a line break in the title, but not in the contents page?   (this is what I typed in for the chapter heading: \chapter{The Birth of Stellar \Black Holes})


Array Constructor Throws NullPointerException

Note:      I had already ready the article "What Is NPE and How to Fix it."   However the article did not address in particular arrays, which I   suspect is the source of error in my code.   This is a program to construct a UPC code (12-digit) as a int[] array from a String (must use charAt() and getNumericValue. However it throws the NullPointerException at the constructor as is.  public class UPC {      private int[] code;      public UPC(String upc) {         int[] newUPC = new int[12];         char currentChar;         for (int i=0; i<upc.length();i++) {             currentChar = upc.charAt(i);             code[i] = Character.getNumericValue(currentChar);     } }  public static void main (String[] args){    // call static method to display instructions (already written below)   displayInstructions();    // While the string entered is not the right length (12 chars),   // tell the user to enter a valid 12-digit code.     Scanner scn = new Scanner(System.in);   // Declare string and read from keyboard using Scanner object    // instantiated above     String str = scn.nextLine();         if (str.length()!=12) {             System.out.println("Please Enter a Valid 12-Digit Code");         } else {             System.out.println("You are good");         }    // Create a new UPC object, passing in the valid string just   // entered.   UPC ourUPC = new UPC(str);


finding slope of a curve using derivative formulas

Why the slope will be infinitive if the tangent of curve is verticle ?  Suppose $x^2+2ax+y^2=0$ is a curve and its tangent is verticle to $x$-axis. From what basis we call the slope of this axis will be infinitive? Actually I searched a lot but didn't find any specific answer.  Thanks in advance


Let $L$ be a Lie-algebra. I have to show that the Lie-bracket $[\,,]$ is  associative if and only if $[x,y]\in C(L)$ for all $x,y\in L$, where $C(L)$ denotes the center of $L$.  I know that $[x,y]\in C(L)\Leftrightarrow [[x,y],z]=0\,\,\,\forall z\in L$. But from here I do not know how to continue.   Can anyone give me hint?


Left click selection deselect object (2.8)

I was astonished when I heard the announcement of left Click by Default. Anyway  I gave it a try and it felt familiar. but I got stuck when it came to adding objects to the current selection. Ok now I know shift+CTRl left Clicking ads new objects to my selection (why not shift or CTRL). But I have no idea how to deselect one object from the selection.  Can you help me?


Which are the most advanced frameworks and tools there are available for python for practicing Behavior Driven Development? Especially finding similar tools as rspec and mocha for ruby would be great.


How can I manually implement a ligature for a certain font (with XeLaTeX)?

I want to use a font which contains glyphs for some common ligatures (fi, fl, ff, ffi, ffl) and actually needs them to avoid ugly collisions. However, for some reason they are not accessible via any OpenType feature or similar, but only through the respective Unicode characters. I do not want to tweak the font itself since I want my document to be compilable by others without supplying my tweaked font.  What I am now looking for is a way to emulate a normal ligature feature from within TeX (more precisely, XeLaTeX). For example, whenever the source contains fi, I want it to be rendered using the ligature glyph. I do not want to use the Unicode character for this ligature (ﬁ) in the source, nor do I want to use a custom command (such as \newcommand{\fi}{ﬁ}). Given, that regular TeX does something similar when rendering -- as “–”, I expect this to be possible.  I thought about using XeTeX’s inter-char tokens for this (see, e.g., the second half of ), but I could not get beyond inserting something in between the two characters. I am also aware of , whose answer is specific to LuaTeX, however.


Prove $ n \equiv s(n)\ ($mod$\ 3)$ using the fact that $\ [10^n] = [1]$.

Prove $ n \equiv s(n)\ (mod\ 3)$ using the fact that $\ [10^n] = [1]$. Let $n = (a_k \times 10^k) + (a_{k-1} \times 10^{k-1}) + \cdots +(a_1 \times 10^1)+ (a_0 \times 10^0)$ and $s(n)=(a_k + a_{k-1}+ \cdots +a_1+a_0)$.   When trying to solve this question, I combined the information given and found that $$n-s(n) = (a_k \times 10^k) + (a_{k-1} \times 10^{k-1}) + \cdots +(a_1 \times 10^1)+ (a_0 \times 10^0)-(a_k + a_{k-1}+ \cdots +a_1+a_0)$$ $$=(a_k \times 10^k-a_k ) + (a_{k-1} \times 10^{k-1}-a_{k-1}) + \cdots +(a_1 \times 10^1-a_1)+ (a_0 \times 10^0-a_0)$$  $$=a_k (10^k-1) + a_{k-1} (10^{k-1}-1) + \cdots +a_1 (10^1-1)+ a_0 (1-1)$$ $$=a_k (10^k-1) + a_{k-1} (10^{k-1}-1) + \cdots +a_1 (9)$$ I'm not sure where to go from here, I thought maybe I could deduce that since, for the case of $\ [10^n] = [1]$ -- since that means that $10^n \equiv 1 (mod \ 3)$ -- I could say that since there exists an integer, call it p, such that $10^n - 1=3p$, and then put that "statement" in the parentheses in the last "=" line that I had above. I have a feeling it doesn't make sense though, and it would be incorrect.


What is this shell/Bash syntax: someVariable=someValue someCommand

One of my coworkers has provided me with a Bash syntax that I am unfamiliar with.  My Google foo has failed me on figuring out what it does and why/when I should use it.    The command that he sent me was of this form:  someVariable=something command   Initially, I thought that this was equivalent to the following:   someVariable=something ; command   Or  someVariable=something  command   But this doesn't appear to the be case.  Examples:   [Jan-03 11:26][~]$ # Look at the environment variable BAZ. It is currently empty [Jan-03 11:26][~]$ echo $BAZ  [Jan-03 11:27][~]$ # Try running a command of the same format     [Jan-03 11:27][~]$ BAZ=jake echo $BAZ  [Jan-03 11:27][~]$     [Jan-03 11:27][~]$ # Now, echo BAZ again. It is still empty:     [Jan-03 11:27][~]$ echo $BAZ  [Jan-03 11:27][~]$     [Jan-03 11:28][~]$     [Jan-03 11:28][~]$ # If we add a semi-colon to the command, we get dramatically different results: [Jan-03 11:28][~]$ BAZ=jake ; echo $BAZ jake [Jan-03 11:28][~]$ [Jan-03 11:28][~]$ # And we can see that the variable is actually set: [Jan-03 11:29][~]$ echo $BAZ jake [Jan-03 11:29][~]$   What does this syntax do?  What happens to the variable that has been set?  Why does this work?


Use string to get table name from database out of dbcontext

I am trying to get the table name from the dbset property.  When a change is made I get the name of the class  Type myType = entry.Entity.GetType().BaseType; string name = myType.Name;   This gives me a string with the name of the class. In this example Employee.    public virtual DbSet<Employee> Employees { get; set; }   I'm trying to get the name of the table by sending the class to the following method.  public static string GetTableName<T>(this DbContext context) where T : class {     ObjectContext objectContext = ((IObjectContextAdapter)context).ObjectContext;      return objectContext.GetTableName<T>(); }  public static string GetTableName<T>(this ObjectContext context) where T : class {     string sql = context.CreateObjectSet<T>().ToTraceString();     Regex regex = new Regex("FROM (?<table>.*) AS");     Match match = regex.Match(sql);      string table = match.Groups["table"].Value;     return table; }   The problem is, these methods expect a class name and not a string.  How can I convert the string to a class name, or modify the method to accept the string.


When I try to install .deb file it says:  Selecting previously unselected package guitarpro6:i386. (Reading database ... 182150 files and directories currently installed.) Preparing to unpack gp6-full-linux-demo-r11686(1).deb ... Unpacking guitarpro6:i386 (6.1.9) ... dpkg: dependency problems prevent configuration of guitarpro6:i386: guitarpro6:i386 depends on gksu. guitarpro6:i386 depends on libasound2; however: Package libasound2:i386 is not installed. guitarpro6:i386 depends on libglu1-mesa; however: Package libglu1-mesa:i386 is not installed. guitarpro6:i386 depends on libportaudio2; however: guitarpro6:i386 depends on libstdc++6; however: Package libstdc++6:i386 is not installed. guitarpro6:i386 depends on libxml2; however: Package libxml2:i386 is not installed. guitarpro6:i386 depends on libxslt1.1; however: Package libxslt1.1:i386 is not installed.  dpkg: error processing package guitarpro6:i386 (--install): dependency problems - leaving unconfigured Processing triggers for desktop-file-utils (0.22-1ubuntu3) ... Processing triggers for bamfdaemon (0.5.2~bzr0+15.10.20150627.1-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.58ubuntu1) ... Errors were encountered while processing: guitarpro6:i386   How do I fix this? I don't even know what to install.  sudo apt-get install --fix-missing gives me:  Selecting previously unselected package guitarpro6:i386. (Reading database ... 182150 files and directories currently installed.) Preparing to unpack gp6-full-linux-demo-r11686(1).deb ... Unpacking guitarpro6:i386 (6.1.9) ... dpkg: dependency problems prevent configuration of guitarpro6:i386:  guitarpro6:i386 depends on gksu.  guitarpro6:i386 depends on libasound2; however:   Package libasound2:i386 is not installed.  guitarpro6:i386 depends on libglu1-mesa; however:   Package libglu1-mesa:i386 is not installed.  guitarpro6:i386 depends on libportaudio2; however:  guitarpro6:i386 depends on libstdc++6; however:   Package libstdc++6:i386 is not installed.  guitarpro6:i386 depends on libxml2; however:   Package libxml2:i386 is not installed.  guitarpro6:i386 depends on libxslt1.1; however:   Package libxslt1.1:i386 is not installed.  dpkg: error processing package guitarpro6:i386 (--install):  dependency problems - leaving unconfigured Processing triggers for desktop-file-utils (0.22-1ubuntu3) ... Processing triggers for bamfdaemon (0.5.2~bzr0+15.10.20150627.1-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.58ubuntu1) ... Errors were encountered while processing:  guitarpro6:i386 matjaz@X555LN:~/Downloads$ sudo apt-get install --fix-missing Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  guitarpro6:i386 : Depends: gksu:i386 but it is not installed                    Depends: libasound2:i386                    Depends: libglu1-mesa:i386 but it is not installed                    Depends: libportaudio2:i386 but it is not installed                    Depends: libstdc++6:i386 but it is not installed                    Depends: libxml2:i386 but it is not installed                    Depends: libxslt1.1:i386 but it is not installed E: Unmet dependencies. Try using -f.


How do I create a common symbology scale for multiple rasters in QGIS/ArcGIS?

I have twelve global surface temperature rasters and each has a slightly different temperature range depending on the time of year. I would like to create a common scale i.e. -80c to 80c and so all the colours in each raster match each other. I am happy it do this in either QGIS or ArcGIS.


How can I echo "$" in a here-doc in bash?  For example, I want to have a file with the content on remote server like $ABC=home_dir.  $ ssh hostname sudo -s <<EOF echo "$ABC=home_dir" > file EOF   But it would be treated as a variable. How can I print a literal $?


I'm trying to debug a Python script by placing a print("foo=" + foo) statement in my code.  But where does the output appear?     It doesn't appear on the Python Console, and it doesn't appear on the area that appears when you drag the lower edge of the infobar downwards (what is the name for this area? My script errors show up in red here.)


Does say a 35mm on an APS-C camera have the same facial/other deformations as a 35mm?

I am about to purchase a 35mm (Nikon 35mm F1.8 DX) for my APS-C camera, to get the equivalent of a 50mm lens. I want to use it for portraiture a bit, but I'm worried the facial deformations will equate to a 35mm lens (which would make it not that useful for portraiture).   Does a 35mm FX have the same facial/other deformations on an APS-C camera as a 35mm? Is this very similar with a 35mm DX lens (on an APS-C camera)? Is this the same situation for all other lens (when using an APS-C)?   Regards.


(Catchy title, eh?)  I am asking the following on the photo.SE site:     How do you change from portrait to landscape in Lightroom   DANGER! DANGER! This appears to be subjective and is likely to be closed.  If I ask the following radically different question:     How do I change from portrait to landscape in Lightroom   ... there is no problem.  So, like the title says: Why is "you" subjective?  (And  where Jeff spills the regex)


Relationship between correlation of x vs. x+y and y vs. x+y

I am working with some data in which two component scores X and Y are added together to make a total score X + Y. Is there any known relationship between the correlation R for X vs. X + Y and the R for Y vs. X + Y?   I've played around a little bit, but I am not seeing anything except in the case where X and Y themselves are uncorrelated. (In that case, the R2 values sum to 1.)  ETA: With all due respect, this question is NOT a duplicate of the one already cited. I made abundantly clear that I am not talking about cases in which the variables have no correlation, which is a key feature of the other question. I am asking a much broader question.


Finding the confidence level and number of successes

Given that the sample size is $1500$ and the confidence interval of $p$ is $(0.050, 0.083)$. Find the confidence level and the number of successes.


Is it possible to unlock every character without using Bux?

I've gotten every level, both imperial and non-imperial; and I've completed every Vader mission. However, I still don't have all the characters.   How can I unlock all the characters? Is it possible to do so without using Bux?


On wrapper class can we get the subtotals and grandtotals calculation in a table at footer ,VF page in PDF

can any one help me out in this.I have created a custom visual force page on "quote " object in a PDF format where the data gets displayed .Now Can we create a we get the subtotals and grand totals calculation in a table at footer in a visual force page in a PDF format.Any suggestion plz.   SOQL Query using as : GROUP BY CUBE or  GROUP BY ROLLUP


please first read these then answer my question  Let $D$ be a division ring and r, n be two positive integer numbers such that $0 ≤ r ≤ n$. Then $H_r(D)$ denotes the left ideal of $M_n(D)$ containing all matrices whose $j$th column is zero, for every $r < j ≤ n$.     Theorem A: Let $D$ be a division ring and $n$ be a positive integer number.   Then for every left ideal $I$ of $M_n(D)$, there exist an invertible matrix $P$ and integer $r$,   $0 ≤ r ≤ n$, such that $I = PH_r(D)P^{−1}$.   Now from theorem A how I can conclude that each left ideal of $M_2(D)$ is minimal? I'm totally confused with this


How can I convert this string '2012-07-06T21:00:00.000Z' To datetime format to calculate the age

So I have a dataframe that has the date of birth written as a string '2012-07-06T21:00:00.000Z' (example). I want to calculate the users' age from that. Note that this is a string and I think I need it to be datetime to be able to calculate it. Thank you much my code (Python): def calculate_age(born):     born = datetime.strptime(born, "%Y-%m-%d'T'%H:%M:%S.%f%Z").date()     today = date.today()     return today.year - born.year - ((today.month, today.day) < (born.month, born.day))  df['age'] = df['birth_date'].apply(calculate_age)


is possible run spring boot application on backend?

I have my spring boot application, I normally work with wars that I deploy on tomcat, but I want to try this way a little bit more.  My problem is that when I deploy it in a server, and I do   java -jar target/myproject.jar   Works pretty fine, but after a time without use, the shell gets disconnected and soon after it (I believe because the shell) the process stops.  Any idea how to deal with this?  I am using Debian.  Thanks.


What exactly does it mean to say "$dv=4\pi r^2\,dr$ can be thought of as the spherical volume element between $r$ and $r+dr$"?

In my textbooks and lectures (I'm a second year physics student) I often come across statements such as $$``dV=4\pi r^2dr\text{ can be thought of as the spherical volume element between }r\text{ and }r+dr."$$  Is this meant only symbolically, or is it a precise statement? For instance, I get \begin{align}\int_r^{r+dr}4\pi r^2dr&=\frac{4}{3}\pi\left[r^3\right]_r^{r+dr}\\&=\frac{4}{3}\pi(r^3+dr^3+3rdr^2+3r^2dr-r^3)\\&=\frac{4}{3}\pi(dr^3+3rdr^2+3r^2dr)\\&=4\pi r^2dr+\text{increasingly smaller terms.}\end{align}  Moreover, a Taylor expansion of the spherical volume function at a point $r'$  around a general point $r$ gives $$V(r')\approx\frac{4}{3}\pi r^3+4\pi r^2(r'-r)+\cdots.$$ Since the volume of a spherical shell between $r$ and $r+dr$ is generally (?) the volume of a sphere with radius $r+dr$ minus the volume of a sphere with radius $r$, we get $$\text{volume between }r\text{ and }r+dr\approx\frac{4}{3}\pi r^3+4\pi r^2dr-\frac{4}{3}r^3\approx4\pi r^2dr.$$  This leads me to think that what $4\pi r^2dr$ really is, is a good approximation (in fact, a first order Taylor expansion) of the volume between $r$ and $r+dr$, which can furthermore be assumed to be perfectly valid in the limit $dr\to 0$.  Maybe ... I'm just being pedantic?


It seems that I have two installations of TeXlive, one of which is more updated.  When I run latex, it seems to search packages inside the old installation. How can I direct latex to look for the updated installation?  All my packages in the new installation (such as tcolorbox) are listed as directories in the directory /usr/local/texlive/2015/texmf-dist/tex/latex/.   The old installation lists the package files in /usr/share/texlive/texmf-dist/tex/latex/.  Also, the command which latex gives /usr/bin/latex.


I would like explain the set theory, but I don't know how to do this.   For example I want to combine them.     This is my inital code:  \documentclass{beamer} %contains the document size %handout for better printing results % use [draft] instead handout and it compiles faster \usepackage{beamerthemesplit} \usetheme{PaloAlto} \usecolortheme{crane} %http://www.hartwork.org/beamer-theme-matrix/  %\setbeamercovered{transparent} %transparente overlay \beamertemplatenavigationsymbolsempty \usepackage{tikz}  \usepackage{pgfpages} \pgfpagesuselayout{resize to}[a4paper,border shrink=5mm,landscape] %for printing, beamer has a differnt paper size. \keywords{Learning Latex} %\logo{\pgfimage[width=1cm,height=0,5cm]{TU Graz}} \setbeamertemplate{footline}[frame number] %if you have a lots of frames, it is better do not show the pagenumbers.   \newtheorem*{com}{Comment}   \usepackage[UKenglish]{babel} \usepackage[utf8]{inputenc}  \definecolor{BlueLUH}{cmyk}{1.0,0.7,0,0.9}   \begin{document} %------------------------------------------------------------- \def\firstcircle{(0,0) circle (2cm)} \def\secondcircle{(0:5cm) circle (2cm)}  \colorlet{edge}{BlueLUH!20!white} \colorlet{area}{BlueLUH!80!black!20}  \tikzset %\tikzset{every path/.style={}} {filled/.style= {fill=area, draw=edge, thick},  outline/.style={draw=edge, thick}} %-------------------------------------------------------------  \date{\today}   \frame{\titlepage}  \part[par]{Documentclass beamer}  %at lectures with several presentations   \begin{abstract} In this short presention, I explain you the set theory. \end{abstract}  \frame{\frametitle{Table of contents}\tableofcontents}  \section{Circles} \begin{frame} \uncover<1-2> {\begin{tikzpicture}  \draw[filled]   \firstcircle node {$A$}; \end{tikzpicture} }  \uncover<2-2> {\begin{tikzpicture}  \draw[filled]   \secondcircle node {$B$}; \end{tikzpicture} }  \only<3-3> {\begin{tikzpicture}     \begin{scope}         \clip \firstcircle;         \fill[filled] \secondcircle;     \end{scope}     \draw[outline] \firstcircle node  {$A$};     \draw[outline] \secondcircle node {$B$}; \end{tikzpicture} } \end{frame}  \section{Outro} \frame{ \begin{center} \huge Thank you! \end{center} }  \end{document}   I edited it, but it still doesn't work:  \section{Circles} \begin{frame} \begin{tikzpicture} \uncover<1-2>{ \draw[filled]  \firstcircle node[name=A] {$A$}; } \uncover<2> { \draw[filled,opacity=0.8, xshift = 2.5cm],   \secondcircle node[name=B] {$B$}; \path [name intersections = {of = firstcircle and secondcircle } ] (intersection-1) -- (intersection-2) node [pos=0.5] {$A \cap B$}; } \uncover<3> { \draw[filled,opacity=0.8],   \secondcircle node[name=B] {$B$}; \path [name intersections = {of = firstcircle and secondcircle } ] (intersection-1) -- (intersection-2) node [pos=0.5] {$A \cap B$}; } \end{tikzpicture} \end{frame}   Infact I see this error:     tikz Error: giving up on this path did you forget a semicolon? \end{frame}   ! Package pgf Error: No shape named intersection-1 is known.   ! Package tikz Error: I do not know the path named `secondcircle'.    Perhaps you misspelt it.


Searching for the title of a Fantasy book series from the 1980's

I am trying to remember the name of a Fantasy series from the 1980's. It contained at least 7 novels.  I remember it was about a magic bottle that was entered by use of the ring. Each novel, whilst a separate story, was connected to the others, building the story of the bottle from different perspectives.  Went to re-read them but found they had been "tidied away" during a house move.  Any ideas on either title of the series or one of the books?


MySQL - maximum of sum over different months

I have a table called commodities where I have nature_of_goodscolumn in it. nature_of_goods contains all the different types of goods like machinery, household etc.   I have another column called as created at which contains the date and time in timestamp format.   I need to find the maximum goods took place in particular month.   I have tried the following query:  select max(mycount) from   (select   nature_of_goods, count(nature_of_goods) AS mycount         from     commodities         group by month(created_at));


python API using function defined as 'lambda' conflicting with intrinsic python function

I am using an API for the Plaxis2D program which is based in python. it appears that for one of the material models, they have a method defined as lambda  In [60]: dir(g_i.MCC) Out[60]:  [...  'emin',  'gammaPore',  'gammaSat',  'gammaUnsat',  'info',  'kappa',  'kappaModified',  'lambda',  'lambdaModified',  'materialcommand',  'multiply', ...]   Naturally when I attempt to call this method I get an error  In [61]: g_i.MCC.lambda   File "<ipython-input-61-fc4a65285477>", line 1     g_i.MCC.lambda                  ^ SyntaxError: invalid syntax   Other methods work fine:  g_i.MCC.kappa Out[62]: <Object {AED3A25E-014A-4035-B114-0047EE1C748C}>   Of course, it is stupid to have a method be given a name identical to an intrinsic Python function. However I am not sure the API they provide is really their main priority... which leads to situation like this...   How can I circumvent such that I can access this method?


ERROR 1045 (28000) on mysql-server installation

I am new to Ubuntu trying to install MySQL.  sudo apt-get install mysql-server php5-mysql   then to create database directory structure  sudo mysql_install_db  Then to secure I use   sudo mysql_secure_installation   and then it ask me to   Enter current password for root  I am logged as root by using sudo su but when I try entering the password it give me   error:Enter current password for root (enter for none):  ERROR 1045 (28000): Access denied for user 'root'@'localhost'  (using password: YES)   By typing y for yes also it is giving the same error. please help me.


Why do I only have 30V going to my light fixture

I just replaced a broken light fixture in my closet. (The switch in the light fixture broke when I pulled too hard on the chain.)   When replacing the light fixture I noticed that there is only 30 V AC between the white and black wires. The ground wire is cut back and is not being used. By the way, the wiring in my house is all aluminum.   I know the new light fixture works. I checked it out with my multimeter, and I tried it in a different closet. But the light bulb won't turn on because there is only 30 V. (Even if I disconnect the light fixture completely there is still only 30 V.   It seems to me that it must be a problem with the wiring.  My attic does provide some (difficult) access to the wiring, but I am not sure where to start looking for the problem or what to look for. Can anyone offer some suggestions?


User temp AppData error while publishing project in VisualStudio 2012

I imported an UserControl into my page:  <%@ Register Src="~/Forms/Admin/UserControls/wucAutoCompleteCity.ascx" TagName="wucAutoCompleteCity" TagPrefix="uc12" %>   and I am using it like this              <li>                <uc12:wucAutoCompleteCity id="wucAutoCompleteCity1" runat="server" visible="true" />             </li>   But when I try to publish the solution, Visual Studio 2012 is throwing this error     Type 'Cienworks.View.wucAutoCompleteCity ' exists in both   'c:\Users\Lucasp\AppData\Local\Temp\Temporary ASP.NET   Files\mysolution\cc396d72\280f05fc\App_Web_wucautocompletecity.ascx.33f5864.dll'   and 'c:\Users\Lucasp\AppData\Local\Temp\Temporary ASP.NET   Files\mysolution\cc396d72\280f05fc\App_Web_imw4lcx2.dll'   I have no ideia what is causing it. Any suggestions?


How to install packages which I am not able to find in TeX Live Utility?

Using  on TeXworks, I get an error. The code is an output from pandoc converting from markdown to tex.  I checked if I have all the packages with TeX Live Utility. I found the followings.   When I check fontenc I found that I have greek-fontenc package. I am not able find lmodern and fixltx2e For inputenc, I have greek-inputenc I am not able find longtable in TeX Live Utility I have all other packages.   Now my question is how to install packages which I could not find it in TeX Live Utility?  I know  this is a newbie question, but I appreciate your help.  Thanks in advance.   ====  Error  fontenc.sty 100 I can't find file `ecrm1000'. <*> ...ljfour; mag:=1; nonstopmode; input ecrm1000  Please type another input file name ! Emergency stop. <*> ...ljfour; mag:=1; nonstopmode; input ecrm1000  Transcript written on mfput.log. grep: ecrm1000.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ecrm1000' failed to make ecrm1000.tfm. kpathsea: Appending font creation commands to missfont.log.  ! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not fou nd. <to be read again>                     relax  l.100 \fontencoding\encodingdefault\selectfont


Should unregistered users be prevented from posting questions on Stack Overflow?

Given:   We are getting lots of problems with the quality of questions from new users. The unwillingness to register shows a lack of commitment to the site and hence is a good indication that the person will not spend the time learning how to post good questions. We are getting a lot more questions than we need, it could be claimed that Stack Overflow is becoming less useful due to the volume of questions.   Should unregistered users only be allowed to answer questions and not post questions?  In the old days Stack Overflow benefited from lots of questions being asked, so it made sense to make it easy for anyone to ask questions,  I no longer see the bandit from increasing the already great volume of questions.  (The site I use other the Stack Overflow, don’t seem to be getter the same problems with the volume of poor questions.)    The way I think of it is when a nation is first formed, anyone including convicts are let in, but once something worthwhile has been built, a system is put in place to only allow in people that are a net benefit to the current residence.   I am now thinking that a lot of the new unregister users that are asking questions will never become a net benefit to the current committed users.


Finder Window List Mode not displaying properly

I'm having a problem with, as far as I can tell a single folder (~/Pictures) in the Finder's List View mode. When I navigate to other folders they display normally, it is only my Pictures folder that is wrong.  The issues are:   The header is not being displayed in the standard way The folders do not have a disclosure triangle to see its contents.   I have tried deleting the folder's .DS_Store and .localized files and restarting the Finder, repairing Disk Permissions with Disk Utility, and finally cold booting the machine.   I'm at a loss as to what could be causing this.  My machine is a MacBookPro w/Retina running 10.8.4.    Notice that the column headers are being drawn differently and the disclosure triangle to the left of the folder names is missing.


LM311 comparator : strange output levels

I have the following circuit, where I put R52 = R53 = 2700 Ohms :    Triggering levels are of 1V and 2V approximately according to my computations, that is okay according to the following figure showing input in green and output in blue :    But what I find really strange is that the maximum voltage output is around 3.3V and not at 5V. How would you explain that ? And last detail : how would you explain that the output is not exactly at 0V when the input is high?  Thank you very much for your help.


I am using bluestacks to install ubuntu 16.04.2 LTS but its not working. What should I do?

I don't have any option to install it through USB Flash Drive or through DVD.


The practice of completely changing a post title, is it OK?

The text of one of my posts' titles was completely changed. From "Asking the wrong questions vs. asking at the wrong site" to "Why we don't accept shopping questions". (The latter could be a little different because I changed the title back and can't find the edits)  The meaning and purpose of the post was destroyed. I find this practice from a few users irresponsible, demeaning and immoral. While I did post my disappointment about the reasons one my posts was closed and the topic was related to shopping, I don't find a reason to change a stand alone post to correlate with something I previously mentioned. The post below was all about asking the right question. It had nothing to do with shopping.  What do you think of titles being completely replaced with no what the poster had intended? Regardless of some editor thinks.


multithreading and sending through sockets

Say an object, an ArrayList<String> is shared by multiple threads running inside an outer class (the runnable classes are inner classes of the larger class - a server). These threads represent seperate clients which respectively have a thread dedicated to handle their outputs and inputs to the server. Now, as a thread is created, within the thread, adds/removes a value in this ArrayList<String> which stores their username when they join/exit the client program. However, when I send this ArrayList<String> across to each of the client sockets, each client gets the arraylist they got before (when they first joined) rather than a new updated list (when new people join). E.g. if John joins first then his list will always comprise of only John, and if Cath joins next then she only gets a list of John, Cath and no more.  My server side program has this method which sends the list.  public void sendOnlineList() {     try{          for(ObjectOutputStream os: clientStreams) { //ObjectOutputStream for each client socket             System.out.println("sending: " + printAll(currentOnline));             os.writeObject(currentOnline);         }     }catch(IOException e) {e.printStackTrace();}      }   The client side program has a thread to constantly receive messages when needed.  public class ServReader implements Runnable {     @SuppressWarnings("unchecked")     public void run() {         try {             Object line = null;              while((line=is.readObject())!=null) {                  synchronized(this) {                 if(line instanceof String) { //normal chat message                     line = (String) line;                     System.out.println(line);                     text.append(line + "\n"); //irrelevant stuff using the string                 } else if(line instanceof ArrayList<?>) { //list of users                     System.out.println("found list");                     printAll((ArrayList<String>) line);                     setOnline((ArrayList<String>) line); //irrelevant stuff using the list                 }                 }              }             /*String line = null;             while((line=is.readLine())!=null) {                 text.append(line+ "\n");                 System.out.println(line);             }*/         } catch(Exception e) {             e.printStackTrace();         }     } }   the server side program outputs to the console  sending: John, Cath sending: John, Cath   however the surprising part is that the client side programs outputs to the console  John:  found list John,   Cath:  found list John, Cath,   I want to send the same list across to all clients but somehow, the same list is sent to both clients from the server, but each client receives a different list; surely the object isn't changing as it gets sent... what in this code is wrong?


Dropping dummies from regression by putting them into the reference group

I have the following result of a logistic regression:                                    Estimate Std. Error z value Pr(>|z|)     (Intercept)                        3.34260    0.41116   8.130 4.30e-16 *** AgeGr18-22                        -0.61845    0.28974  -2.135 0.032799 *   AgeGr28-30                        -0.46384    0.27474  -1.688 0.091361 .   AgeGr31-35                         0.38351    0.28102   1.365 0.172352     AgeGr36-40                        -0.24538    0.25113  -0.977 0.328525     AgeGr41-50                         0.11316    0.23918   0.473 0.636140     AgeGr51-high                       0.49277    0.29597   1.665 0.095924 .   AutomobileGr1                      0.61832    0.17570   3.519 0.000433 *** AutomobileGr2-high                -0.07095    0.37665  -0.188 0.850590       The dummy "AutomobileGr2-high" (having 2 or more automobiles) have a P-value 0.85 and I would like to drop it from the model.  Would it make a difference if I just drop the dummy (i.e. create a regression formula without this group) or if I put it into the reference group (our reference group in the example above is AutomobileGr0 - ppl that do not have a car, hence the combined reference group will be AutombileGr0 & AutombileGr>=2 -> ppl either without a car or with at least 2).  From what I read so far () it should make a difference on the intercept hence on the whole resulting target log odds.  What approach is suggested as best practice (or what are the pros and cons of the two approaches)?


i have problem with my code which prints additional number

i have problem with my code. the program should print tab backwards but it gives also additional numbers example: 7  6  8  7  2  1    6 1 2 7 8 6 7  #include<iostream> #include<ctime>  int main() {     using namespace std;     srand(time(nullptr));          int tab[6];          for (int i = 0; i < 6; i++)     {         tab[i] = rand() % 8 + 1;         cout << " " << " " << tab[i];     }          cout << "   ";     for (int i = 6; i >= 0; i--)     {         cout << " " << tab[i];     }


RSA: deduce the public key from message & signed message

In RSA, is deducing the public key from the (message, signed message) pair possible? If so, how can it be done?


I'd like some help on proving the following inequality $$ \prod_{i=1}^{n}\left(1+a_{i}\right) \ge \bigg(1 + \prod_{i=1}^{n} a_{i}^{1/n}\bigg)^{n}, $$ given that $ a_{i} > 0\,\, \forall\, i\in\{1,2,\cdots,n\} $.  I tried to use AM-GM inequality on the right-hand side, but without success. Any help would be appreciated.


Trying to dual boot Windows 10 and Ubuntu with UNetbootin

So I used UNetbootin to install a Live Ubuntu 16.04 on my hard disk. When booting up it keeps saying this: /dev/sr0:- no medium found It also says: unable to find a medium containing a live file system Please help. Thanks!


Why does my sour-dough bread have a tail?

I just baked this bread using sour dough. Everything looks fine until I take it out of the owen. Pre-oven it looks like the first picture, but when I take it out it got a "tail" (see red circle in second picuture). The texture seems to be fine. What am I doing wrong?  Before owen:   After owen:   Sliced:


How to prove that $2^{2n + 1} - 9n^2 + 3n - 2$ is divisible by $54$ for $n \in \mathbb{N} \cup \{0\}$?

I have a question. I must prove with induction that $$\displaystyle 2^{2n+1} - 9n^{2} + 3n - 2$$ is divisible by $54$. My attempt was that if I plug in $n = 0$, I get result of $0$. Then I want to show this sentence for $n + 1$: $2^{2(n+1) + 1} - 9(n + 1)^2 + 3(n + 1) - 2 = 2^{2n + 3} - 9n^2 - 18n - 9 + 3n + 3 - 2 = (2^{2n + 1} \cdot 4 - 9n^2 + 3n - 2 ) - 18n - 6 = (3 \cdot 2^{2n + 1} - 18n - 6) + \left(2^{2n + 1} - 9n^{2} + 3n - 2\right)$. Here I stopped, because I don't know how to manipulate the prove. Can anyone help me?


How to show that there do not exist bounded operators $A$ and $B$ such that $AB-BA=I$

Suppose $X$ is a Banach space, $A$ and $B$  are bounded operators on $X$. Then how to show that it's impossible to have  $$AB-BA=I$$ If $A$  and $B$ are matrix, then we just take trace of both side to obtain contradiction,since  $trAB=trBA$. Furthermore, this can only hold for bounded operators since if allow  $A$  and $B$ to be unbounded, we have $[\frac{d}{dx},x]=I$   Thanks in advance.


I have two time variables in bash. I am trying to find a way to get the time difference between the two.  Yes, I have read many many many examples on the net, but they do not seem to have a "simple" solution. Rather, it seems as if time arithmetic in Bash was an "afterthought".  Here are some of the links I have read:       It would appear as if there is no "elegant" solution for it (my opinion).  So my variables are like the following:      TIME_START="date +%H:%M:%S //Start of script     // The script     TIME_END="date +%H:%M:%S //End of script   So I am trying to get the elapsed time. The script can take up to 3 hours to execute (interacting with sensors and hardware etc.). The TIME_START variable gets inserted into MySQL and later retrieved by Bash (when the script ends) in order to do the "elapsed time" calculation.  I have read somewhere that the following code would work, but it did not:     diff=$(expr $TIME_END - $TIME_START)    echo $diff   Any ideas?  Thank you  Danny


Why don't absorption and emission lines cancel out in our Sun?

I was looking at  on why  and emission lines don't cancel out:      An experiment shining light on the material and looking at the   reflected spectrum will see absorption lines at those frequencies,   because the relaxation of the excited electrons will emit back   radiation all around randomly, whereas the reflected spectrum is at a   specific angle.   However it is not totally convincing to me. The photons that get emitted towards the center of the Sun (by the electrons in higher energy states that absorbed a photon earlier) would get absorbed again when they hit a different electron (and then re-emitted) and would eventually make it out. So why don't absorption and emission lines cancel out in our Sun?


I've been playing Minecraft for a little over a year now and I finally got a portal to the Nether. I've been in the Nether for a while, but now I'm lost and trying to find my way back before I starve, so I've pretty much used up my resources.   So my question is: if I break my portal (in the overworld) and then fix and relight it, will the corresponding portal in the Nether spawn in the same spot, or somewhere else?


Book where planets are on different levels of development

Every few years or so, I go through this fruitless attempt to find a sci fi book we had for required reading in elementary school. I still have friends from back then and not one person can remember the name. I swear it was called "Journey to the Stars" but alas, nothing with that title is the correct book. I'm not even sure if it was a book or a novel; our teacher handed them out in laminated, bound form.  Anyway, the basic premise is: there are different planets and each planet in the galaxy is at a different stage.   There's planets that are very underdeveloped which is the first stage. The second stage of planets are super technologically advanced but because of that, they are about to destroy themselves with the very technology that they arrogantly brag about and their advanced weaponry. The last stage of planets are far more advanced than technology: they have evolved to use telekinesis and can move objects with their minds. they have already seen the worst that technology can do but the survivors evolved into these great thinkers.   In this story, a girl from the most advanced planet meets a boy from the technology planet and it's forbidden for them to be friends. I wanna say the girls name is Alanna/Alana and the boy is Jordan? I could be completely off on the names though. Does anyone have any idea what I'm talking about?


I have multiple views with pagers on same page. But all of the pagers using the same GET argument "page", so when user chooses a page in first pager, all of the pagers changing their state to those page. How can I make things work? Drupal 6, Views 2.


How do I best handle dynamic multi-dimensional arrays in C/C++?

What is the accepted/most commonly used way to manipulate dynamic (with all dimensions not known until runtime) multi-dimensional arrays in C and/or C++.  I'm trying to find the cleanest way to accomplish what this Java code does:  public static void main(String[] args){  Scanner sc=new Scanner(System.in);  int rows=sc.nextInt();  int cols=sc.nextInt();  int[][] data=new int[rows][cols];  manipulate(data); }  public static void manipulate(int[][] data){    for(int i=0;i<data.length;i++)    for(int j=0;j<data[0].length.j++){          System.out.print(data[i][j]);           }     }   (reads from std_in just to clarify that dimensions aren't known until runtime).  Edit:I noticed that this question is pretty popular even though it's pretty old.  I don't actually agree with the top voted answer.   I think the best choice for C is to use a single-dimensional array as Guge said below "You can alloc rowscolssizeof(int) and access it by table[row*cols+col].".  There is a number of choices with C++, if you really like boost or stl then the answers below might be preferable, but the simplest and probably fastest choice is to use a single dimensional array as in C.  Another viable choice in C and C++ if you want the [][] syntax is lillq's answer down at the bottom is manually building the array with lots of malloc's.


Why have SO users with more reputation so few questions?

I have seen top 100 people with the highest reputation and the users with reputation > 10K. Surprisingly, I found those people have asked very few questions: 10, 20 or 30.  How do they solve their problems? Like every programmer they too should get stuck at some point of time.  Note : It will be helpful to get answers from users having reputation > 10K.


Combining specific elements within a list

I'm trying to convert a user inputted string into a list of 2 digit numbers. When the user enters a string, say "1234" and I convert that into a list, it becomes [1,2,3,4]. What I need it to become is [12,34] and so on. How would one go about doing this?  print("Please insert string.")  # User enters "12345678" string1 = input() list1 = list(string1)  # "12345678" becomes [1,2,3,4,5,6,7,8] if not any(char.isdigit() for char in string1):     print("Submission must be numbers only.") else:     magically turn list1 into 2digitlist print(2digitlist) # Desired output: [12,34,56,78]   Hopefully there's a solution to this but I certainly have no clue what it is. That's what I get for trying to do something complex even though I have little experience I suppose. Thanks in advance.


Lightweight (plug and play) machine resource monitoring utility?

I need to monitor my Ubuntu Linux server performance, prior to diving into nagios / zabbix type of "enterprise server monitoring" solutions I would prefer something more lightweight.  My requirements are simple:   Works out of the box for basic metrics (memory, io, cpu, network, disk-space and co...) Has web interface which shows graphs   The list of nice to have goes deep:   Has embedded http server (if it would be a ruby / python solution it would be awesome) Has real time updating page Can show what happened a week ago / month ago / custom range Supports monitoring of software components: number of open file descriptors, jvm GC activity, opened TCP sessions in the last hour (and co.) Has statistics    I've looked into ganglia, munin and they require Apache to be running the web front end.  -- Edit:  Effectively I would be happy for something that can collect and graph sysstat or dstat in rrd format and make it accessible as a web page


Why can't we overload methods based on generic type of list

I know that because of type erasure, all generic parameters are erased during compilation so if we have the following methods  public void addToList(List<Orange> list){} public void addToList(List<Apple> list){}   They will both end up looking somewhat like this after type erasure   public void addToList(List list){}   And this is all understandable until you take into consideration that the compiler won't let you do this  public static void addToList(List<Orange> list){} public static void main(String args[]){       List<Apple> list = new Arraylist<>();       addToList(list); //Error: passing a list of apples to a list of oranges }   If we attempt to do something like this, the compiler won't let us, which means that the compiler knows the generic type of our lists. So I'm confused as to why the compiler is more than willing to throw errors at us, but pretends like it can't tell the difference between two overloaded methods?


Inspired by  I feel we should have a canonical place to deal with these. While not strictly travel related, the world of travel where ordinary people need to interact with the profoundly hostile and alien world of immigration authorities creates a fantastic opportunity for certain entities promising to make this interaction more smooth. The bewildering variety of accommodations and the seemingly random nature of airfares also creates such opportunities.


Can one create a video from sequence of meshes that you already have using blender?

If I have a sequence of .obj (or any other readable format) files created from my own simulation code (say cloth simulation), can I use the rendering capabilities of blender to generate a video?   Is there a way to set the material properties for frame 1 and use the same or rest of the frames while the corresponding meshes are imported afresh from that ones I provide?


Are casters aware of when their summons are dismissed by any effect?

If a caster has summoned a monster or creature, are they aware when it gets dismissed either by magic like dispel magic or if its "killed" by damage? Not what caused it, just that the summon(s) is gone?


Ways to compute $\sum\limits_{i=1}^{\sqrt n}\sqrt i$

I have the following sum $\sum\limits_{i=1}^{\lceil \sqrt n \rceil}\sqrt i$.  This sum is $\leq n$, but what is a good bound and what is the method to compute this type of sums?


I sometimes see weird characters on some websites instead of what they're meant to display. I've attached an image below as an example. In IE the site displays correctly but on Chrome there are weird characters instead.  My encoding settings on Chrome are set to Auto detect/Unicode UTF-8. I've tried reinstalling all my Windows default fonts too but no success.  Does anyone have a fix for this? Most solutions I've looked at haven't been successful


Volume of the solid generated by revolving the region R enclosed by the curve - Disk and Shell method

Find the volume of the solid generated by revolving the region $R$ enclosed by the curve $y=x^3$, the $x$-axis and the line $x=1$.  (About the line $y=1$ using the disk and shell method.)


cant get mt7601u to work on lubuntu 20.04

So I use lubuntu 20.04 And I'm new... like i installed it just today. Everything is fine... Everything... Except this wifi adapter... when I connect it to USB port it shows it with name and everything but it won't use it as wifi adapter... it just shows it as an usb in lsusb... I've been working on it since I've installed it... There were similar problems... but those won't work for me... dunno why Like I tested art567/mt7601usta... Didn't work... Tried the ppa thopiekar/mt7601usta... Nothing... I rally need help . . And there's something else... can't use "change keyboard  input keys" changed it 100 times and it reset it self to none


is it possible to escape character within single quotes in ruby?

I just faced this question in interview. Is it possible to escape character within single quotes in ruby?  The confusion is in following code  puts '\\'   # Output: \ puts '\n'   # Output: \n   It seems that backword slash is escaped but the newline character isn't.  I am aware of  but I am not asking about difference between single and double quote. I am asking about whether it's possible to escape characters in single quotes or not? And why only backslash is allowed to escape?


Award bounty indicator appears on deleted answers

Minor UI glitch: The button to award a bounty is active on a deleted answer. Clicking on it results in the "THIS CANNOT BE UNDONE!" alert.         After confirming, I get the following error though:        So not a fatal bug, but still better not show the +50 next to deleted posts.


Another simple series convergence question: $\sum\limits_{n=3}^\infty \frac1{n (\ln n)\ln(\ln n)}$

I'm being asked to determine if $\displaystyle\sum\limits_{n=3}^\infty \frac1{n (\ln n)\ln(\ln n)}$ converges. So, using Cauchy's Condensation Test, I reduced the problem to one of determining the convergence of $\displaystyle\sum\limits_{n=3}^\infty\frac 1{n\ln (n\ln 2)}$. Am I on the right path, and how do I proceed from here?


Proving that a number with digits 1...9 in some order, ending in 5, is not a perfect square.

If "x" is a 9 digit number , which contains digits from 1 to 9 which ends in 5 . Prove that it can't be a perfect square ( digits are not to be repeated).  Please suggest the solution of this question.


How to keep a changed python working directory

I'm looking to keep a change in my python working directory; however, when I change the directory with the following code:  import os os.chdir('Path')   and exit out of python, the working directory reverts back to the default while attempting to run a script within this working directory.  How do I keep the changed working directory? I'm using a Mac (if that makes a difference). Any help is greatly appreciated for this novice looking to self teach python.


Question on how to normalize regression coefficient

Not sure if normalize is the correct word to use here, but I will try my best to illustrate what I am trying to ask. The estimator used here is least squares.  Suppose you have $y=\beta_0+\beta_1x_1$, you can center it around the mean by $y=\beta_0'+\beta_1x_1'$ where $\beta_0'=\beta_0+\beta_1\bar x_1$ and $x_1'=x-\bar x$, so that $\beta_0'$ no longer has any influence on estimating $\beta_1$.  By this I mean $\hat\beta_1$ in $y=\beta_1x_1'$ is equivalent to $\hat\beta_1$ in $y=\beta_0+\beta_1x_1$. We have reduced equation for easier least square calculation.  How do you apply this method in general? Now I have the model $y=\beta_1e^{x_1t}+\beta_2e^{x_2t}$, I am trying to reduce it to $y=\beta_1x'$.


Is this the generation that will become immortal?

In this short story, a young woman is told by her professor that medical and cybernetic technology are improving so rapidly that she may very well live forever. As the story proceeds in a series of vignettes through time, she gets her enhancements and becomes vastly more capable than before. Long after her professor has died, she remembers him fondly and creates an emulation of him for conversation. Eventually she sets the emulation aside because he is too limited, and continues her long life knowing that she will never open it again.   I read this story in an English-language anthology published probably in the 1990s or later.


How do I get shortcode, widget and template tag CSS to load in the head only as required?

I have a shortcode, widget and template tag that need to load CSS. I am registering in init, and enqueueing as required.  The only problem is, it is adding the CSS loader at the bottom of the page, not in the head, so there can be an ugly lag where the content of the shortcode/widget/template tag is unstyled.  Given these can appear anyone in the flow of the page - and may not even appear - there's no way to predict before the page begins to render. It just has to wait til it encounters them, and then it's too late to hook the enqueue into the wp_head hook.  I can't think how it could be possible to avoid this, so at the moment hide the content until its css loads.  However would be great if someone knows some magic trick!  thanks


How to import Ordnance Survery raster layer to ArcGIS Desktop?

I have downloaded raster map data from ONS, the data has come in the form of two files... one is full of  .tlw files and the other is full of .tab files...   How do I import it into a raster layer to ArcCatalog?


I plugged in the Y point e^(-x/3) into the equation (1/2)XY, found the derivate and set it equal to zero.  But I am only getting one value of X=3 (max). How do I get the min?


What happens to a familiar if it’s wizard dies?

High level wizard has a high level familiar. Wizard dies.   What happens to the familiar? Does it still have all the stat boosts and gained abilities? Does it revert to being a normal animal?


Add the ability to add "top questions" to Careers 2.0 Profile

Allow me to add my own "top questions" too! I know, I know, the site should be more heavily weighted to answering, but sometimes, how and what people ask is important too! For example I recently asked  which I think is a fairly good question. Clearly I'm going to avoid questions where I've asked something very simple, but I know of a user or two who are implementing their own C standard libraries and the depth of those questions is important/ought to be on show.  Of course, the argument I can just look at their profile holds, but that awesome q/a might have been from a year or so ago in which case finding it is difficult.


I've tried to create something like this:   I made frame and simple box on top of the frame but had a problem of creating natural wooden edges with sculpting but run into this:    Can somebody show how to do that with sculpting or deform modifier (as I remember there was quite useful box deform modifier in 3ds Max)?  PS I tried, Triangulate, Subdivide Surface and Dynamic Topology. Just cant understand what I am doing wrong.