He and I share a/the same book.   The book hasn't been mentioned before. So which one is used with "same", "a" or "the"?   Because the book hasn't been mentioned before, I want to use "a".  Because I remember that "same" is always used with "the" in front, I have to use "the".
Since I'm confused with these two phrases, I did a search in Google Books hoping to find some examples. But then I found :     Two private spaces or replicas cannot contain the same object with two distinct references. For example, during a disconnected phase, the pump can be present in two different private spaces and still be designated with the same name. During a meeting, two replicas use a same name to access the pump object(local or distant).   This made me more confused. I don't really understand why "the same name" was used in one sentence while "a same name" was used in another. Are there any differences between them?
can you help me to do a difference of CDF? I have 2 CDF's with equal number of points that I want to compare. These are from:   Temperature of 1 month from 2012 Mean temperature across months   What can I do to obtain this difference, this is from the formula of Finkelstein-Schafer How do you normalize a zero vector Suppose $f: \mathbb{R} \to \mathbb{R}$ is a continuous function which is 1-1, then does $f$ map Borel sets onto Borel sets? I have played the game Othello (Reversi) numerous times but I never approach it with a specific logic or algorithm to apply on each move in my mind. I won many times and lost as much. How would one approach this game? How would one work in his mind to prune the possible moves and choose the &quot;right&quot; one in each step? I see that most Othello CPUs more or less &quot;think&quot; the same at each move, how should I think on each move? Create database fields to an existing table when installing a module I'm new to drupal and I need some help.  I created a new module with name user_extra. Which create necessery table when Installing the module.  But I also need to insert some database field in 'users_field_data' table ('user_extra_id' and 'user_office')  In baseFieldDefinitions I wrote all necessery database table fields for user_extra table.   public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {     // Standard field, used as a unique if primary index.     $fields['id'] = BaseFieldDefinition::create('integer')         -&gt;setLabel(t('Unit ID'))         -&gt;setDescription(t('The unit ID.'))         -&gt;setReadOnly(TRUE)         -&gt;setSetting('unsigned', TRUE);      $fields['uuid'] = BaseFieldDefinition::create('uuid')         -&gt;setLabel(t('UUID'))         -&gt;setDescription(t('The unit UUID.'))         -&gt;setReadOnly(TRUE);         .         .         .     $fields['user_info'] = BaseFieldDefinition::create('string')         -&gt;setLabel(t('User Info'))         -&gt;setDescription(t("The User Info"))         -&gt;setSetting('max_length', 255)         -&gt;setDisplayOptions('form', array(           'type' =&gt; 'string_textfield',           'weight' =&gt; 10,         ))         -&gt;setDisplayConfigurable('form', TRUE);      return $fields;      }   When I install the module it inserts all values that I define in baseFieldDefinitions.  But I also need to create 'user_extra_id' and 'user_office' in 'users_field_data' table with setDisplayOptions and setDisplayConfigurable options.  This is the commenting that I made in entity file  /**  * @ContentEntityType(  *   id = "user_extra",  *   label = @Translation("user extra"),  *   handlers = {  *     "storage" = "Drupal\user_extra\UserextraStorage",  *     "storage_schema" = "Drupal\user_extra\UserextraStorageSchema",  *     "access" = "Drupal\user_extra\UserextraAccessControlHandler",  *     "list_builder" = "Drupal\user_extra\UserextraListBuilder",  *     "view_builder" = "Drupal\user_extra\UserextraViewBuilder",  *     "views_data" = "Drupal\user_extra\UserextraViewsData",  *     "form" = {  *       "default" = "Drupal\user_extra\Form\UserextraForm",  *       "add" = "Drupal\user_extra\Form\UserextraAddForm",  *       "edit" = "Drupal\user_extra\Form\UserextraEditForm",  *       "delete" = "Drupal\user_extra\Form\UserextraDeleteForm",  *     }  *   },  *   admin_permission = "administer user_extra",  *   base_table = "user_extra",  *   entity_keys = {  *     "id" = "id",  *     "label" = "name",  *     "uuid" = "uuid",  *   },  *   links = {  *     "canonical" = "/admin/user_extra/{user_extra}",  *     "add-form" = "/admin/user_extra/add",  *     "delete-form" = "/admin/user_extra/{user_extra}/delete",  *     "overview-form" = "/admin/user_extra/${user_extra}/overview",  *     "edit-form" = "/admin/user_extra/{user_extra}",  *     "collection" = "/admin/user_extra",  *     "children" = "/admin/user_extra/{user_extra}/children",  *   },  * )  */ JavaScript for...in vs for Do you think there is a big difference in for...in and for loops? What kind of "for" do you prefer to use and why?  Let's say we have an array of associative arrays:  var myArray = [{'key': 'value'}, {'key': 'value1'}];   So we can iterate:  for (var i = 0; i &lt; myArray.length; i++)   And:  for (var i in myArray)   I don't see a big difference. Are there any performance issues? There are several distinct usages:   kernel density estimation   kernel trick   kernel smoothing   Please explain what the "kernel" in them means, in plain English, in your own words. How can I debug my JavaScript code? Avoiding errors due to unexpanded asterisk In bash I often use for-loops such as the following  for file in *.type; do    sommecommand "$file";  done;   to perform an operation for all files matching *.type. If no file with this ending is found in the working directories the asterisk is not expanded and usually I will get an error message saying that somecommand didn't find the file. I can immediately think of several ways to avoid this error. But adding a conditional does not seem to be very elegant. Is there a short and clean way to achieve this? Set Windows process (or user) memory limit Is there any way to set a system wide memory limit a process can use in Windows XP? I have a couple of unstable apps which do work ok for most of the time but can hit a bug which results in eating whole memory in a matter of seconds (or at least I suppose that's it). This results in a hard reset as Windows becomes totally unresponsive and I lose my work.  I would like to be able to do something like the /etc/limits on Linux - setting M90, for instance (to set 90% max memory for a single user to allocate). So the system gets the remaining 10% no matter what. I used python add in to make a tool bar in Arcmap that edits features on a map. It works on a file geodatabase, but not on an ArcSDE version one. I've been getting an FDO error: 0. The solutions that I've found all involve opening a workspace, but I'm getting an error doing that as well. Here is the relevant portion of my code:          outFolderPath = r"U:\tempStuff"         outName = "Stuff.sde"         databasePlatform = "SQL_Server"         instance = "SQL Server"         arcpy.CreateDatabaseConnection_management(outFolderPath, outName,                                                   databasePlatform,                                                   instance)         print "Centroid of buidling:(%r,%r) Side length: %r" % (xCoordinate,                                                                 yCoordinate,                                                                 bob)         print "workspace is %r" % outName #outName is workspace          #Start edit session with an undo/redo stack then start         #edit operation         print "Starting editing"         edit = arcpy.da.Editor(outName) #outName is workspace Line 86         edit.startEditing(True, True)         edit.startOperation()          #stuff happens          cursor = arcpy.da.InsertCursor( fc, ["SHAPE@"])         cursor.insertRow([stuff])             #stop the edit operation and then save changes         edit.stopOperation()         edit.stopEditing(True)          del cursor         print "Building should be drawn"   This is the exact error I've been getting:  Traceback (most recent call last):   File "C:\Users\153289\AppData\Local\ESRI\Desktop10.3\AssemblyCache\{0BEF4E61-6332-4BCA-A908-959CA3C0B4E7}\leetScripts_addin.py", line 86, in onClick     edit = arcpy.da.Editor(outName)#outName is workspace RuntimeError: cannot open workspace   What's am I doing wrong in my code? Is there a destructor for Java? Suppose that you are given a polynomial $p(x)$ as a black box (i.e. some oracle, to which you feed $x$ and it returns $p(x)$). It is known that the coefficients of $p(x)$ are all positive integers. How do you determine what $p(x)$ is in the quickest way possible?  (There are 2 metrics for quickness: the number of calls to the oracle and total number of operations. The relationship between the two is not given so we try to minimize both.) Continuity of $L^1$ functions with respect to translation breaking of output into new lines I created a script ./abc.  I want to break the ouput into new lines.  mycode:  #!/bin/bash dir="$1"  echo -n "size of file:" du -hba $dir | sort -n -r | tail -1   my output is:   size of files: 20kb /path/to/sport   I want the output as:  size of files: 20kb          /path/to/sport SQL JOIN - WHERE clause vs. ON clause "Unable to cast object of type 'System.Byte[]' to type 'System.IConvertible'." error in Photo: why and how do I fix it? I need a two word phrase to refer to a community of people (academia + non-academia) who come together to share/exchange their knowledge/ideas openly on topics of their interests/ specializations.  I would appreciate the use of small and easier/common words for the phrase. Single words are also acceptable. Feel free to throw out your creative ideas and newly invented phrases. How to completely remove Notepad++ in Ubuntu 18.04 terminal?  I can't find it in Synaptic package manager, and don't know where is on system, but I can see an icon in Activity. It is probably not completely installed, because I can't open it. Do you mind me / my Do the following sentences mean the same?        Do you mind if I open the window?   Do you mind me opening the window?   Do you mind my opening the window?      for me they all mean the same, bit #3 is a little less common as far as I've seen so far. Do you agree with me?  PS. I am more about the AmE register.