c# console read last written line
Read from location on console C#
Does the diameter of the aperture increase with increases in the focal length with constant F-number(F-stops)? What I have learned from the definition of F-number is that;  The F-number (sometimes also called focal ratio, f-ratio, f-stop, or relative aperture) of a lens is the ratio of its focal length divided by the diameter of the aperture. And F-numbers are expressed as f/1, f/1.4, f/2, f/2.8, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32 etc. Hence F-number (F-stop) depends on two variables; that are diameter of aperture and focal length of the lens.  Aperture diameter/size is one of the component which governs the amount of light that enters to the camera. As far as I known, at different F-stops values (f/1, f/1.4, f/2, f/2.8, f/4, f/5.6, f/8, f/11, f/16, f/22, f/32) the amount of light allowed to enter the camera is fixed and are with either 1/2 or 1/3 stop increment.  This concept is very easy to understand, in case of prime lenses (with a  fixed focal length and variable aperture), where F-stop is inversely proportional to the aperture diameter. For lower F-number (F-stop) the aperture would be bigger allowing more light and for higher Hence F-number (F-stop) the aperture would be smaller allowing less light in to the camera.  F-numbers (F-stops) have been evolved to allow a definite/fixed amount of light in to the camera (As far as I known). In case of zoom lens (with variable aperture and variable focal length), I am not able to understand the what would be the relationship between F-stop and the diameter/area of aperture at different focal length.  I have two related questions  1 . In case of zoom lens,  for example, Canon EF-S 18-135mm f/3.5-5.6  (with variable aperture and variable focal length). At any particular F-number(F-stop), for example at f/5.6 , does the diameter of the aperture increase with increases in the focal length? I mean,  Is the diameter of the aperture at  18mm and f/5.6 would be smaller than that of at 135 mm and f/5.6?   In the above case (i.e. Canon EF-S 18-135mm f/3.5-5.6 ), What is amount of light that would enter the camera at 18mm and f/5.6 compared to that of at 135 mm and f/5.6? Will the amount of lights be same or different? My first issue was when I tried to apt-get update or apt-get upgrade. On upgrade I get the following error:  You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: linux-image-server : Depends: linux-image-3.2.0-27-generic but it is not installed E: Unmet dependencies. Try using -f.   I tried running apt-get install -f and this was the output(after saying yes on prompt)  (Reading database ... 186183 files and directories currently installed.) Unpacking linux-image-3.2.0-27-generic (from .../linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb) ... Done. dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb (--unpack):  failed in write on buffer copy for backend dpkg-deb during `./boot/System.map-3.2.0-27-generic': No space left on device  No apport report written because the error message indicates a disk full error                                                                           dpkg-deb:    error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-27-generic   /boot/vmlinuz-3.2.0-27-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-27-generic /boot/vmlinuz-3.2.0-27-generic Errors were encountered while processing: /var/cache/apt/archives/linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I tried running apt-get autoremove and it gives me the same error as apt-get upgrade.  When I run df, I get this for /boot:  /dev/sda1                    233191     230297         0 100% /boot   So, I read elsewhere that I should try to purge old kernels. I checked for what kernels I had with:  $ dpkg -l linux-image-\* | grep ^ii ii  linux-image-2.6.38-13-server  2.6.38-13.52  Linux kernel image for version 2.6.38 on x86_64 ii  linux-image-3.0.0-13-server   3.0.0-13.22   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-14-server   3.0.0-14.23   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-15-server   3.0.0-15.26   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-16-server   3.0.0-16.29   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.0.0-17-server   3.0.0-17.30   Linux kernel image for version 3.0.0  on x86_64 ii  linux-image-3.2.0-24-generic  3.2.0-24.39   Linux kernel image for version 3.2.0  on 64 bit x86 SMP ii  linux-image-3.2.0-25-generic  3.2.0-25.40   Linux kernel image for version 3.2.0  on 64 bit x86 SMP ii  linux-image-3.2.0-26-generic  3.2.0-26.41   Linux kernel image for version 3.2.0  on 64 bit x86 SMP   When I try to remove the oldest with this:  $ sudo apt-get purge linux-image-2.6.38-13-server 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: linux-image-server : Depends: linux-image-3.2.0-27-generic but it is not going to be     installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   How can I free up or extend boot without messing up my installation? Should one ask generic or specific question? Let's assume that one has some problems with coding or designing specific project. Should one ask general question about techniques, algorithms, generic problem (anonymising the project references), or should one ask about specific problem in specific problem? Or perhaps something in between?  Example:   generic: Cross-browser implementation of “HTTP Streaming” (push) AJAX pattern specific: How to implement AJAX-y 'incremental blame' view in gitweb (git web interface in Perl)?   If one should ask generic questions, how to anonymise problem? If one should ask specific question, how avoid 'homework' syndrome? I have Solaris 8 OS installed in French.  Is it possible to switch from French to English without reinstalling the OS ? If yes how ?  When locale -a i have this :  POSIX common en_US.UTF-8 C iso_8859_1 en_CA en_CA.ISO8859-1 en_US en_US.ISO8859-1 en_US.ISO8859-15 en_US.ISO8859-15@euro fr_CA fr_CA.ISO8859-1 iso_8859_15 th th_TH th_TH.TIS620   Even when I try to edit /etc/default/init with :  LANG=en_US.ISO8859-15 LC_COLLATE=en_US.ISO8859-15 LC_CTYPE=en_US.ISO8859-15 LC_MESSAGES=en_US.ISO8859-15 LC_MONETARY=en_US.ISO8859-15 LC_NUMERIC=en_US.ISO8859-15 LC_TIME=en_US.ISO8859-15 LC_ALL=en_US.ISO8859-15   and reboot : nothing happens.  To verify the result i always use date and when i reboot : i also have the date in french.  P.S : I have to do this configuration in a computer which isn't here in my office, so i have to this manipulation in a an another computer here in my office and if it works, i'll do it to the other computer.  So the computer here is configured in English and i have to switch it to French. Here is the content of my ~./dt :  C                     errorlog              sessionlogs Desktop               errorlog.old          sessions Trash                 errorlog.older        simulateur.dtwmrc appconfig             help                  startlog appmanager            icons                 startlog.old asr.dtwmrc            outils.dtwmrc         startlog.older bin                   palettes              tmp bookmarks             sdtfonts              types dtwmrc                sdtpcaction.conf      wsmenu en_US.ISO8859-15      sdtpcaction.conf.bak   Thanks Suppose a package provides whatever.service file so certain events (including whatever.socket) cause a daemon to start with a certain configuration.  I want to disable this completely. In particular, I want the old socket and any other unit files that might refer to this service by name to be unable to start the daemon.  Instead, I want to create my own unit files for this daemon with a different .socket unit and different environment variables. I also want my override to automatically take account of possible upstream updates to the original unit file (which my current solution of copying whatever.service as whatever-modified.service and editing it unfortunately does not provide).  If I create the following symlinks and files: /etc/systemd/system/whatever.service → /dev/null /etc/systemd/system/whatever-modified.service → /usr/lib/systemd/system/whatever.service /etc/systemd/system/whatever-modified.service.d/fix.conf  systemd considers the new service to be masked as well and refuses to start it. How to avoid this? I'm looking for a story that was probably written somewhere from the 1940s to the 1960s. I think I read it in an anthology, possibly in the 1970s.  A group of human explorers landed on a planet with primitive aliens, living in hunter-gatherer villages. They hoped to make a profit from trading our goods for—well, I'm not clear on what they wanted from the aliens.  The native people learned the human language before the explorers could learn theirs. Then the natives suddenly started producing technological innovations far beyond what they originally used. I remember that wooden sailing ships suddenly replaced their canoes. All the natives had to do was hear a story once from the explorers before copying the technology in the story.  Finally, the explorers realized that the natives were much, much smarter than us and that Earth faced a serious problem.  I'm fairly certain that it wasn't a Heinlein story, but I remember that it had some qualities similar to his work. How do I recursively create a folder inside another non-existent folder? I want to create this folder: $HOME/a/b/c/d while $HOME/a has not yet been created! Is it possible with one line in Terminal? Delete an old Facebook account Two years ago somebody made a fanpage for our company, but that person doesn't work here anymore. We don't have any login or password. We like to see that account be deleted, please. Cannot locate Ubuntu Software Center via Firefox to open APT links I was playing terraria today, and my friend came and deleted the my world.  Is there a way for me to recover my world? Are there attacks that break collision resistance but not preimage resistance? Modernist Cuisine recommends that for longer sous vide cooking (times greater than 36 hours) that bags are vacuum sealed rather than just using the water displacement method to remove the air from a ziploc bag.  What is the reason for this? Will I be losing something essential if I just use a regular ziploc bag without vacuum sealing? A reflection question about a complex function Includepdf causes an error message from pgfplots externalization I have a file test.pdf which I include in a document containing also an externalized pgfplots picture.  When I compile the following code, I get the error message Sorry, the system call pdflatex ... did NOT result in a usable file.  In order to make my code work, I first need to remove the includepdf statement, compile (to create the externalized figures) and then compile again with the includepdf statement.  I suppose that it is a bug, or is there any possibility to solve it ?  Of course, the file test.pdf is totally independent from the externalized pictures from pgfplots.  \documentclass{scrbook}   \usepackage{pgfplots}  \pgfplotsset{compat=1.8}  \usepgfplotslibrary[external]  \tikzexternalize[shell escape=-enable-write18]  \usepackage{pdfpages}   \begin{document} \includepdf{report_test-figure44}   \begin{tikzpicture}  \begin{axis}[  xlabel=Cost, ylabel=Error]  \addplot[color=red,mark=x] coordinates {  (2,-2.8559703) (3,-3.5301677) }; \end{axis}  \end{tikzpicture}   \end{document} If I have a sentence that starts with additionally, finally, consequently, etc. do I always have to put a comma after it? Or is there a different rule? Why isn't the gamma function defined so that $\Gamma(n) = n! $? As a physics student, I have occasionally run across the gamma function  $$\Gamma(n) \equiv \int_0^{\infty}t^{n-1}e^{-t} \textrm{d}t = (n-1)!$$  when we want to generalize the concept of a factorial.  Why not define the gamma function so that   $$\Gamma(n) = n!$$  instead?  I realize either definition is equally good, but if someone were going to ask me to choose one, I would choose the second option.  Are there some areas of mathematics where the accepted definition looks more natural?  Are there some formulas that work out more cleanly with the accepted definition? I've noticed that if I downvote an answer, the record of the downvote is visible to me in my profile.  But when I view my profile from another browser that's not logged into Stack Overflow, I've noticed that I don't see the record of the downvote.  So I was wondering if the downvote record is visible only to me?  If so, is this done to protect downvoters from retaliation? Evaluating $\int \sqrt{1 + t^2} dt$? How do we solve (i.e. get the closed form of) $\int \sqrt{1 + t^2} dt$ ?   shows the closed form of it but not the steps in solving it.  I think I need some algebraic trick..   I thought of some hyperbolic functions and their derivatives and equalities:  If I make $ t = \sinh x$, then I can reduce the integral to  $$ \int \cosh ^2 x dx $$ though I'm not sure if this is valid. But from here, I cannot go on evaluating the integral... I was trying to concatenate text files in sub-folders and tried:  cat ./{mainfolder1,mainfolder2,mainfolder3}/{subfolder1}/book.txt &gt; out$var   However this did not return anything. So, tried adding a non existing 'subfolder2'  cat ./{mainfolder1,mainfolder2,mainfolder3}/{subfolder1,subfolder2}/book.txt &gt; out$var   And this time it did work out, concatenating the files successfully. Why does this happens? Help with proof that $\mathbb Z[i]/\langle 1 - i \rangle$ is a field.