I got c# project from my prof.(no i can't ask him) I understand all except marked part in this class. Can someone give me short explanation or link to answer, what that part of code actually do?  class AccessConnection {     private OleDbConnection conn;      public AccessConnection()     {         conn = new OleDbConnection();         conn.ConnectionString= @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Bata\Desktop\Izvestaj\praksa\praksa\Studenti.accdb";     }     public void otvoriKonekciju()     {         conn.Open();     }     public void zatvoriKonekciju()     {         conn.Close();     }     /* This is part of code i don't understand     public OleDbConnection Conn     {         get         {             return this.conn;         }     }     */ }
In C#, what makes a field different from a property, and when should a field be used instead of a property?
Orthogonal complement examples I am looking for an example such that in a pre-Hilbert space $H$ we have for a subspace $U$ that  (i) $\bar{U} \oplus U^\perp \neq H$  (ii) $ \bar{U} \neq U^{\perp \perp}$  Since finite and closed subspaces will probably not do it, I am not good at inventing nice examples. Does anybody here have a few at hand? Should student or supervisor be corresponding author for publications based on student research? Papers published from an academic project (MSc or PhD) usually have two authors; the first author is the student who mainly conducted the research, and the second author is the professor who supervised the projects.  The corresponding author is the one who take the responsibility of a paper, and thus, some believe that students are not yet prepared to take this responsibility.  Ideally, who should be corresponding author for papers published by MSc or PhD projects?  I understand that it mainly depends on personal agreements and preferences, but I want to know which case is more reasonable from academic logic? Not getting Rep Notification for new up votes So just a little while ago i was flipping out because i was 2 rep away from my 10k rep goal    but then all of a sudden it was then 10,008 rep because someone upvoted me. however i didn't get any notification about this +10  [    now as you can see in the screenshots above, over the past 2 days i got 2 upvotes to a question i posted, however the notifications only shows 1 +10 notification. and they system knows i got the upvote because i knew that i now have access to mod tools.  I am on a Windows 10 Laptop using Chrome 78.0.3904.97 (Official Build) (64-bit) What does this mean? "Your UK visa application has been issued" Your UK visa application has been issued.      PLEASE DO NOT GO TO THE VISA APPLICATION CENTRE BEFORE THEY CONTACT YOU.      You will be contacted by the Visa Application Centre when your documents are ready for collection, or have been dispatched via courier where this is relevant.       You are reminded that you should avoid making travel plans until you have collected your passport, as the outcome of your visa application is not final until you receive your passport.      Please ensure you check the details on your visa when collecting your passport. If you need to contact us you can do so via our International Enquiry Service at www.gov.uk/contact-ukvi-outside-uk      Kind regards,      UK Visas and Immigration   British Embassy Abu Dhabi     Your UK visa application has been issued.   I know words like processed, forwarded, received, refused but never heard anything like that, so I am confused. I am in doubt as to whether the subject-verb agreement of the second sentence of this paragraph is correct :  Unfortunately, there is no such thing as the ideal home workshop because most people are limited by the space available and by their budget. However, the information and diagram here acts as a guide to help you formulate a sensible workshop layout and a machinery “wish list”.  I suppose if the compound subject is seen as a single unit, then the sentence can be considered as correct. A little further in the same book, another sentence has a singular verb with a compound subject :  Alternatively commandeer a garage, or build yourself a substantial workshop if outdoor space and permission allows – however, do consider the impact of machinery noise on your neighbours.  Can &quot;outdoor space and permission&quot; be seen as one thing, or would this be considered a mistake ? How to create a site in a sitecollection on a remote SPServer using C# I am currently trying to write a Dynamics CRM 2011 plugin that creates a new SharePoint 2010 site (within an existing site collection) for every account that is created. I have the code for creating a library, which uses the following methods:          private static ClientContext CreateSharePointConnection()         {             try             {                 Uri spSiteUrl = new Uri(Constants.SharePointSiteName);                 using (ClientContext spcontext = new ClientContext(spSiteUrl))                 {                     spcontext.Credentials                         = new System.Net.NetworkCredential(Constants.UserName                             , Constants.Password, Constants.DomainName);                     return spcontext;                 }             }             catch (Exception ex)             {                 throw new Exception("SharePointMethods.CreateSharePointConnection (General Exception: "                     + ex.Message + ")");             }         }  private static void CreateDocumentLibrary(ClientContext _clientContext             , string _documentLibraryName, string _documentLibraryDescription)         {             try             {                 Web web = _clientContext.Web;                 _clientContext.Load(web);                 _clientContext.ExecuteQuery();                 ListCreationInformation lci = new ListCreationInformation();                 lci.Title = _documentLibraryName;                 lci.Description = _documentLibraryDescription;                 lci.TemplateType = 101;                 List newDocumentLibrary = web.Lists.Add(lci);                 newDocumentLibrary.ContentTypesEnabled = true;                 newDocumentLibrary.Update();                 _clientContext.ExecuteQuery();             }             catch (Exception ex)             {                 throw new Exception("SharePointMethods.CreateDocumentLibrary('" + _documentLibraryName                     + "') (General Exception: " + ex.Message + ")");             }         }   So I would like to write a method CreateSite instead of CreateDocumentLibrary. However, all examples I can find on the web for programmatically creating a Site are using SPSite, SPWeb, etc. Something like this:  private static void CreateSite(string _siteName, string _siteDescription) {     try     {         SPSite site = new SPSite(Constants.SharePointSiteName);         SPWeb web = site.OpenWeb();         SPWebCollection wc = web.Webs;         string siteTemplate = web.WebTemplate;         wc.Add(Constants.SharePointSiteName, _siteName, _siteDescription, 1043, siteTemplate, true, false);     }     catch (Exception ex)     {         throw new Exception("SharePointMethods.CreateSite('" + _siteName             + "') (General Exception: " + ex.Message + ")");     } }   However this is NOT a solution for my problem, because the SPSite, SPWeb, etc. only work on the local machine and I want to create a Site from a remote (in my case CRM) server. Anyone got an idea how to solve this.  PS: Code might still contain memory leaks, so please be carful when you use it for production purposes! MySQL Seems to be crashing quite often, I'd say every hour or so.   The only thing running on this server that is using MySQL is a Drupal installation that I'm working on, there's only one person that's using it and it literally has around three pages - from what I can gather this seems to be a memory issue with innoDB? I'm not great at this stuff so I'm unsure.  Any guidance? Here's the relevant parts from my error.log  140216 14:20:01 [Note] Plugin 'FEDERATED' is disabled. 140216 14:20:01 InnoDB: The InnoDB memory heap is disabled 140216 14:20:01 InnoDB: Mutexes and rw_locks use GCC atomic builtins 140216 14:20:01 InnoDB: Compressed tables use zlib 1.2.3.4 140216 14:20:01 InnoDB: Initializing buffer pool, size = 128.0M InnoDB: mmap(135987200 bytes) failed; errno 12 140216 14:20:01 InnoDB: Completed initialization of buffer pool 140216 14:20:01 InnoDB: Fatal error: cannot allocate memory for the buffer pool 140216 14:20:01 [ERROR] Plugin 'InnoDB' init function returned error. 140216 14:20:01 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 140216 14:20:01 [ERROR] Unknown/unsupported storage engine: InnoDB 140216 14:20:01 [ERROR] Aborting  140216 14:20:01 [Note] /usr/sbin/mysqld: Shutdown complete  140216 14:20:02 [Note] Plugin 'FEDERATED' is disabled. 140216 14:20:02 InnoDB: The InnoDB memory heap is disabled 140216 14:20:02 InnoDB: Mutexes and rw_locks use GCC atomic builtins 140216 14:20:02 InnoDB: Compressed tables use zlib 1.2.3.4 140216 14:20:02 InnoDB: Initializing buffer pool, size = 128.0M InnoDB: mmap(135987200 bytes) failed; errno 12 140216 14:20:02 InnoDB: Completed initialization of buffer pool 140216 14:20:02 InnoDB: Fatal error: cannot allocate memory for the buffer pool 140216 14:20:02 [ERROR] Plugin 'InnoDB' init function returned error. 140216 14:20:02 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 140216 14:20:02 [ERROR] Unknown/unsupported storage engine: InnoDB 140216 14:20:02 [ERROR] Aborting  140216 14:20:02 [Note] /usr/sbin/mysqld: Shutdown complete   EDIT The server is the lowest-spec DigitalOcean Droplet with 512MB RAM. This particular Droplet is running NodeJS, MySQL and Apache. There's a low-traffic static site, a Ghost blog and this Drupal site I'm developing.   Should I just upgrade the RAM, or is there something I can do to fix this? If $AB = I$ then $BA = I$ Let $R=\mathbb{Z}\left[\sqrt{−5}\right]$. Let $I=\left(2,1+\sqrt{−5}\right)$. Show $I^2 = (2)$ in $R$. I don't know how to solve this problem. I tried to write out the sum of products in the definition of products of ideals, but that doesn't seem to lead anywhere. tabular input by columns (i.e. transpose a table) I would like to be able to transpose a tabular(x) table like in the following example. It is not necessary to be completely automated, but I don't want to change the data order, which is a painful and stupid. By "not completely automated" I mean that e.g. the headers can be done seperately etc.  Let's see the MWE:  \documentclass{article}  \usepackage{booktabs} \def\Midrule{\midrule[\heavyrulewidth]}  \begin{document}  \centering  \begin{tabular}{*6c}\toprule \bfseries Name &amp; Alice &amp; Bob &amp; Chuck &amp; Dave &amp; Eve\\\Midrule \bfseries Sex &amp; Female &amp; Male &amp; Male &amp; Male &amp; Female\\\midrule \bfseries Age &amp; 18 &amp; 19 &amp; 20 &amp; 21 &amp; 22\\\bottomrule \end{tabular}  \bigskip  Which I want to look like  \bigskip  \begin{tabular}{*3c}\toprule \bfseries Name &amp; \bfseries Sex &amp; \bfseries Age\\\Midrule Alice &amp; Female &amp; 18\\\midrule Bob &amp; Male &amp; 19\\\midrule Chuck &amp; Male &amp; 20\\\midrule Dave &amp; Male &amp; 21\\\midrule Eve &amp; Female &amp; 22\\\bottomrule \end{tabular}   \end{document}     Note: I know that , but I would like to get it without expl3 (mostly because people would might use my code quite often have an old LaTeX installed and I cannot be convincing them to change this). What exactly did mv /tmp/folder/* /* do to my filesystem? It's hard to search for special characters on google, which is why I'm posting this here.  I recently ran (as root) a mv /tmp/folder/* /* when I meant to run mv /tmp/folder/* ./ Big mistake!  Things broke! A lot of files got mixed up and placed into strange places, none of the normal unix commands worked (ls, dir, cat, etc) and once you logged off, you couldn't ssh back in -- it would give you a prompt, but not accept the old passwords.  Running ls /* shows me that it performs ls on every directory in /. If I tried to draw a parallel, then mv should have simply moved (or copied?) the files to every directory in /. Instead, really weird things happened, and I was just curious what exactly was going on.  More info: The files in /tmp/folder had been transferred from a windows machine, and had been named file (#).txt, where (#) is a number up to two digits, with a space between file and the parenthesis. There were ~40 of these text files. Shell Shortcuts in Windows OS Does the command pwd in a shell script output the directory the shell script is in? Why does my server show              total      used      free   shared buffers    cached     Mem: 12286456  11715372    571084        0   81912   6545228 -/+ buffers/cache:  5088232   7198224    Swap: 24571408     54528  24516880   I have no idea on calculating the memory in linux. I think it says that 5088232 is used where as 7198224 is free, meaning it is actually consuming 5GB of RAM? Add an SQLite database to an iPhone app Loop doesn't see value changed by other thread without a print statement I needed to change the SID of an Oracle XE database (not the Service Name) to match a production database.  When I tried searching online, most of the pages were describing changing or adding a service name through tnsnames.ora; that's not what I needed to do. \pause in tikzpicture breaks footline I've discovered that you can \pause within a tikzpicture, which works well until I switched the theme to one with a footline.  I've created a "test case" that illustrates the problem.  \documentclass{beamer} \providecommand\thispdfpagelabel[1]{} % Not sure what this does but our installation requires it. \usepackage{tikz} \usetheme{Madrid} % Has a footline.  \begin{document}   \begin{frame}     \frametitle{test}     \begin{tikzpicture}       \node at (0, 1) {Hello};       \pause       \node at (0, 0) {World};     \end{tikzpicture}   \end{frame} \end{document}   This creates two slides, but the footline is only drawn on the second (the headline/title appears on both). Is there anything I can do about this? Here, we suppose that $x,y\in\mathbb{R}$ and that $x^n=y^n$, where $n$ is odd. I want to prove that $x=y$.  Maybe we can use that $x^n-y^n=(x-y)(x^{n-1}+x^{n-2}y+...+xy^{n-2}+y^{n-1})$  So, it suffices to show that if $x^n=y^n$ then $x^{n-1}+x^{n-2}y+...+xy^{n-2}+y^{n-1}\neq 0$  Any hint? Show that $\lim_{x \to +\infty}\left(f(x)+f'(x)\right)=0 \Rightarrow \lim_{x \to +\infty} f(x)=0$ How to show that $\lim_{x \to +\infty}(f(x)+f'(x))=0 $ implies $\lim_{x \to +\infty} f(x)=0$?