I've been trying really hard to understand the construction of a logical circuit using only NAND while also trying to minimize the number of gates. The minimization of gates is what is really confusing me, so my thought process is like so.   1) Start with the desired expression of the end 2) Work backwards with the understanding that the output(s) were also derived from a NAND 3) Run intermediate expression through K-Map to get most simplified form 4) Attempt to convert to an AND if it isn't already using DeMorgans law  5) Rinse and repeat steps 2-5    I attempted this approach with XOR using only NAND and did indeed get 4 gates, but it's different than ones I see online and just wanted to validate if it's correct or not and if not, where my errors are.    I'm worried that the first NAND where I feed the output into two separate gates isn't valid, so looking for some confirmation on that as well.  Thanks.
I try to resolve a problem, how to implement a xor gate with nand's gate.  A xor B = A'B + AB'  So, this becomes :  A xor B = A'B + AB' + AA' + BB' = A(A' + B') + B(A' + B') = (A + B)(A' + B') =   (with De Morgan apllied on the second term)  = (A + B)(AB)' = ..... ?  In this point i am blocked. If someone can help me, please. Thank you.
How to rename wp-includes folder? Is there a way that we could rename wp-includes folder   I have found out there are ways to do for other folders. But how do we do it for wp-includes folder? What IDE to use for Python? Let $a_n=\cos(a_{n-1}), L=[a_1,a_2,...,a_n,...].$ Is there an $a_0$ such that $L$ is dense in$[-1,1]?$ How to make Gnome's "Activities" bar always visible? I just installed Gnome, and when I click on "Activities" a convenient bar shows up from the left, allowing me to switch to other applications. Unfortunately, the bar hides as soon as I choose an application.  How to make this bar always visible? Why the rows returns by "explain" is not equal to count()? I'm calculating the covariance of a distribution in parallel and I need to combine the distributed results into on singular Gaussian. How do I combine the two?  Linearly interpolating between the two almost works, if they are similarly distributed and sized.   provides a forumla at the bottom for combination but it doesn't seem right; two identically distributed distributions should have the same covariance, but the formula at the bottom of the page doubles the covariance.  Is there a way to combine two matrices? In some literature, I have read that a regression with multiple explanatory variables, if in different units, needed to be standardized.  (Standardizing consists in subtracting the mean and dividing by the standard deviation.)  In which other cases do I need to standardize my data?  Are there cases in which I should only center my data (i.e., without dividing by standard deviation)? "sudo -u postgres psql postgres" does not ask for password How to keep font preferences in TexWorks 4 The default font is too small on my screen at the resolution I have it, so I like to reset the font to size 12, but it appears I have to do this everytime I launch the program.  How do I make it remember my preferences? I am testing the new  &lt;lightning:datatable&gt;, it is really good, and is a good replacement for most of my use cases which today I use a custom list component that I have developed.  I am getting data from my server through apex method, to populate it into the &lt;lightning:datatable&gt; component. I can bind the returned list directly to the data attribute and if the column names are same as the field names, all data is bound correctly.  The problem occurs when I get data from a parent record. For example - I want the Account name of my contact.  This example can show the problem:  Component Markup    &lt;aura:handler name="init" value="{!this}" action="{!c.doInit}"/&gt;  &lt;aura:attribute name="mydata" type="Object"/&gt; &lt;aura:attribute name="mycolumns" type="List"/&gt; &lt;aura:attribute name="sortedBy" type="String"/&gt; &lt;aura:attribute name="sortedDirection" type="String"/&gt;  &lt;lightning:datatable data="{! v.mydata }"                      columns="{! v.mycolumns }"                      keyField="Id"                      onrowselection="{! c.getSelectedName }"                      onsort="{!c.updateColumnSorting}"                      sortedBy="{!v.sortedBy}"                      sortedDirection="{!v.sortedDirection}"                      hideCheckboxColumn="{!false}" /&gt;        Component Controller  ({     doInit: function (component, event, helper) {         component.set('v.mycolumns', [                     {label: 'Id', fieldName: 'Id', type: 'id', sortable:"true"},                     {label: 'First Name', fieldName: 'FirstName', type: 'text', sortable:"true"},                     {label: 'Last Name', fieldName: 'LastName', type: 'text', sortable:"true"},                     {label: 'First Name Hebrew', fieldName: 'First_name_Hebrew__c', type: 'text', sortable:"true"},                     {label: 'Last Name Hebrew', fieldName: 'Last_name_Hebrew__c', type: 'text', sortable:"true"},                     {label: 'Account', fieldName: 'Account.Name', type: 'text', sortable:"true"},                     {label: 'Email', fieldName: 'Email', type: 'email', sortable:"true"},                     {label: 'Phone', fieldName: 'Phone', type: 'phone', sortable:"true"}                 ]);          var action = component.get("c.getRecordsFromDb");         action.setParams({             sObjectName: "Contact",             commaDelimitedFieldNames: "Id,FirstName,LastName,First_name_Hebrew__c,Last_name_Hebrew__c,Account.Name,Email,Phone",             filter: ""         });         action.setCallback(this, function(response){             var state = response.getState();             if (component.isValid() &amp;&amp; state === "SUCCESS") {                 var data = response.getReturnValue();                  component.set("v.mydata", data);             }         });         $A.enqueueAction(action);     } })   APEX Aura Enabled Method  @AuraEnabled public static List&lt;sObject&gt; getRecordsFromDb(String sObjectName,         String commaDelimitedFieldNames,         String filter) {      system.debug('\n\n\n\ngetRecordsFromDb sObjectName: ' + sObjectName + ', commaDelimitedFieldNames: ' + commaDelimitedFieldNames + ', filter: ' + filter + '\n\n\n\n');      // create a dynamic soql to get the value of the field     String sql = 'SELECT ' + commaDelimitedFieldNames + ' FROM ' + sObjectName;      if (!String.isBlank(filter))         sql += ' WHERE ' + filter;      system.debug('\n\n\n\ngetRecordsFromDb sql: ' + sql + '\n\n\n\n');     List&lt;sObject&gt; records = Database.query(sql);     system.debug('\n\n\n\ngetRecordsFromDb: ' + records + '\n\n\n\n');      return records; }   The problem is with the Account.Name field - the &lt;lightning:datatable&gt; component does not display the column data.   I know that the data is returned ok, and I know that in the object that is returned, the Account is contained like an object (probably this is the problem):    Is there a good way to show parent record data with this component? What sort of cheat sheets for a new DM lead to a better flowing 5e game of Dungeons and Dragons? The question is, what elements on a DM screen are essential? I'm new at playing and DMing, altough a lot of experience watching games, just got a group to play with now. Started with the starter set in 5E and the Lost Mine of Phandelver adventure, however I've noticed the game can come to a stop when checking the rules or how to do something, while getting the books and stuff like that. So I thought to make a DM screen with some cheat sheets, of the most usual things new players, and new DM's have doubts on, and how to make the game flow well without long rule-checking breaks. What are the essential things to have on that screen? So far this is what I found  but not sure if it has all I need or so much stuff that'll also make the game stop a lot while cheking it out. Do the topologies with the same convergent sequences coincide? Do the same sequential convergence in two topologies the result are the same topologies? Let $X$ be topological  space with topologies $\tau$, $\tau'$. Let $(x_{n})\in X$ and $x\in X$ and $(x_{n})\rightarrow x$ with $\tau$ if and only if $(x_{n})\rightarrow x$ with $\tau'$. Do the two topologies on $X$ coincide? I want to reinstall Ubuntu from scratch.   I have read ( and ) that it is recommended to have 3 partitions for the desktop installation: root, home and swap as having a separate home and root can simplify the process if you want to upgrade or reinstall Ubuntu (if you break something by mistake).  But there is no type of formula (that I can find) on how big each partition should be. I know this is somewhat dependant on what you plan to install. I want to have flexibility down the line to install new software without having to worry about shifting the partition sizes around.  Does anyone know of a formula or percentage breakdown that they have used to successfully calculate partition sizes?  i.e. x% of space will be allocated to the swap, y% of space to the root partition and z% of space to the home partition I wrote an email to Prof. X to ask about a PhD student vacancy and talk about a topic in one of his papers. He refused to accept me because of his retirement and replied with a warming email. In that, he cc-ed two others that he thought might be interested in me, Prof. Y and Prof. Z. Prof. Y refused because his area is somewhat distinct to mine; Prof. Z hasn't answered yet. I haven't responded to anyone yet. I also want to ask Prof. X's opinion about Prof. T's work, who is actually the one that I want to follow.  How should I respond to this? My feeling is that if Prof. X cc-ed others, this means that he wants to create a group discussion. As a group, everyone should have the right to hear each other voices. Should I reply to the group with a generic "thank you" email?  But if I do that, then I have to send another private emails to Prof. X and Prof. Z. I just worry that this will make me looks sneaky because I don't have the courage to discuss this in public.   What should I do? Ambiguity of "quite" Does the war have an ending in Planetside 2? As enemy bases are captured, they just seem to respawn right in the middle of friendly captured territory. This is looking like a perpetual cycle, and none of the three teams ever gets closer than to the very edge of winning the whole continent, only to lose lots of territory again.  So is this by design? Is Planetside 2 eternally to be at war, with no winner ever? I was hoping it would be more like a 'match'. I admit that both are almost the same thing, but there is at least the closure of winning/losing sides this way. Get name of caller function in PHP? Is reusing old code for a new assignment considered self plagiarism? How to protect yourself if you consider it to be, and a group partner does not? I am taking a graduate machine learning course and am working with another student in the class on a final project. In his undergraduate studies, the other student wrote code that accomplished a similar task, and mentioned in our previous meeting that we would be able to leverage much of this code for our current project if we wanted to. I responded that I believe it would constitute textbook cheating and self-plagiarism, but the other student disagrees and believes that re-using the code would not constitute self-plagiarism because he himself wrote it, and it would be redundant to re-write what he had already done.  Now, the course instructors have made it clear that we are not allowed to use any external libraries to perform certain classes of algorithms for this project. This students' prior code would fall under this category of prohibited tools, but he claims that it doesn't qualify because he wrote the code himself (so it is not an "external library"). I believe this is hyperbole, but he disagrees. It is also worth mentioning that this code is licensed under an , though it is not widely used at all.  It has gotten to the point where I am uncomfortable going forward with the project by re-using his old code, and he does not want to do work on the project that he considers to be redundant. My worry is that if it turns out we're not allowed to reuse the code, then using it could cause us to fail the course and severely negatively affect our reputations. Even if we don't get caught, I personally feel that it would be unethical to copy-paste old code and present it as though it's fresh code for this current project.  I am unsure of how to proceed. I have tried reaching out to the professor of the course some time ago (she has been traveling for some conferences recently and will be for a while) but I have not heard back from her. Additionally, the course TAs have been unwilling to weigh-in on the situation.  I have the following questions:   Is the above situation usually considered to be self plagiarism? Why or why not? Is the above act typically allowed in an academic setting? Assuming you are in my position, and consider re-using the code to be cheating and/or unethical, what is the best way to proceed; both in terms of how to make progress on the project, how to compromise with my group mate, and how to protect myself if my group mate refuses to budge. What is the promotion rate of professors in United States? I'm writing an essay, and want to know the promotion rate and average duration from assistant professor to associate professor and associate professor to professor in recent years. Sadly I don't know the data for the US. Could anyone tell me? What words are commonly mispronounced by literate people who read them before they heard them?