Whenever there is question about credibility of Properties, I see that most of the discussion happens around functions/methods vs properties. But I would also like to know the compelling reason to use property with associated private field vs public field directly itself, incase of most common get/set behaviors with no other processing, I mean this way  public string CustomerName;   vs  private string customerName; public string CustomerName { get{return customerName;} set(string value){this.customerName=value;} }
In C#, what makes a field different from a property, and when should a field be used instead of a property?
Forced to Quit PhD although the hard and proved work Can you block installers from making desktop shortcuts? I've been keeping my desktop totally free from shortcuts. I'd rather not have to take action to do so. Extracting matrix rows when one of its elements is part of a list (without a loop) Which programs can I use to edit PDF files? I know that there is a very similar question, but I'm not interested in highlighting. What I'm looking for is some tool in Linux to edit pdf files. I've tried pdfedit which did the work for me, but if freezes after a few edits. I've tried this tool under Ubuntu 9.10 and under KDE Fedora 14 and the same thing happens. I've tried Okular but the notations are too big to fill out exercises from pdf workbooks.    Is there any tool that suits this job? I don't care whether it is open source or I have to pay a reasonable price for it. Can inductor voltage and capacitor current change abruptly? I understand that inductor current and capacitor voltage cannot change abruptly, but can inductor voltage and capacitor current change abruptly?  I have a feeling the answer is no but I cannot explain why. Generators and relations for $\text{PSL}(2, \mathbb{F}_q)$ Is there a nice presentation for the group $\text{PSL}(2,\mathbb{F}_q)$, for every prime $q$?  (I don't have any particular definition in mind for "nice", other than, say, a small number of generators and relations.) Apt-get stuck at 0% [Working] In biblatex, treat periods in journal as abbreviation dots I would like to consistently have a comma between the journal and volume number for article references using biblatex with biber as the backend. Unfortunately, the punctuation between the journal and volume is not consistent. Journals whose last word is abbreviated have no comma between the journal and the volume, and the word "Vol." is capitalized. Journals whose last word is not abbreviated have a comma and the word "vol." is not capitalized. I can fix the capitalization by un-commenting the commented lines in the below MWE, but the comma problem is quite perplexing. Apologies if this fix is in an answer somewhere, but I cannot find it (or at least, I don't know what to search for!).  Current output: [1] First Author. “Blah Blah 2”. In: Am. J. Phys. Vol. 72, no. 3 (Mar. 2004), pp. 367–375. [2] Second Author. “Blah blah”. In: Energy Fuel, vol. 27, no. 12 (Dec. 2013), pp. 7778–7789.  Expected output: [1] First Author. “Blah Blah 2”. In: Am. J. Phys., vol. 72, no. 3 (Mar. 2004), pp. 367–375. [2] Second Author. “Blah blah”. In: Energy Fuel, vol. 27, no. 12 (Dec. 2013), pp. 7778–7789.  MWE:  \documentclass{article} \usepackage{filecontents} \usepackage[     backend=biber,     citestyle=numeric-comp, ]{biblatex} \addbibresource{\jobname} % \DefineBibliographyStrings{english}{%     % volume = {\lowercase{v}ol\adddot}, % avoid capitalization after dots. % } \DeclareFieldFormat[article]{volume}{\bibstring{volume}\addspace #1} \DeclareFieldFormat[article]{number}{\bibstring{number}\addspace #1} \renewbibmacro*{volume+number+eid}{%   \printfield{volume}%   \setunit{\addcomma\space}%&lt;---- was \setunit*{\adddot}%   \printfield{number}%   \setunit{\addcomma\space}%   \printfield{eid}} \renewbibmacro*{journal+issuetitle}{%   \usebibmacro{journal}%   \setunit*{\addcomma\addspace}%&lt;---- was \setunit*{\addspace}%   \iffieldundef{series}     {}     {\newunit      \printfield{series}%      \setunit{\addspace}}%   \usebibmacro{volume+number+eid}%   \setunit{\addspace}%   \usebibmacro{issue+date}%   \setunit{\addcolon\space}%   \usebibmacro{issue}%   \newunit}  \begin{filecontents*}{\jobname.bib} @article{York2004, author = {Author, First}, journal = {Am. J. Phys.}, month = mar, number = {3}, pages = {367--375}, title = {{Blah Blah 2}}, volume = {72}, year = {2004} } @article{Baumgardner2013a, author = {Author, Second}, journal = {Energy Fuel}, month = dec, number = {12}, pages = {7778--7789}, title = {{Blah blah}}, volume = {27}, year = {2013} } \end{filecontents*}  \begin{document} \nocite{*} \printbibliography \end{document} How can I re-enter the US after time in Canada on the VWP? I am an Australian citizen, currently studying in Canada.   I entered the United States In July 22nd for 3 days, where I stayed in Seattle before leaving to return to Vancouver. I then again entered the states on 11th of October and returned on the 18th of October.  On October 19th my original and first Electronic System for Travel Authorization (ESTA), expired. I was under the impression that if I was to travel into the United States again I would have to apply for another ESTA and start the 90 days again, which I was planning on around December the 10th. In addition to this I am flying into Los Angeles on the 17th of December 2014 (where I plan to travel around the USA until flying out of Los Angeles again on 18th of January back to Australia).  However, after speaking to friends and looking at the website I have become confused on what my next course of action should be.  I am told that I cannot apply for another ESTA and be granted another 90 days visit into the USA, whilst I am in Canada and thus not be able to take any of my flights.  What would be the most appropriate action so that I can take my flights leaving North America and also travel the United States? Package Cache File corrupted From advice on  , I've opened a new question about the same issue, as it turned out my problem was not the one described in the question, information I did not know at the time. I'm running Ubuntu 16.04.  $ sudo apt-get update  Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Get:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] Get:4 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [307 kB] Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [226 kB] Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [185 kB] Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [268 kB] Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,888 B] Get:10 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,324 B] Get:11 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4,712 B] Get:12 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [62.7 kB] Get:13 http://archive.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [71.2 kB] Get:14 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [51.3 kB] Get:15 http://archive.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [85.1 kB] Fetched 1,578 kB in 1s (1,529 kB/s)                                     Reading package lists... Error! E: Read error - read (5: Input/output error) W: You may want to run apt-get update to correct these problems E: The package cache file is corrupted   If there's any more information you need, don't hesitate to ask in the comments.  Edit 1:  $ sudo df -h Filesystem      Size  Used Avail Use% Mounted on udev            5.9G     0  5.9G   0% /dev tmpfs           1.2G  9.4M  1.2G   1% /run /dev/sda1       135G  7.2G  121G   6% / tmpfs           5.9G   14M  5.9G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           5.9G     0  5.9G   0% /sys/fs/cgroup tmpfs           1.2G   88K  1.2G   1% /run/user/1000 /dev/sdb1       932G  300G  633G  33% /media/adoria298/MDrive1   Edit 2 SMART Test results: Order of redirections I don't quite understand how the computer reads this command.  cat file1 file2 1&gt; file.txt 2&gt;&amp;1  If I understand, 2&gt;&amp;1 simply redirect Standard Error to Standard Output.  By that logic, the command reads to me as follows:    concatenate files file1 and file2.  send stdout from this operation to file.txt. send stderr to stdout. end?   I'm not sure what the computer's doing. By my logic, the command should be   cat file1 file2 2&gt;&amp;1 &gt; file.txt   but this is not correct. I have defined my own language whose syntax is very close to the one of Pascal. I would like to type the following program for instance. Many people use the packages algorithmicx or algorithm2e to print programs, but it seems that we have to use their specific keywords of its syntax like procedure, end while.  I just want to indent spaces when needed, and bold some words when I want (sorry that I could not bold letters in the following figure). Do I have to use  texttt for each line? Also, with verbatim, I could not bold words...  Also, as the program is not large, I would need to put it on the left side of the page, and leave space for some explanasion text on its right hand side. So I  guss I need to get them all together, and use multicols.  Could anyone help?  program test                                      some text here var   i : integer;                                    ...    b : boolean; begin    i := 1;                                        ...    b := true;    while i &lt; 15 do       i := i  + 1;       b := not b                                  some text here    od end   Edit1: Following @Werner's tabbing solution, I have made the code a minipage:  \begin{minipage}[t]{0.48\linewidth}% \begin{tabbing} Werner's solution \end{tabbing} \end{minipage}\hfill \begin{minipage}[t]{0.48\linewidth} a paragraph \end{minipage}   Actually as the code shows, I want the texts to be another separated minipage on the right hand side of the code. I have then 2 questions:   is it reasonable to make 0.48\linewidth instead of 0.5\linewidth? 0.48\linewidth is a conventional choice? is it possible to make a frame around the code, and use \caption and \label to make it a reference (I prefer figures)? I am looking for a driver for the TP-Link AC600 Archer T2U Nano, on Kubuntu 18.04 (kernel version 4.15.0-51-generic).   I already tried different drivers, none of them worked. Shapefile projections not matching up in QGIS? To start off with, I'm very new to QGIS. I'm attempting to place a shapefile with locations for 3 substations on a map of Peniche, Portugal. The locations for the substations are given in latitude and longitude coordinates.   When I start off by importing the substation shapefile, I make sure that both the layer CRS and project CRS are set to EPSG:32629, which gives each substation point the correct coordinates, however the scale is at 1:1, which is not correct. As soon as I then add a raster map of the region or a shapefile of Portugal using the same CRS the position of the substations also becomes incorrect.   I'm sure there's a simple solution I'm not getting, but I've been trying for a while and have had no success. Here's a dropbox link to the files I wanted to tidy up a TeX document and was curious if you can use \lstinputlisting or a similar function to include a certain part of a source-code file.  Example, I have a 500 or so line source file and I want to include just lines 300-400.  Is there a way to do this? I was using my MacBook Pro (with 16GB of RAM) as usual and out of blue I've this popup that:  Your system has run out of application memory. To avoid problems with your computer, quit any applications you are not using.   I've obviously closed few which I could, but it didn't help. After checking on memory, it seems kernel task ate 7GB and 22.36GB swap memory was used of total 23GB (which obviously was the case). However I've still 20GB of space free on my SDD.  Activity Monitor didn't help much whilst my OS X was heading to the destruction.    My top stats before my kernel freeze: Processes: 344 total, 2 running, 5 stuck, 337 sleeping, 2580 threads                                                                                                                         19:23:56 Load Avg: 1.56, 1.62, 2.09  CPU usage: 3.51% user, 8.47% sys, 88.1% idle   SharedLibs: 46M resident, 0B data, 6572K linkedit. MemRegions: 757970 total, 2139M resident, 56M private, 907M shared. PhysMem: 9410M used (6198M wired), 556M unused. VM: 1155G vsize, 1311M framework vsize, 112872658(320) swapins, 122668389(0) swapouts. Networks: packets: 299419263/363G in, 142126838/14G out. Disks: 58970173/1079G read, 20012389/1120G written.  At the end my OS X frozen and I had to do hard reset, repair my SDD in recovery mode and fixing afterwards (recovering lost work, fixing application conflicts, checking my lost+found folder, Chrome/Terminal tabs gone, headache, etc.). My question is, how do I check on high memory usage of kernel task or how to properly deal with that kind of situation? I've tried to take Sample with Activity Monitor, but it's greyed out.  My MacBook Pro details: 2.3GHz Intel Core i7 (late 2013) with 16GB RAM. OS X: 10.9.5 Run TTY script every time I open a GUI terminal When I log in to a TTY I get the following nice text:  Ubuntu 16.04.03 LTS Log-in: username Password: Last log-in date/time Welcome to Ubuntu 16.04.03 LTS   * Documentation:  * Management:  * Support:  9 packages to update 4 updates are security updates   I would like the last 2 lines repeated every time I open a GUI terminal for all users in the adm group (but will settle for having the entire thing displayed each and every time I open a GUI Terminal for all users)  I tried the obvious:  fab-root@fab-ux-predator:~ $ cd /etc/update-motd.d/ fab-root@fab-ux-predator:/etc/update-motd.d $ ./90-updates-available  fab-root@fab-ux-predator:/etc/update-motd.d $ cat /var/lib/update-notifier/updates-available cat: /var/lib/update-notifier/updates-available: Permission denied fab-root@fab-ux-predator:/etc/update-motd.d $   What am I missing?  P.S. Obviously I can chmod o+r the file, but how future-proof would that be? What does the number in parentheses shown after Unix command names in manpages mean? Why did Harime Nui's eye not heal? DateTime "null" value I've been searching a lot but couldn't find a solution. How do you deal with a DateTime that should be able to contain an uninitialized value (equivalent to null)? I have a class which might have a DateTime property value set or not. I was thinking of initializing the property holder to DateTime.MinValue, which then could easily be checked. I guess this is a quite common question, how do you do that?