I need to update the LDAP module from 7.1.x to 7.2.x to remove a fatal error. When I navigate to the update.php script, there are 18 updates. When I run the script I get this error:  An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: https://www-dev.site.com/mysite/update.php?op=selection&amp;token=Ct2z9U8FEbzMqkjyvubbvaL_WxETSh-8xy_r7FqAzgE&amp;id=5164&amp;op=do  StatusText: OK ResponseText: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 523800 bytes) in /var/www/webaccounts/mysite/public_html/sites/all/modules/ldap/ldap_servers/ldap_servers.install on line 290   It started at 128 mb, then I increased it in double increments to try and solve the problem but there is no change, even at 1024 mb. This doesn't seem to be a memory issue. What is causing the problem?
I have a issue with my Drupal installation, for example:   when I enable or disable the modules, It redirects me to a blank page, when I create a new content type and save it, redirects me to a blank page, when I add a new view and save it, it redirects me to a blank page, when I try to clear the cache, it redirects me back to a blank page, or in similar cases.   Basically all the confirmation pages redirect me to a white screen. When I refresh it again, it shows me the page. I tried to increase the PHP memory value but it doesn't help.  Are there any other solutions for this?  The error which I'm having:      Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 8192 bytes) in sites/all/modules/views/plugins/views_plugin_localization_none.inc on line 1
Word that means "the opposite of what you would expect" I'm looking for a word that means the opposite of what one would expect. This word might be used to express the surprise that a teenager's grandmother uses text messaging much more than he does, or that a city seems brighter at night than it does during the day.   I'm not seeking the word ironic or irony which refer to the use of something to describe its opposite experience or emotion. Did regular Americans speak the way actors in the 30s and 1940s did? I watch a lot of old movies, and I've noticed that American actors of the 1930s and 1940s often spoke in a quasi-generic-posh-British accent.  Katherine Hepburn's accent would be the perfect example. It seems exaggerated, and I imagine it was not common off the stage and screen. What was that? Was it just an accent or was it a dialect? Did real people actually speak that way? How to automatically fetch missing dependencies when installing software from .deb? I'm trying to install  on my Ubuntu box (11.04). The website has a Ubuntu .deb available for download (for 10.10 and 10.04 so I chose 10.10).   However,   sudo dpkg -i mysql-workbench-gpl-5.2.34-1ubu1010-amd64.deb   yields:  (Reading database ... 194069 files and directories currently installed.) Preparing to replace mysql-workbench-gpl 5.2.34-1ubu1010 (using mysql-workbench-gpl-5.2.34-1ubu1010-amd64.deb) ... Unpacking replacement mysql-workbench-gpl ... dpkg: dependency problems prevent configuration of mysql-workbench-gpl:  mysql-workbench-gpl depends on libctemplate0; however:   Package libctemplate0 is not installed.  mysql-workbench-gpl depends on libpython2.6 (&gt;= 2.6); however:   Package libpython2.6 is not installed.  mysql-workbench-gpl depends on libzip1 (&gt;= 0.8); however:   Package libzip1 is not installed.  mysql-workbench-gpl depends on python-paramiko; however:   Package python-paramiko is not installed.  mysql-workbench-gpl depends on python-pysqlite2; however:   Package python-pysqlite2 is not installed. dpkg: error processing mysql-workbench-gpl (--install):  dependency problems - leaving unconfigured Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for desktop-file-utils ... Processing triggers for python-gmenu ... Rebuilding /usr/share/applications/desktop.en_US.utf8.cache... Processing triggers for python-support ... Errors were encountered while processing:  mysql-workbench-gpl   My question is, is there a way to tell dpkg to automatically fetch missing dependencies, or do I need to manually apt-get install missing packages like libctemplate0 and  libpython2.6?   (Or alternatively, is there some other way to get MySQL Workbench easily up &amp; running?) What's the right course of action for cross-site duplicates?  There are two flavors:   A question is posted which belongs on another site and ends up already having been asked there. I can't find an example right now, but it's bound to happen soon if it hasn't already. The same question is posted in two places at the same time. Take  for example, which is a duplicate of , posted within a half hour of each other by the same user.   Possible actions:   Move it to the proper site and close it once it gets there as a duplicate. Provide a way to close it right away as a cross-site duplicate, without moving it first. Flag it and let a moderator merge them. Close it as "no longer relevant" or something else.   Additionally, flavor 2 is a bit of a special case; perhaps the question really spans both sites in terms of content and intended audience. Should multiple-postings in this case be allowed? If so, should they somehow be linked to each other? If not, how do we avoid a migration war? About 0.999... = 1 I've just happened to read this  on MO (that of course has been closed) and some of the answers to a similar  on MSE.   I know almost nothing of nonstandard analysis and was asking myself if something like the sentence « $1- 0.999 \dots$ is a nonzero positive infinitesimal» could be easily expressed and proved in nonstandard analysis.  First of all, what is 0.999... ? If we take the usual definition as a series or as a limit of a sequence of rationals, then it will still be a real number and equal to $1$ (I guess by "transfer principle", but please correct me if I'm wrong).  Instead, let's define  $$0.9_N:=\sum_{i=1}^N 9\cdot 10^{-i} $$  where $N\in{}^*\mathbb{N}\setminus\mathbb{N}$ is an infinite nonstandard natural number. This $0.9_N$ is a legitimate element of ${}^*\mathbb{R}$, expressed as $0.$ followed by an infinite number of "$9$" digits.  What can be said about $\epsilon_N:=1-0.9_N$ ? Is there an elementary proof that $\epsilon_N$ is a positive infinitesimal of ${}^*\mathbb{R}$ ? (by "elementary" I mean just order and field axioms and the intuitive facts about infinitesimals, like that for $x$ infinite $1/x$ is infinitesimal etc.; no nonprincipal ultrafilters &amp; C). I am trying to burn a shapefile to a raster using GDAL's RasterizeLayer. I pre-create an area of interest raster from a different shapefile, given a specific pixel size. This AOI then serves as a base for all following rasterizations (same number of collumns and rows, same projection and geotransform).  The issue occurs, however, when I go to burn the shapes to their own raster, based on the same pixel size and projections. The link below (don't have enough rep to post the image), shows the original shapefile in tan, and the dark pink where RasterizeLayer has burned data. The light pink is nodata values for the dark pink raster data. The grey is the AOI based on which the shapefile burn was completed.  Given the extents of the shapefile polygons, I would expect to see burn values in the bottom two corners, as well as the two pixels underneath the data that does show. Obviously, however, this is not the case.    As follows is the code that I used to generate these. All of the shapes were created using QGIS, and were all created in the same projection.  (It should be noted that the gridding in the picture shown was just to give an idea of the pixel size I was using.)  from osgeo import ogr from osgeo import gdal  aoi_uri = 'AOI_Raster.tif' aoi_raster = gdal.Open(aoi_uri)  def new_raster_from_base(base, outputURI, format, nodata, datatype):      cols = base.RasterXSize     rows = base.RasterYSize     projection = base.GetProjection()     geotransform = base.GetGeoTransform()     bands = base.RasterCount      driver = gdal.GetDriverByName(format)      new_raster = driver.Create(str(outputURI), cols, rows, bands, datatype)     new_raster.SetProjection(projection)     new_raster.SetGeoTransform(geotransform)      for i in range(bands):         new_raster.GetRasterBand(i + 1).SetNoDataValue(nodata)         new_raster.GetRasterBand(i + 1).Fill(nodata)      return new_raster  shape_uri = 'activity_3.shp' shape_datasource = ogr.Open(shape_uri) shape_layer = shape_datasource.GetLayer()  raster_out = 'new_raster.tif'  raster_dataset = new_raster_from_base(aoi_raster, raster_out, 'GTiff',                                 -1, gdal.GDT_Int32) band = raster_dataset.GetRasterBand(1) nodata = band.GetNoDataValue()  band.Fill(nodata)  gdal.RasterizeLayer(raster_dataset, [1], shape_layer, burn_values=[1])   Is this a bug in GDAL, or is RasterizeLayer burning data based on something other than just the presence or lack of a polygon within a specified pixel area?  The files that I was using can be found . Diamond moderators  . In the second section from the top—entitled &quot;Ask questions, get answers, no distractions&quot;—that takes us to an opportunity to select one of a page full of questions from the site as the example question used on the about page. The selections currently available on physics are a little idiosyncratic. Is there some rhyme or reason to these? I suppose that we want a good example question to:  Be accessible to the intended audience (perhaps even to the newest and most naive person in that audience) Be judged at least decent by the community (positive score) Have more than one answer which are also judged acceptable (again positive score)  What else? How does a question end up on the list? bash if -a vs -e option Both about -a and -e options in  is said:  -a file     True if file exists. -e file     True if file exists.    Trying to get what the difference is I ran the following script:  resin_dir=/Test/Resin_wheleph/Results  if [ -e ${resin_dir} ] ; then     echo "-e "; fi  if [ ! -e ${resin_dir} ] ; then     echo "! -e"; fi  if [ -a ${resin_dir} ] ; then     echo "-a"; fi  if [ ! -a ${resin_dir} ] ; then     echo "! -a"; fi   /Test/Resin_wheleph/Results exists and is a directory. And this is what I get:  -e -a ! -a   which seems to be a little strange (notice -a and  ! -a). But when I use double brackets (e. g. if [[ -e ${resin_dir} ]]) in the similar script it gives reasonable output:  -e -a   So:    What is a difference between -a and -e options? Why -a produces a strange result when used inside single brackets? Is the expression "yesterday afternoon" correct? Is it proper to use the following expressions  I started to London yesterday afternoon . I started to London yesterday morning  I ask because it is supposedly correct to say 'last night'. Why don't we say 'last afternoon' or 'last morning'? How do I call a .NET assembly from C/C++? Suppose I am writing an application in C++ and C#.  I want to write the low level parts in C++ and write the high level logic in C#.  How can I load a .NET assembly from my C++ program and start calling methods and accessing the properties of my C# classes? Comma usage with compound sentences {actually compound predicates as per Rob's answer} Rule 101 of compound sentences is that a coordinate conjunction must be accompanied by a comma most of the time when joining independent clauses, yet I stumble across sentences all that time that seem to abuse this rule. Normally, it's a case of the subject not being present in the second clause, as in the following example:      "They usually start out as an abbreviation, but turn into acronyms   when they become well known."   (taken from the Oxford Style Manual)   To me, this comma cannot be correct because the clause after the comma doesn't contain a subject and therefore cannot be independent (right?). As far as I'm concerned, it's not the 'Comma to set off a contrast rule because I can find plenty of other where 'and' is used and the subject's missing in the second clause.  what's the deal here?   Thanks in Advance for any responses I may receive! Ubuntu 18.10 Cosmic not starting GNOME session on bootup 'was' versus 'had been' When I asked the driver/ to come with me to the temple/ he had been reluctant./ No error.   I think instead of 'had been', there should be 'was'. Even the answer key points that the error is in the 'he had been reluctant' part. But I am not sure why exactly is 'had been' wrong.  If we replace the first part with 'when I had asked the driver', would that make 'had been' in the third part correct? In LWC am trying to iterate over a list and show the details from the list, this is working correctly , but as a header want to show the record number in a displayed order, below is desired outcome and simplified sample code.  Desired OutCome:   Employee Record 1: A  Employee Record 2: B  Employee Record 3: C   JavaScript:  Var empNames = ["A" , "B" , "C"];   HTML:  &lt;template for:each={empNames} for:item="employee" for:index="index"&gt; Employee Record{index} {employee} &lt;/template&gt;    Actual outcome  Employee Record 0: A  Employee Record 1: B  Employee Record 2: C   I understand as i am using {index} which indicated the position of element in an array which starts from 0 my actual outcome also starts like Employee Record 0 instead of Employee Record 1, but is there a simple way without writing much logic on JS to handle this in html and to make my headers starts from 1 instead of 0? I've just updated to 11.10 and now my embedded terminal in gedit does not match my default terminal. I hate looking at a white and black terminal. Does anyone know how to make the embedded terminal match the default terminal?  This is a screenshot:    I want my embedded terminal in gedit to match my default terminal. I want to install the  on my iPhone. On the phone I have iOS 7. When I try to install the App, it tells me it needs at least version 8 of iOS.  I do not want to upgrade my iOS version, especially for the sole purpose of installing an App. However, I do want to use it, it's kind of important.  I searched for a while about how to do this, but I could only find solutions that would work if you installed the App before and it shows up on the "Purchases" page in iTunes or something like that. And this doesn't apply to this case.    How can I install an older version of the App (one that requires "only" iOS 7) without having to upgrade the operating system on my iPhone ? Salesforce Internal Server - What's in a GACK? Background  I have been working with Salesforce Support for several weeks now trying to get them to escalate an internal server error with GACK 2134764861-123797 (1611479512) (1611479512). After a long period of waiting I was told that in order to escalate quickly they needed to reproduce the issue in a controlled way. This was again taking them a considerable amount of time so I created a reduced test case myself () that concisely reproduces the issue with a very small amount of code. I was told that this wasn't a valid reproduction because it caused a different GACK (1291518605-518052 (1659192199) (1659192199)) despite reproducing the exact same user experience.  My Question  What makes up a GACK? Is there any information that I can take from their structure that can give me clues on which errors are related without access to the full back-end tools that Salesforce Support uses? It is not infrequent that without premier support it takes me upwards of two weeks to escalate platform bugs and I am hoping that I can somehow use the information from the GACK to reduce this time. I am having trouble adding an image picker to a block form defined in a custom module.  If I create a custom block type I can define an image field as entity_reference and in the block's form view tell it to use entity_browser and media_entity_browser.  This provides me with an picker with which I can select my image:    I am trying to recreate this in a block provided by my custom module, without much success  // /src/Plugin/Block/MyCustomBlock.php  function blockForm($form, FormStateInterface $form_state)  {     ...      $form['image'] = [       '#type' =&gt; 'entity_browser',       '#entity_browser' =&gt; 'media_entity_browser',       '#title' =&gt; $this-&gt;t('Image'),       '#default_value' =&gt; $this-&gt;configuration['image'] ?? null,       '#weight' =&gt; '0',     ];      ... }   This gives me the following.  Note the lack of the bounding box, title and option to edit remove items:     Exporting the configuration files for the working form view gets me this:  // core.entity_form_display.block_content.lead_block.default.yml      ...  field_image:     weight: 1     settings:       entity_browser: media_entity_browser       field_widget_display: rendered_entity       field_widget_edit: true       field_widget_remove: true       selection_mode: selection_append       field_widget_display_settings:         view_mode: default       open: false     third_party_settings: {  }     type: entity_browser_entity_reference     region: content   ...   But if I try and use 'type' =&gt; 'entity_browser_entity_reference' in my blockForm function the field disappears altogether.  Looking into various core files I can see that entity_browser is a @FormElement and entity_browser_entity_reference is a @FieldWidget but I don't really understand the difference.  As you might guess I am fairly new to Drupal and I feel like I am missing something fundamental.  I (think I) understand that custom block types are actually nodes internally and that they are subject to different rules to blocks which I define in my custom modules, but I don't fully grasp what the differences here are.  Is is it possible to use the entity browser in my custom module block form in the same way as it is used in the form which I build through the admin's custom block type builder?  Thank you. This is a very basic query I can't figure out....  Let's say I have a two column table like this:  userid  |  roleid --------|--------    1    |    1    1    |    2    1    |    3    2    |    1   I want to get all distinct userids that have roleids 1, 2 AND 3.  Using the above example, the only result I want returned is userid 1.  How do I do this? I just tried to access a folder like so:  \\somecomputeronmynetwork\somelocation$   When going to this location I'm prompted for a user name and password.  I put one in, and it let me in fine.  Now I need to remove that login, so I can try a different user name and password.  What's the easiest way to do this?