C# Xml Serialization and Memento Pattern - Serializer fails to save the object
Why XML-Serializable class need a parameterless constructor
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' Uniform Scattering with vector OS X computer name not matching what shows on terminal My computer name in System Preferences &gt; Sharing is set to &quot;archos&quot;, but is showing as &quot;iphone&quot; on Terminal. It just started doing this after I loaded Xcode for doing iPhone development: Last login: Mon Nov  7 14:46:55 on ttys001 iphone:~ travis$   Any ideas what could be causing this? Is there a need to set Objects to Nothing I always read that it is recommended to set objects to nothing, once I am done with them. But I normally use them only in functions inside forms.  Isn't the reference lost and memory released when the function scope is left, regardless of setting objects to Nothing?   i.e. is it really necessary to do:  Set db = Nothing Set record_set = Nothing How do I read the history of my reputation? When I visit the reputation tab of my profile, I see a lot of stuff. I can make out some of it, but not all.   What do all the event types mean? Why do some events show an odd reputation gain or not show any reputation change at all? Why are some events sometimes highlighted in yellow? My reputation suddenly dropped, but I don't see anything. What happened? Why do some events disappear from my reputation history? bash: /usr/bin/locale-check: No such file or directory error after i downgraded from ubuntu 18.10 to 18.04 View/edit ID3 data for MP3 files What's a quick and easy way to view and edit ID3 tags (artist, album, etc.) using C#? Send POST data using XMLHttpRequest Each Stack Exchange site should provide users the option of using a dark mode design/theme.  Why is this feature missing?  The major IDEs are already a letdown regarding dark color schemes. I have a code that loops through all the Sites and Webs in a web application.  My code uses for..each loop to navigate through each site and web object.  I was wondering if we are required to dispose the SPWeb and SPSite objects when used inside a loop.  Codes:-  foreach (SPSite thisSite in siteAuditWebApplication.Sites) {  //My operation here  }  Similar to the above code I also have some part of code that loops through all the Web and Lists.  Do we have any best practice for disposing objects inside the loop,  or do i really need to take care about disposing the objects?  Thanks in Adv.. Sudhir Idempotents in a ring without unity (rng) and no zero divisors. Question: Given a ring without unity and with no zero-divisors, is it possible that there are idempotents other than zero?   Def: $a$ is idempotent if $a^2 = a$.   Originally the problem was to show that $1$ and $0$ are the only idempotents in a ring with unity and no zero-divisors, but I wonder what happens if we remove the unity condition.   I am trying to find a ring with idempotents not equal to $0$ or $1$. So far my biggest struggle has been coming up with examples of rings with the given properties.   Does anyone have any hints? How should I attack this problem? I have a (symmetric) matrix M that represents the distance between each pair of nodes. For example,       A   B   C   D   E   F   G   H   I   J   K   L A   0  20  20  20  40  60  60  60 100 120 120 120 B  20   0  20  20  60  80  80  80 120 140 140 140 C  20  20   0  20  60  80  80  80 120 140 140 140 D  20  20  20   0  60  80  80  80 120 140 140 140 E  40  60  60  60   0  20  20  20  60  80  80  80 F  60  80  80  80  20   0  20  20  40  60  60  60 G  60  80  80  80  20  20   0  20  60  80  80  80 H  60  80  80  80  20  20  20   0  60  80  80  80 I 100 120 120 120  60  40  60  60   0  20  20  20 J 120 140 140 140  80  60  80  80  20   0  20  20 K 120 140 140 140  80  60  80  80  20  20   0  20 L 120 140 140 140  80  60  80  80  20  20  20   0   Is there any method to extract clusters from M (if needed, the number of clusters can be fixed), such that each cluster contains nodes with small distances between them. In the example, the clusters would be (A, B, C, D), (E, F, G, H) and (I, J, K, L).  I've already tried UPGMA and k-means but the resulting clusters are very bad.  The distances are the average steps a random walker would take to go from node A to node B (!= A) and go back to node A. It's guaranteed that M^1/2 is a metric. To run k-means, I don't use the centroid. I define the distance between node n cluster c as the average distance between n and all nodes in c.  Thanks a lot :) Why do we require radians in calculus? I think this is just something I've grown used to but can't remember any proof.  When differentiating and integrating with trigonometric functions, we require angles to be taken in radians. Why does it work then and only then? MariaDB won't start on Ubuntu: Can't lock aria control file What should I do when my neural network doesn't generalize well? Poll on best VNC / remote desktop software for assisting others on Windows/Mac machines from Ubuntu?    I've heard good things about TeamViewer and Fog Creek Copilot, but I'm wondering if the included GNOME Vinaigre VNC client is good enough for this.  To specify, I'm looking for best option based on:   SIMPLEST ease-of-use for client to download/use on their end. See #1. Works cross-platform I am able to control client's mouse and/or keyboard from remote machine. I recently upgraded to Ubuntu 13.10, with the new keyboard handling system. The little "switch keyboard" option does not let me set it to Alt+Shift. How can I get this keyboard binding, as I have absolutely no interest in using the Mac-esque Super+Space combo? A friend of mine, native EN speaker, told me that the following is correct written like this:      We met on the 1st of June.   Is that really true? I cannot see any reference that these are used in written text. What do people who are using a pensieve look like? As far as I remember from the books, there's no description of what a person using a Pensieve looks like. When Harry is using the Pensieve, he describes it as if he were falling into it, but it's never stated whether his body really enters the Pensieve, because the experience is just told from his point of view.   Now let's say Dumbledore enters his office while Harry was using the Pensieve -- what would Dumbledore see? Is there an answer in the books/canon? I was reviewing  for , and noticed that nobody voted to close it, even though the page reports a duplicate.      Why does this happen?