I have the following class:      [Table(Name = "test")]     public class Test     {         private string _Name;         [Column(Storage = "_Name")]         public string Name         {             get { return this._Name; }             set { this._Name = value; }         }          private int _Age;         [Column(Storage = "_Age")]         public int Age         {             get { return this._Age; }             set { this._Age = value; }         }          public static DataTable ConvertListToDataTable(List&lt;Test&gt; table) // Used for SqlBulkCopy         {             DataTable dt = new DataTable();             dt.Columns.Add("Name", typeof(string));             dt.Columns.Add("Age", typeof(int));              foreach (Test row in table)             {                 DataRow dr = dt.NewRow();                 dr["Name"] = row.Name;                 dr["Age"] = row.Age;                  dt.Rows.Add(dr);             }              return dt;         }     }   But I'd like to abstract that ConvertListToDataTable method out into a parent base class. Is that possible using reflection? I wouldn't even know where to start.  Note the DataTable will have columns that exactly match (in name without the _ and type) all the properties of the class with a [Column] attribute    This is the reason I want the DataTable:  public void testBulkInsert(string connection, string table, DataTable dt)     {         using (SqlConnection con = new SqlConnection(connection))         {             con.Open();              using (SqlBulkCopy bulkCopy = new SqlBulkCopy(con))             {                 bulkCopy.DestinationTableName = table;                  bulkCopy.WriteToServer(dt);             }         }     }
I have few methods that returns different Generic Lists.   Exists in .net any class static method or whatever to convert any list into a datatable? The only thing that i can imagine is use Reflection to do this.  IF i have this:  List&lt;Whatever&gt; whatever = new List&lt;Whatever&gt;();   (This next code doesn't work of course, but i would like to have the possibility of:  DataTable dt = (DataTable) whatever;
No updates since a long time Using Ubuntu, I have a habit of running: sudo apt update sudo apt upgrade   on every startup. But for a month, I guess, there have been no updates whatsoever. The message shows: All packages are up to date  Now I am starting to worry. Can there be a fault in my update manager? As far as I know, I've made no changes to the package manager settings. But no updates for almost a month seems kind of weird. Any feedback would be helpful. Thanks. How to evaluate environment variables into a string in Python? A groupoid is defined to be a category where every morphism is an isomorphism. So sometimes a group is said to just be a groupoid with one object.   When I try to make sense of this, I denote the single object as $G$. I view the morphisms as the analogue of "elements." The identity $1_G$ is the analogue of the usual identity $e$, we can compose any two morphisms since they are all arrows on $G$, and for any arrow $f$, we have some $f^{-1}$ such that $f\circ f^{-1}=f^{-1}\circ f=1_G$, so the idea of inverses is still there.  So I informally associate the elements of the group in the usual definition to be the arrows in the groupoid. But what does the sole object $G$ in the groupoid "correspond to" if I were to try to informally make sense of a group in the usual sense? Does it even correspond to anything? I'm trying to configure a ubuntu server network. [Edit] My ifconfig: lo: flags=73&lt;UP,LOOPBACK,RUNNING&gt; mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10&lt;host&gt; loop txqueuelen 1000 (Loopback Local) RX packets 352 bytes 26160 (26.1KB) RX erors 0 dropped 0 overruns 0 frame 0 TX packets 352 bytes 26160 (26.1KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0  I edited the /etc/network/interfaces file and here is how it is: auto lo auto eth0 iface eth0 inet static address 192.168.15.141 netmask 255.255.255.0 gateway 192.168.15.1  I'm trying to restart the server and I'm using: sudo ifdown --exclude=lo -a &amp;&amp; sudo ifup --exclude=lo -a  This command is an answer from this link:  And I'm getting the following error: Cannot find device &quot;eth0&quot; Failed to bring up eth0.  I'm pretty lay in configuring a server, so I have no idea what's going on. Can someone help me please? Huge paged pool probably caused by fltMgr.sys , what to do? Note: The legacy Skype for Linux application (v4.*) is now discontinued and was removed from Canonical’s partner repositories, so this question and its answers are obsolete. Please refer to  of our .    I am receiving the following message while I am trying to install Skype:  nidhin@ubuntu:~$ sudo apt-get update nidhin@ubuntu:~$ sudo apt-get install skype Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  skype : Depends: skype-bin but it is not installable E: Unable to correct problems, you have held broken packages   How can I fix this? Most useful additions in KOMA-Script? (Background: I'm a beginner who will mostly use LaTeX for university articles and reports, but no math. Also, as I reside in Canada, the German typography conventions, which I understand KOMA-Script supports better than LaTeX, are less relevant).  I've read that the KOMA-Script package has a lot of improvements for the default document classes. Yet the 's length, about 250 pages, is somewhat daunting. I plan to read the chapters I'm interested in anyway but it'd be useful to have some pointers about low hanging fruits. I searched the site and  answers say KOMA-Script adds improvements but do not delve into details.  I'll ask this as a community wiki topic and, since the audience of this site is international, feel free to mention German typography if KOMA-Script is better there. I'm building a small chat. Now I see but in other chats (whatsapp, facebook mobile chat, sms ...) that the arrangement is always the same:  Left: the chat partner. right: myself      Why is that? What is the tolerable magnetic field (in Tesla) for a hard disk? I was wondering what would be the safest magnetic field for a hard drive so that the data inside it is safe and not wiped off?  For example I have a 2.1 home theatre system and when I take my android phone near it to check the magnetic field range it gives me a reading of 1000 micro Tesla. Would that be considered safe for a nearby hard disk? You can reach this IP address  (if my computer is online). I want to assign a domain to it so I wonder how is that possible when I have no DNS? I do own my domain which is ".com". My IP is static.  Thanks Baking lots of bread - keeping a yeast starter Like many people sheltering-at-home, I'm baking . My yeast supply is running low, and I'm not sure I'll be able to get more on demand. I'd like a simple way to make sure I have yeast on hand for my next batch. Could you all recommend a method for storing a starter culture?  Specifically:   How should I store it (how much? where? I have a fridge ~4C and a wine cooler ~13C)  How often should I feed it? With what? Should I divide the culture when feeding?  How much should I use when baking? Can I treat it like dry active yeast, or does it need more/less time?   For some other context, I'm a novice at making bread (I've made it a few times, and others in my family make it more often). I see lots of advice on sourdough starters, but am interested in something that's a replacement for dry active yeast (unless sourdough starters are actually easier to maintain). I found a  that was similar, but it focused on long-term storage of yeast and the answers did not describe how to use the starter.  Your advice is appreciated. This is the command I entered in the command block: testfor @p {Inventory:[{id:minecraft:diamond,Count:10}]}  But it doesn't seem to work. What am I doing wrong? Are there attacks that break collision resistance but not preimage resistance? Deep learning model (LSTM) with temporal and non temporal attributes How do I remove the space between inline/inline-block elements? How do I write a correct micro-benchmark in Java? When writing (a blog post, script, etc..) what is the proper way to indicate two or more instances of a single letter? For instance, in Monty Python's Bookshop Sketch:     C: I wonder if you might have a copy of "Rarnaby Budge"?      P: No, as I say, we're right out of Edmund Wells!      C: No, not Edmund Wells - Charles Dikkens.      P: (pause - eagerly) Charles Dickens??      C: Yes.      P: (excitedly) You mean "Barnaby Rudge"!      C: No, "Rarnaby Budge" by Charles Dikkens.  That's Dikkens with two Ks, the      well-known Dutch author.      P: (slight pause) No, well we don't have "Rarnaby Budge" by Charles Dikkens      with two Ks, the well-known Dutch author, and perhaps to save time I      should add that we don't have "Karnaby Fudge" by Darles Chickens, or      "Farmer of Sludge" by Marles Pickens, or even "Stickwick Stapers" by Farles      Wickens with four M's and a silent Q!!!!!  Why don't you try W. H. Smith's?      C: Ah did, They sent me here.   I had always believed that plural never uses an apostrophe before the 's' (it's only used for possession), but I have rarely seen in written material the format "four Ms". (On a side note, whoever wrote  also used "two Ks".)  On a side note, and perhaps this should be a separate question, if a Compact Disc is a CD, then two Compact Discs would be two CDs right? (I see "CD's" written everywhere) What is data blending? This term appears frequently in the .  Is blending a specific method in data-mining and statistical learning? I cannot get a relevant result from google.  It seems blending is mixing up outcomes from many models and resulting in a better result. Is there any resource that helps me knowing more about it? Let us say I have added a PPA that has X package that I want but it also has Y package that I do not want to use or receive updates from. How can I, from the same PPA, receive updates for a specific package but deny updates from the same PPA for other packages.  A step by step example would be good since this has happened to me in several PPAs that have a particular package I want but also add a whole bunch of others that I do not yet want to update. Unable to post - login problems with Area 51 ... again I recently signed up for Area 51 with my stackexchange network account/ID, verified the account and logged in.  I see the main page  where I confirm that I am logged in.  I click on the discuss link on the black menubar at the top, which takes me to the discussion zone. From here I click on ask question, which asks me to add  a login even though I have already logged in with my stackexchange ID.  Here if I choose the stackexchange login option then it takes me back to the main page, from where the cycle begins again.