For dot net programs, where is the "right" place to store serialized data?   In the /user/username folder? Program Files/MyAppName/? Someplace else?
What I want to achieve is very simple: I have a Windows Forms (.NET 3.5) application that uses a path for reading information. This path can be modified by the user, by using the options form I provide.  Now, I want to save the path value to a file for later use. This would be one of the many settings saved to this file. This file would sit directly in the application folder.  I understand three options are available:   ConfigurationSettings file (appname.exe.config) Registry Custom XML file   I read that the .NET configuration file is not foreseen for saving values back to it. As for the registry, I would like to get as far away from it as possible.  Does this mean that I should use a custom XML file to save configuration settings?  If so, I would like to see code example of that (C#).  I have seen other discussions on this subject, but it is still not clear to me.
What are the mechanics of time dilation and length contraction? Going beyond the mathematical equations involving light and the "speed limit of the universe", what is observed is merely a phenomenon and not a true explanation of why time dilates or length contracts.  It has been proven to work out, but do we know why?  Is it something that happens at a subatomic level? In many experiments in quantum mechanics, a single photon is sent to a mirror which it passes through or bounces off with 50% probability, then the same for some more similar mirrors, and at the end we get interference between the various paths. This is fairly easy to observe in the laboratory.  The interference means there is no which-path information stored anywhere in the mirrors. The mirrors are made of 10^20-something atoms, they aren't necessarily ultra-pure crystals, and they're at room temperature. Nonetheless, they act on the photons as very simple unitary operators. Why is it that the mirrors retain no or very little trace of the photon's path, so that very little decoherence occurs?  In general, how do I look at a physical situation and predict when there will be enough noisy interaction with the environment for a quantum state to decohere? $n$ choose $k$ where $n$ is less than $k$ I am working on parameter estimation and one of the estimators involves a summation of $_nC_k$ ($n$ choose $k$) expressions. For some iterations, I need to compute expressions like $_0C_1$, $_0C_2$, etc.  In general how do we compute $_nC_k$ when $n$ is less than $k$? Do we still use the formula $\frac{n!}{(n-k)!k!}$ and use the gamma function to compute the negative factorial?  Thanks! When I create a folder or copy files, after the operation finishes I have to manually refresh the Explorer window (F5). For example, when I create a folder, I don't see the "New Folder" until I hit F5.  Does anyone have any idea how to fix this? I have a device with a web-based control panel, and accidentally set it to redirect all http pages to https, even though some don't work over https. Although I've since corrected this, Safari seems to have memorised the redirect and is refusing to forget it, instead constantly attempting to redirect me to the invalid https address.  I've already closed Safari, cleared ~/Library/Caches/com.apple.Safari/ and ~/Library/Cookies/HSTS.plist but it still seems to be remembering the redirect when I re-open it.  Where else could Safari be storing this information? I can access the correct page via Firefox or Chrome, so it may not be a system wide service, or if it is it's not one that the other browsers use.  Unfortunately because the web-panel is provided by a device I don't believe I can adjust headers or setup a redirect back to the correct URL, which seem to be options offered in other similar questions, so I really need to find out where this data is being stored so I can destroy it with fire. Jenkins + git: "tell me who you are" error, why does it need to tag? Upgrading from Yosemite to El Capitan, but not Sierra Biblatex authoryear dashed for entries with no year I'm using biblatex authoryear and have multiple entries of the same author that do not have a year. When I cite them there are letters shown to distinguish them:   But in the bibliography those letters are not shown and you can only distinguish them by the title. Is it possible to show the letters in the bibliography, too?  \documentclass[a4paper,12pt]{article}% \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{filecontents} \begin{filecontents}{bib.bib} @BOOK{bar1,   title = {Text One},   year = {},   author = {Firstname Lastname}, } @BOOK{bar2,   title = {Text Two},   year = {},   author = {Firstname Lastname}, } \end{filecontents}  \usepackage[backend=biber, style=authoryear-icomp, dashed=true]{biblatex} \addbibresource{bib.bib}  \begin{document}  \cite{bar1} and \cite{bar2}  \printbibliography \end{document} Maintaining Units of measure across type converstions How to read and understand the java stack trace? Where can I find 32-bit version of Ubuntu? I need to find the 32-bit version, and all I keep finding is the 64-bit. Can anyone provide me with a link? Is it possible to duplicate eyes? This question contains spoilers for anime viewers and early manga viewers.      When Nagato was revived with Edo Tensei, he had Madara's eyes. When Madara was revived, he had his original eyes too (Rinnegan, much like Nagato).   Is this exploitable? Can I repeat this cycle of transplant and revive to duplicate strong eyes? How does that work really? queries with db_select don't respect integers When I check "SHOW PROCESSLIST" in phpMyAdmin I can see lots of queries where argument-integers are being inserted as strings (with single quotation marks).  I'm wondering if this is due to the way phpmyadmin reports the queries (if it puts every argument between quotation marks) of if it is db_select that puts every argument between quotation marks.  An example of my code where integers are being used as arguments:  $select-&gt;join('taxonomy_index', 't_'.$key, 't_'.$key.'.nid = n.nid AND t_'.$key.'.tid = :tid_' . $key, array(':tid_'.$key =&gt; (int)$tid)); $select-&gt;condition('t_'.$key.'.tid', (int)$tid);   As you can see I explicitly write (int)$tid but in my query log I can see the following:  ... WHERE (t_0.tid = '10') ...   The big question is: How can I be sure that integers are being treated as integers in my queries? I don't want MySQL having to transform strings to integers. So I'm pretty sure there's at least 2, one for both X &amp; Y.   Much like other iterations of the other Pokemon games, are there other Legendaries? How many legendaries, and what are their names? If perimeter of a triangle is $2d$, what is the length of sides so the triangle has maximal area?    I found some solution using circle and angles, but I think I have to use derivatives.    I need help. How do I install drivers for Realtek RTL8812BU? So I've been experimenting with Ubuntu on and off for a while, but I honestly have no idea what the hell I'm doing. So I have a realtek RTL8812bu WiFi dongle that I'm hoping to get working. I did some research, and came across  that a couple people across two threads said worked for them:  At the bottom it said there is a new version . So somewhere it said it was confirmed to work on kernels up to 4.16, so I checked and I'm on 4.15.0. But the problem I'm having, is what am I supposed to do? There is some installation guide at the bottom that is about as clear as mud to me since I don't know much. Is there a way to override class variables in Java? Using the same RSA keypair to sign and encrypt The RSA signature operation is basically the same as encrypting with the private key.  In particular, both operations use the same kind of keys.  Is it safe to use the same RSA keypair both for encryption / decryption and for signing / verification? If $a$, $b$, and $c$ are sides of a triangle, then $\frac{a}{b+c}+\frac{b}{c+a}+\frac{c}{a+b}<2$. Let $a,b,c$ be the lengths of the sides of a triangle. Prove that $$\sum_{\text{cyc}}\frac{a}{b+c}=\frac{a}{b+c}+\frac{b}{c+a}+\frac{c}{a+b}&lt;2\,.$$  Attempt.  By clearing the denominators, the required inequality is equivalent to $$a^2(b+c)+b^2(c+a)+c^2(a+b)&gt;a^3+b^3+c^3\,.$$ Since $b+c&gt;a$, $c+a&gt;b$, and $a+b&gt;c$, the inequality above is true.  Is there a better, non-bruteforce way? Does anyone know how to make the character picker appear more quickly?   I use it enough now in my German language studies that it has become second nature for the critical marks and much faster than using the alt+keypress shortcuts.   Only problem is that it's so second nature that sometimes it doesn't pop up quickly enough so I end up typing the character and the number shortcut sometimes (IE u2 instead of ü). Anyone know how to make it appear with less delay? Ideally, I'd love if I could just hold the character and press the number but it appears that OSX insists on waiting for the menu to pop up.