We know to take a noiseless night landscape/cityscape, we need use a tripod and set a low ISO. For example in a scene I use ISO 100, aperture f/8.0 and exposure time 30 seconds, I get a night cityscape bright enough and very clean.  My question is, in the same scene described above, if I want to take a portrait and have the same image quality for the background cityscape, how to achieve this ? I can use flash, tripod. Don't forget when focus on the person's face and want have a background in focus, I need use aperture f/8.0 or smaller.  I know slow sync flash, but it will set something like shutter 5 seconds and ISO 800, so the background is not as good as the photo taken with ISO100 and the people maybe blurred a little.  Or some ways in post processing ?
How can I take a photo which shows the skyline and the person who is standing around six feet away from the camera with proper lighting at night?   For taking just the skyline I've used long shutter speed and it turned out great, but when including a person on it, the person becomes  blurry because it's impossible for a person to remain static for that long.   Ps.  I do have two flashes, 35mm prime lens as well as 18-300mm zoom lenses as well. The camera I use is Nikon D7200.
Why does the default Object.toString() include the hashcode? Trying to find a book about kids with 'sunguns' revolting against alien overlords I'm trying to identify a book (or possibly a series, as I seem to recall reading a sequel which still left the story unfinished).  I read the book or books in the early 90's and had picked them up from a jumble sale at school, so they were probably published in the 80's or possibly 70's. I guess you would class them as YA fiction, though that wasn't really such a thing back then...  As I recall the story began with a slave transport craft crash landing on an alien world, with only a handful of teenage and pre-teen humans surviving. They scraped together what they could, including a couple of functional 'sunguns' (basically, laser rifles) and began a low level guerilla rebellion against the alien race that were using humanity as slave labour on the planet.  I've googled 'sungun' repeatedly, thinking that this should be the best way of finding the story but the references that come up are all for other stories or conspiracy technologies.  Anyone got any vague recollections of a book or series like this? Why is it that we have to use the gerund form for the first example? I have been told that it is not grammatical to use the infinitive form.  For some verbs, it's okay:     I wanted to study English.   I had to study English.   I needed to study English.   I tried to study English.   I traveled to study English.   But, for some verbs, it's incorrect:     I ended up to study English.     Why is that the case? Is  free for business platforms?  Has Ubuntu changed its conditions about using the OS for profit purposes? I'm on SO pretty much every day researching something to do with programming, and over the last month or two, I find I'm growing frustrated and a little disgusted at how many interesting questions have been closed as "not a good fit" or "too subjective".  I think there is a confusion between "subjective" and "calls for judgement". To me one of the most valuable things about SO is the tremendous breadth and depth of experience of the members, and experience translates into smart decisions and advice, and that advice cannot always be asked for, or expressed in terms of, bald facts and data.  It's going to be 'subjective'.  I don't think SO should be Wikipedia. I think that if I could ask a question to a group of skilled programmers sitting around a table at lunch, and get interesting, valuable answers, then I don't care whether the question or the answers are 'subjective', I think that question should equally well be fair game for Stack Overflow.  I would like to see a mechanism whereby people who vote to close a question lose reputation when somebody expresses interest in that question or its responses.  How can I, or can I, influence this aspect of SO? todonotes: How to make multiple listoftodos? In this MWE, I made two commands to highlight parts of the text as a reviewer comment, while the comments are colored uniquely to indicate the author whose comment is typeset.  If I want to make two listoftodos, each has the comments entries of one author, how can it be done?  \documentclass{article} \usepackage{hyperref,lipsum}  \usepackage[textwidth=2.5cm,colorinlistoftodos]{todonotes} \setlength{\marginparwidth}{2.5cm}  \newcommand\stR[2]{% 1st reviewer comment     \todo[%     author=1st Reviewer,noline,caption={1st Reviewer #1 Comment},color=blue!20%     ]%     {#1 Comment}{\color{blue}{\bfseries#2}}}  \newcommand\ndR[2]{% 2nd reviewer comment     \todo[%     author=2nd Reviewer,noline,caption={2nd Reviewer #1 Comment},color=red!50!white%     ]%     {#1 Comment}{\color{red}{\bfseries#2}}}  \begin{document} \listoftodos[Reviewers Comments] \section{Section} Text \stR{2nd}{2nd comment of the 1st reviewer} another text\vspace{\baselineskip} \lipsum[1]\vspace{\baselineskip} Some text \ndR{1st}{1st comment of the 2nd reviewer} continue text \end{document} I have an iPhone and run Ubuntu on all of my personal computers. Since I did not want to keep a separate partition with Windows on it for the sole purpose of running iTunes, I attempted to install It using Wine.   I installed Wine 1.4 from the Software Center and installed iTunes 10.6.3. When I tried to run it I got a slew of error messages. I hopped over to google where it was suggested that I install it through PlayOnLinux. I did so with the same result. Further googling revealed that iTunes 10.6.x is confirmed to work with Wine 1.5.1 and up.   I installed Wine 1.5.1 following the instructions I found and was unable to get it to open. I did the same with 1.5.9 with the same results. I opened the Package Manager and installed the Wine 1.5.9 packages through it, and it appears to have installed properly.   When trying to install iTunes I got he error "This iTunes installer requires Windows Vista 64 bit or later". Realizing that Wine uses XP as a default I ran winecfg and changed it to Windows 7. This changed nothing and I tried changing it through winetricks to no avail. I even changed it to Vista with the same results.   Does anyone know what is going wrong here and how to fix it? Thanks What do Pentax and Sigma DSLRs offer that differs from Canon and Nikon? We have a question and answers outlining the . I'm interested in the other DSLR makers, and how the cameras they make compare in terms of significant features, system design philosophy, and unique or interesting photographic capabilities enabled or made easier by these cameras. Likewise, what such things are not handled as well?  Take "the big two have more market share" and the associated advantages of availability, accessibility, and third-party support and documentation .  I'm not interested here in compact cameras, interchangeable-lens cameras with electronic viewfinders, or in rangefinders. (If you're interested in that, though, see )  P.S.: Differences in lens lineups are covered at Do the integral forms of Maxwell's Equations have limited applicability because of retardation? In the usual bookwork treatment, it is easy to show that the differential and integral forms of Maxwell's equations are equivalent using Gauss's and Stokes's theorems. I have always thought that neither version is more fundamental than the other and each has its place in solving problems. (See also  )  But: I have a conceptual problem with applying the integral forms of these equations in cases where there is time-dependence and the "size" of the loop or area means there is a significant light travel time across the regions considered compared with the timescale on which fields vary.  e.g. Suppose there is a time-varying current in a wire $I(t)$ and I wish to find the fields a long way from the wire. My first instinct is that this ought to be solved using the inhomogeneous wave equations to give A- and V-fields that are dependent on the retarded time - hence leading to the E- and B-fields.  But what about using Ampere's law in integral form? What is the limit of its validity? If we write $$ \oint \vec{B}(r,t)\cdot d\vec{l} = \mu_0 I(t) + \mu_0 \int \epsilon_0 \frac{\partial \vec{E}(r,t)}{\partial t} \cdot d\vec{A}$$ then presumably the $t$ that is defined on each side of the equation cannot be the same, since a change in $I$ at time $t$, presumably leads to a change in $B(r)$ at a time $t + r/c$? I suppose one does not care about this so long as the timescale for a current change is $\gg r/c$.  So my question is: Are the integral forms of Maxwell's equations inherently limited by this approximation, or is there a way of formulating them so that they take account of the finite size of a region in cases where the fields are time-variable? Do the beacon lighters really live on top of the mountains? Following this image I found online:    Do the beacon lighters really live on top of the mountains?  It seems really cold on top of some of these mountains and there are no villages or whatsoever. Why do we say that the Earth moves around the Sun? How to trick a command into thinking its output is going to a terminal Given a command that changes its behaviour when its output is going to a terminal (e.g. produce coloured output), how can that output be redirected in a pipeline while preserving the changed behaviour?  There must be a utility for that, which I am not aware of.  Some commands, like grep --color=always, have option flags to force the behaviour, but the question is how to work around programs that rely solely on testing their output file descriptor.  If it matters, my shell is bash on Linux. Analysis Question Involving Real Numbers If $(X_n)$ is i.i.d. and $ \frac1n\sum\limits_{k=1}^{n} {X_k}\to Y$ almost surely then $X_1$ is integrable (converse of SLLN) Let $(\Omega,\mathcal F,P)$ be a finite measure space.  Let $X_n:\Omega \rightarrow \mathbb R$ be a sequence of iid r.v's  I need to prove that if:  $ n^{-1}\sum _{k=1}^{n} {X_k} $ converges almost surely to $Y$ then all $X_k$ have expectation.  If I understand correctly then $X_k$ has expectations means $X_k$ is in $\mathcal L^1(\Omega)$.  And I know that on finite measure space Converging in expectations is converging in $\mathcal L^1(\Omega)$ and it's stronger than almost sure convergence.  And I know that from linearity of expectation even if one of the sequence is not in $\mathcal L^1(\Omega)$ then $Y$ is not in $\mathcal L^1(\Omega)$.  How do I continue? I have a Unicode string in Python, and I would like to remove all the accents (diacritics). I found on the web an elegant way to do this (in Java):  convert the Unicode string to its long normalized form (with a separate character for letters and diacritics) remove all the characters whose Unicode type is &quot;diacritic&quot;.  Do I need to install a library such as pyICU or is this possible with just the Python standard library?  And what about python 3? Important note: I would like to avoid code with an explicit mapping from accented characters to their non-accented counterpart. Attack moving or Attack Canceling I watch streams sometimes and i see the high elo Ranged AD move between each shot. Do they gain anything with this? And if so whats a good way to practice it. Can I have too many mods? I found a lot of mods that make thinks lighter, and add mark and recall, and a basement I like. They are all on Steam, and what I want to know is if I can have too many? Will they all work together? Or should I just leave them alone? Javascript: negative lookbehind equivalent? Is there a way to achieve the equivalent of a  in javascript regular expressions?  I need to match a string that does not start with a specific set of characters.  It seems I am unable to find a regex that does this without failing if the matched part is found at the beginning of the string.  Negative lookbehinds seem to be the only answer, but javascript doesn't have one.  EDIT: This is the regex that I would like to work, but it doesn't:  (?&lt;!([abcdefg]))m  So it would match the 'm' in 'jim' or 'm', but not 'jam' How to Recover truncate table in MySQL? I am getting the "wrong input table name" when use TRUNCATE as following:  TRUNCATE `stats`   The table should bans.  How to recover stats table?  I am using CentOS 6, and MySQL-Server. I'm trying to set up file transfer via FileZilla and it doesn't seem to matter what details I put in, I always get the following error:     Status: Connection attempt failed with "ECONNREFUSED - Connection   refused by server". Error: Could not connect to server   My Dad has tried on his computer (with FileZilla on Windows) and it connects and everything is fine.. When I try on mine with all the same details that he put in, it comes up with that error.  I read that a firewall might be blocking it so I double checked and my firewall through system preferences and it is off.  Anybody know why this might be???  Additional info:  Macbook Pro running OS X El Capitan version 10.11.6  FileZilla version 3.23.0.2