Delete and repost the same answer
How to prevent negative comments/downvoted being deleted by re-posting answers
Colors in Photoshop CS6/CC look different than in browser? ERD for a web development company I am working on an ERD which represents the relationships between entities in a Web development company behavioral model. There I have entities like:   Customer Service ----------- (like: web development, web design, web consultation, ...) Order-item ------- (like: web development, web design, web consultation, ...) Order Invoice Project Project-phase Task --------------- (like: web development task3, web design task7) Developer Delivery ----------- (like: the developed web app, web consultation session, ...)   I have this diagram so far, though I know it still has major problems, and it is just for a start point:    Main concept   Customer makes order-items on services, combined to form an order which relates to an invoice. Each project has multiple project-phases with each project-phase related to an order. Each project-phase has multiple tasks, each of which is assigned to a developer. Each project-phase has a delivery, which will be delivered upon payment of the related orders invoice.   Questions   Are has and contains completely the same? If not, how to choose between them for relationships?! what is the measure?! Are there any rational problems with the Main concept section? Any helpful ideas or suggestions to improve this model?   Any help with this, would be really appreciated.  Update 1  Refined version of the diagram     Update 2  Considering an analogy of a Fast food restaurant would be helpful:   Customer ---------- A hungry person Service ------------- Making a burger, Home delivery, Mobile delivery, ... Order-item --------- A burger, ... Order ---------------- A home-delivered burger Invoice -------------- The printed invoice Project -------------- Serving the customer for a complete year (like a contract) Project-phase ----- Serving the customer for a single day Task ----------------- Preparing the kitchen, process the meat, ... Developer ---------- The cookie Delivery ------------- A burger in wrapped in wax papaer and a drink with the tray   Update 3  ()     Project seems to be unrelated to Customer in your diagram. Is this what you intended?   I think Order is and Project should not be related, as I think it is something off-the-counter and customer has nothing to do with it. she/he is only after the delivery and is concerned about time and money, nothing else. Please tell if I am wrong.     Are all Orders part of a Project or can you have orders that aren't in a project at all?   All Orders are part of a project, except those new ones which are waiting in the process queue.     Similarly, you relate order item directly to customer, but also to order. Are orders split between customers?   Please think of Order-Item as these:   web design web design consultancy domain name consultancy ...   So, customer choose some of these items, collected as an Order which has an invoice and could be paid. Order-Items are directly related to offered Services. I don't understand what do you mean by Are orders split between customers?.     If not you don't need a ternary relationship between customer, order item and service. Rather, an order item is an intersection between order and service. Order items belong to customers by inheritance from order (or even project?)   This is somehow true: Order items belong to customers by inheritance from order, but I think it is more rational to say it like this:     Order-Items, inherited from Service, belong to Order which itself belongs to Customer. Why $SU(3)$ and not $U(3)$? Mann-Whitney U test and K-S test with unequal sample sizes I'm currently dual-booting to either Ubuntu 10.10 or Windows XP. However, I rarely use windows and would like to remove it.  I've use the Ubuntu live CD to access GParted. I've also deleted the windows partitions (I think), which were labeled both ntfs and fat32.  I'm just not sure how to extend the Ubuntu partition to cover the unallocated space. Furthermore, how do I deal with the 'key' designations, which state that a partition is busy.  Help! Run command on another(new) terminal window How do I diagnose the source of focus problem in a camera? Probably a novice question, but how do I correctly diagnose from a photo for what reason that camera wasn't able to focus properly?  It can be any 1 of the following   Unsteady hand Lens issue Metering Re-Calibration required in camera or ...   Is there a set of unsaid protocols that needs to be followed by a photographer?  Goal is to get a sharp and crisp image prior to editing.  [PS: I own a Nikon D5200.] Encode URL in JavaScript? Is it possible to detect if client supports SNI? Lualatex and bm package I've updated my latex packages yesterday and have now issues with lualatex. One problem arising for me now is, that lualatex does not print bold characters using the bm package.  When I compile the following MWE with pdflatex everything looks okay, but for lualatex it doesn't:  \documentclass{article} \usepackage{bm} \begin{document} % Bold $\bm{E}$ \\ Normal $E$ % \end{document}   Output using pdflatex    using lualatex    Also trying to fall back to an earlier version of lualatex by using \RequirePackage{luatex85} does not work for me.  When having a look at the log file, there are the suspicious messages   LaTeX Font Info:    Redeclaring math alphabet \mathbf on input line 142. LaTeX Info: Redefining \bm on input line 208. [...] Missing character: There is no х (U+0445) in font cmmi10!   Can anyone tell me, what is going on here and what I need to do to solve this problem, since I am quite sure lualatex and bm worked before? Minimum distance between the curves $f(x) =e^x$ and $g(x) =\ln x$ What is the minimum distance between the curves $f(x) =e^x$ and $g(x) = \ln x$? I didn't understand how to solve the problem. Please help me. How can I backup my programs/applications, so that after I reinstall a new one, I can still use the backup-ed ones? Is there a way, that I could backup all my programs, all apps, put them in a directory or something, so that I could install them quickly next time, without having to manually going over the app center, downloading them from terminal, etc?  Note that I might import them from a distro other than the one I exported them on. So, say I'm in Ubuntu, exported some stuff, and then installed BT and wanted to import them from there. Poking around the people's profiles to see how the  I keep seeing things like this:  It looks strange to have a 25/5 progress on a badge, but the dialog explains that what this user is missing is a positive record of asking. The  is: (total questions - negative questions - closed - deleted)/total questions &gt;= 0.5  If you look at , it's hard to see how his asking record could be anything but exceptional. According to  his asking record is 0.875. The problem is that he asked many of his questions in the early days of the site that were well-received, but later deleted. Some were deleted after the question was . My suggestion is that we change the asking record formula: (total questions - negative questions - closed - early deleted)/total questions &gt;= 0.5  The early deleted variable counts only questions deleted within 60 days of being asked. I picked 60 days because it's the dividing line between being able to . After looking through the list of people who would get the Curious badge on Stack Overflow with this change, I noticed a few things:  Many of them have self-deleted questions on their record. Often these are questions that were asked and basically ignored. After a few months, the original asker went back and deleted their question. It's hard to know what happened in each individual case, but my guess is that they never found a solution to their specific question and worked around the issue instead. (I have a few of those, but I'm not courteous enough to delete them.)  These users don't tend to ask the same question over and over again. I ran a similar test that excluded self-deleted questions. That group included a lot of cases of people asking a question, not getting an answer after a day or two, deleting the question, and asking the same question again. This strategy doesn't work if you wait two months to delete your first question.  Two mods (George Stocker and Gordon), Tim Post, and myself are on the list of users who would get a Curious badge under this system. On Meta Stack Exchange 5 current employees would be newly eligible for the badge. In my (admittedly biased) opinion, these are curious users.  I did some spot check on the lower end of the reputation scale. Every user I looked at fit my model of the ideal recipient of the Curious badge; they asked mostly upvoted questions with few closed questions. This change would add about 3286 new Curious badges on Stack Overflow, so there will certainly be a few exceptions I didn't find. But I think they are more than balanced by the clearly deserving users who will be awarded new badges.    Proposal: For the Curious, Inquisitive, and Socratic badges, don't count questions deleted 60 or more days after asking as deleted for the purposes of calculating asking record. These questions may still count as negatively scored or closed, if applicable. Days that include deleted questions, no matter when they are deleted, do not count toward the days asked criteria.   Modified Proposal: For the Curious, Inquisitive, and Socratic badges, don't count questions deleted or closed 60 or more days after asking as deleted or closed for the purposes of calculating asking record. These questions may still count as negatively scored, if applicable. Days that include deleted or closed questions, no matter when they are deleted or closed, do not count toward the days asked criteria. On Stack Overflow, that would add about 665 Curious badges, including two more for moderators (casperOne and 0x7fffffff) and one for an employee (Oded). On the opposite end of the reputation scale my spot checks are a bit muddier. Instead of a small number of deleted (and usually closed) questions, this list turns up users whose latest questions still aren't all that interesting. Even so, on balance a few extraneous bronze badges seem worthwhile in exchange for acknowledging truly curious users. on the premise that it "wasn't getting any attention" and now it has gotten a bunch of helpful answers which all help me in some ways making it impossible for me to decide which one to award the bounty to.  Shouldn't there be an option to award the bounty equally among selected answerers, especially in this case where was getting no answers whatsoever before the bounty, or am I overthinking it and should award it to the first answer? Select from list of reasons when performing downvotes 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? I'm trying to figure out a good workflow for developing scripts and add-ons in Blender. Here's what I'm currently doing as I try my luck with a PyNode add-on:   Open blender Create a text editor panel Open my script (external text file) Edit my script in a nice external editor Reload the script Save the .blend file Run the script   Now that I can see what my code does, this Blender instance has been modified, so I can't (make changes to my script and) run my script again. So I do this:   Close blender Open blender with the .blend from step 6 and repeat steps 4-7, over and over and over..   Is there a better workflow for this sort of thing? Question about the proof of Ramsey's Theorem I was reading up on a proof of Ramsey's Theorem and I can't understand this part of the proof:      Pick a vertex $v$ from the graph, and partition the remaining vertices into two sets $M$ and $N$, such that for every vertex $w$, $w$ is in $M$ if $(v, w)$ is blue, and $w$ is in $N$ if $(v, w)$ is red. Because the graph has $R(r - 1, s) + R(r, s - 1) = |M| + |N| + 1$ vertices, it follows that either $|M| \geq R(r − 1, s)$ or $|N| \geq R(r, s − 1)$.   Why is that $|M| \geq R(r − 1, s)$ or $|N| \geq R(r, s − 1)$? I know from the proof of $R(3,3) = 6$ that given a vertex, at least $3$ are guaranteed to be either red or blue, so what is the pigeonhole argument for the general case? I know that I can make certain blocks only placeable on a specified block, but what is the command to give an item that can only BREAK certain blocks? I want to store courseworks marks of n courseworks into n variables, such as cw1 and cw2 etc. Using variable variables how can I come with cw1, cw2 etc.   How can I dynamically create variables?