Question  How can I save "settings" so that they can be used again after the application has been closed?  When I say settings I mean different properties of the controls on my form.  What is the easiest and most appropriate method? I've read you can save to the system registry or a xml file?   Background  I have a form that creates a row in a Table that changes depending on what control is set or change.  I would like to be able to save different configurations and display them in a combobox for repeated use.   Example   The end user fill in all textboxs and ticks checkboxes.  They then click add to favourites They add a favourite name and save The save is then permanently visible in the favourites combobox.   My form
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.
I have a site that is in French and English. I am able to successfully setup so that users can switch back and forth between the two domains to view either language, however I cannot seem to keep users logged in. When they are logged into the english domain and then switch to the french domain they are required to login again. However if they switch back to the english domain they are still logged in.  As an example we'll use www.english-domain.com as the base (default) domain and www.french-domain.com as the secondary domain  In settings.php I have modified the following, however it doesn't seem to be keeping them logged in. Am I missing something?  /**  * Drupal automatically generates a unique session cookie name for each site  * based on its full domain name. If you have multiple domains pointing at the  * same Drupal site, you can either redirect them all to a single domain (see  * comment in .htaccess), or uncomment the line below and specify their shared  * base domain. Doing so assures that users remain logged in as they cross  * between your various domains.  */ $cookie_domain = 'english-domain.com';   Note: That I have also flushed both site and browser cache as well as deleted any cookies left on my machine.  Update:  Here are my language settings: Is there a good tool/program that allows me to clone a system drive to another, smaller hard drive?  I've bought a new 64GB SSD drive and would like to move my current Windows 7 Professional 64-bit installation to that new drive. My current drive is a 200GB SATA drive with one partition only. Of course there's enough free space to shrink my current partition to less than 64GB. What is the origin of elements heavier than iron? In all the discussions about how the heavy elements in the universe are forged in the guts of stars and especially during a star's death, I usually hear that once the star begins fusing lighter atoms to produce iron (Fe) that's the end of the star's life and the whole system collapses onto itself; and based on how massive the star was initially, it has different outcome - like a white dwarf, a neutron star or a black hole. I have rarely heard a detailed explanation of how the elements heavier than iron are produced. I would appreciate a convincing explanation of this process. Should I disable google maps scroll wheel zoom? In most applications of google maps the scroll wheel will zoom the map instead of scrolling it.  Personally I find this confusing, and after years of using google maps, both on the google maps web site and embedded google maps, I still often make the mistake of trying to scroll the map with scroll wheel and end up zooming it instead.  The google maps API allows me to disable scrollwheel zoom when I embed a map in my page.  The question is should I disable it?  On the one hand scroll wheel zoom is unconventional in the context of the web as a whole - in the vast majority of cases the scroll wheel scrolls things.  On the other hand scroll wheel zoom is established convention for maps.  It definitely would be a better experience for me if scroll wheel zooming was disabled, but what about the web browsing population in general?  I did some searching on whether I should disable scroll zoom and couldn't find any guidelines. So, to scroll zoom or not to scroll zoom? I looked "$\divideontimes$" up on Google and now I know that it's Unicode U+22c7 but when would it be used?  I am guessing that $5 \divideontimes 5 = 25$ and $1$...? I need your help with references. I have 1 main reference section, and I want to include a second list of references as an appendix. For the main reference I use:  \newpage  \bibliographystyle{plainnat}  \bibliography{library}   The problem is that I don't know how to include the second list using a different bib file, and then calling the function \nocite{*} to show every sources inside the file.   I have the appendix part workout. I need your help to design the function to call the second bibliography, and that does't interfere with the main reference:   \newpage  \appendix  \section{Other Sources} \label{app:ReferencesB}   In addition, I will prefer that the word References is not shown after Other Sources.  Thank you so much!! I need to grant select permission for all tables owned by a specific user to another user.  Can I do this with a single command along the lines of:  Grant Select on OwningUser.* to ReceivingUser   Or do I have to generate the sql for each table with something along the lines of:   Select 'GRANT SELECT ON OwningUser.'||Table_Name||'TO ReceivingUser'   From All_Tables Where Owner='OWNINGUSER' How do I prove $F(a)=F(a^2)?$ Let $E$ be an extension field of $F$. If $a \in E$ has a minimal polynomial of odd degree over $F$, show that $F(a)=F(a^2)$.  let $n$ be the degree of the minimal polynomial $p(x)$ of $a$ over $F$ and $k$ be the degree of the minimal polynomial $q(x)$ of $a^2$ over $F$.   Since $a^2 \in F(a)$, We have $F(a^2) \subset F(a)$, then $k\le n$  In order to prove the converse:  $q(a^2)=b_0+b_1a^2+b_2(a^2)^2\ldots+b_k(a^2)^k=0$   implies   $q(a)=b_0+b_1a^2+b_2a^4\ldots+b_ka^{2k}=0$ Then   $p(x)|q(x)$, because $p(x)$ is the minimal polynomial of $a$ over $F$.  If I prove that $n|2k$ we done, since $k$ is odd, we have $n|k$ and $n\le k$ and finally $n=k$.  So I almost finished the question I only need to know how to prove that $n|2k$ It should be only a detail, but I can't see, someone can help me please?  Thanks How can I translate CMYK to Pantone colors? In particular, how do I translate CMYK 90C 85M 80Y 63K to a Pantone color? Refused entry to UK, not sure what to do I'm a writer and theater/film director who has been traveling nearly all my life without incident. In February, I decided to pull up stakes in NYC and move to London. I am a freelancer and I'm working with three different organizations in NYC so I wasn't working illegally in the UK. I was, however, seeing if there might be some opportunities in London, ie. meeting with Artistic Directors of various theatre companies to see if they might be interested in producing my work.   In April, I was invited to a conference in San Diego and then a film festival in Switzerland. I didn't think it would be a problem if I went and then bummed around in France for a few days since I hadn't broken any laws and had left the UK well under my six month leave to stay. Well, when I tried to return to London, I was denied entry at Luton. The border control officer said I didn't have enough funds for a two month stay and put a black cross over a stamp in my passport. They put me in a detention room until the next flight back to Lyon, which was the following morning. I don't know anyone in Lyon so I ended up going to a friend's place in Paris.   After a few days of not knowing what to do, a friend suggested that perhaps I should try going back to London on the Eurostar since border control is in Paris. I wondered if I ought to go to the British Embassy but was deterred by something on their website that says that a visitors visa could take up to three weeks (I can't sit around here in Paris for three weeks) and anyway, the decision ultimately is with the border control, so I decided to take a chance on the Eurostar. I bought myself a return ticket in two weeks to Paris just so I had something to show.   Well, the UK border control denied me entry after giving me a third degree. They accused me of lying and seeking work in the UK. They also insisted that the amount of money I had was not enough to live on for two weeks. So I'm back at my friend's place in Paris, wondering what to do.   Is it possible for me to ever get back to the UK? I had to cancel one meeting and I'm wondering if I have to cancel going to the Sheffield DocFest. (Two of my projects were accepted to programs there.)   Should I apply for a visa from the British Embassy? Will this really take three weeks? When I started to say something about obtaining a visa, the border control officer cut me off and said, "Why are you going to the Embassy? This has nothing to do with the Embassy. We make the decisions." PHP considers null is equal to zero How to read a csv file and use the values as x and y points in blender? How can i use the value in column 'lon' and 'lat' as the position of my uv_sphere? For example,read the values from line 4, (116.4559081, 39.9139083), and make these 2 numbers as my uv_sphere x and y position in blender? and gives different colors for different mode, for example i have 4 modes in the csv , i want to make the uv sphere that represents the bus mode to be red, and subway to be green , rail to be blue and tram to be yellow., and use the row ['from'] and ['to'] to connect the nodes with a cylinder with x scale 0.5 , y scale 0.5 and the z scale with the value in ['length'] value. How to change user in WinSCP? I'm using WinSCP to access Unix computers. How can I change user after I have logged into a Unix server using WinSCP?  E.g. I have personal account in Unix computer A. I can log into this computer using PuTTY and then change user to root user  $sudo /usr/bin/su - rootuser   How can I do the same thing using WinSCP? I don't know the password for rootuser. I know I can choose "Hidden in menus" and never see the devices again when I install a application. But I don't want my old mobile phones display in my account settings anymore. I have sold those phones already and never use them again!  In fact, the list look likes a cemetery in my mind now. ;( Operation 'Split, All The Metas!' Shall Commence On April 16, 2014 Update 2014-04-17 04:47 UTC: Stable, with some odds and ends to clean up      The main MSO/MSE sites are stable, but there are plenty of corners left to sweep. For details, see:    Not all of them mind you, just Meta Stack Overflow into Meta Stack Exchange.  I'll have you know, factually, that we really did believe this would take place in six-to-eight weeks when it was , but we've finally got a tentative date established.  If things go according to plan, we'll begin the operation shortly after 8:30 PM EDT on the 16th, completing everything within a few hour window. Ideally, all service disrupting endeavors will be completed within the first hour, which include:   The availability of Meta Stack Overflow The availability of Stack Overflow (more on this shortly) The availability of Chat on Meta Stack Overflow   As you know, we'll be bolting on a standard issue per-site meta on Stack Overflow, while breaking the link between what will have become Meta Stack Exchange and Stack Overflow. There's some irritable innards in that particular region, so we'll be asking folks to expect the unexpected during the maintenance window. Affected sites will be in and out of read-only mode, or quite possibly just down for maintenance while we're doing the actual break.  I'll be posting a system message on both Meta Stack Overflow as well as Stack Overflow itself 24 hours before we begin the actual work.   Did I say tentative in a six-to-eight-something time frame again? Why yes, I did - we're currently running some tests on the dev tier to simulate the split as closely as possible, so that we can better anticipate quirks that we need to address prior to actually doing it.  Once the sites have actually been stood up functionally on the production tier, we're going to get to work on finishing touches. This will include things like site settings (which determine bits of text you see in the question prompts, rep thresholds, etc) and all sorts of other fine tuning.  Once we're done:   Stack Overflow will have a blank, empty child meta site just like every other site The new Meta Stack Exchange will be up and running All rooms on Chat Meta Stack Overflow will be moved to Chat Meta Stack Exchange  I'll send over about 150 - 200 questions from MSE to MSO, most of which will be tag or SO-specific feature related posts that got buried by the network stuff without resolution.   If the tentative date moves, I'll update this post with the new date. However, we do not anticipate this happening any later than Saturday, April 19 - in the case that we see down time we can't mitigate and need to do it on a weekend.  The ground work is basically done, we're finishing up sanity now with a great deal of confidence, and we're pretty certain that we'll hit between those dates, if not directly on the tentative 16th.  Questions? Kvetch? Anonymous confessions? Answer below, and I'll address each in comments. Select groups based on number of unique / distinct values Can “whose” refer to an inanimate object? We lit a fire whose fuel was old timber wood.   Is the word whose referring to fire, an inanimate object, correct in this sentence? Or is there a more appropriate word? indentation of a whole paragraph My problem is that I would like to write something like in LaTeX:   But I can't seem to do it wihtout reading like:   Which is pretty anoying to do all the time, in the middle of writting. Is there a code to do it for a whole paragraph without written \hspace*{1,5 cm} in middle of a sentence Prove every element of $G$ has finite order. I'm developing a PHP application and I'm wondering about the best way to include multi-language support for users in other countries.  I'm proficient with PHP but have never developed anything with support for other languages.  I was thinking of putting the language into a PHP file with constants, example:  en.php could contain:  define('HZ_DB_CONN_ERR', 'There was an error connecting to the database.');   and fr.php could contain:  define('HZ_DB_CONN_ERR', 'whatever the french is for the above...');   I could then call a function and automatically have the correct language passed in.  hz_die('HZ_DB_CONN_ERR', $this);   Is this a good way of going about it?  -- morristhebear.