I have written composer.json in my module, after running this file, I got all phpExcel dependcies included. Structure formed is like  vendor --phpoffice ---phpexcel ----classes ----phpexcel.php  I am setting classes to psr-0 level for autoloading but I'm not able to call PhpExcel class in my controller.  Any idea about this?  @edit  I have read below articles, but can't find satisfactory solution for this issue. I have implemented below described approach, but still can't figure out whats exactly I'm missing.     install  in   project/modules/contrib folder.      Install       Installed library from  and place   it in "libraries" folder at root.   Now when I went to enable my modules it is simply giving me error:      The website encountered an unexpected error. Please try again later.   Error: Class 'Drupal\libraries\StreamWrapper\LibraryDefinitionsStream'   not found in   Drupal\Core\StreamWrapper\StreamWrapperManager->addStreamWrapper()   (line 156 of   core/lib/Drupal/Core/StreamWrapper/StreamWrapperManager.php).   If I include the phpexcel library using composer, it get included. But the issue is.  This library has no namespaces. And If I call PhpExcel class in my controller,like  use PhpExcel/PhpExcel;  $spreadsheet = new SpreadsheetReader($file_path);   It gives error class not found.  How can I read excel file using phpExcel library?
I have a third party php library which I would like to use in a module. How do I do that in Drupal 8? In drupal 7, I have done things like the following code, but libraries_get_path() doesn't exist in Drupal 8, and I'm not exactly sure how things change, not that we use namespaces (of which I am a beginner).  require(libraries_get_path('twitter-api-php') . '/TwitterAPIExchange.php');   And, where should I place my library? Should I create a new libraries directory and put it in the root, just like modules and themes are now in the root?
How to create a color of the same brightness and saturation? Let's consider three colors: Red, Green and Blue. For blue I created a specific shade, something like #F2F5F7. If you see this color, it has a certain level of shade, brightness and saturation value of blue.  I want to create the same equivalent color but for Green and Red, how to get that? I am looking for a method to process a remote sensing image and extract the crown areas of the individual trees from the image.   I have both visual wavelength areal imagery, and lidar data from the area. The location in question is a desert area, so the tree cover isn't as dense as a forest area. The resolution of the aerial imagery is 0.5 feet by 0.5 feet. The lidar resolution is approximately 1 x 1 feet. Both the visual data and the lidar come from a Pima County, Arizona dataset. A sample of the type of aerial imagery I have is at the end of this post.   This question  seems to be the same issue, but there does not seem to be a good answer there.  I can obtain a reasonable classification of the vegetation types (and information about the overall percent cover) in the area by using the Iso Cluster classification in Arcmap, but this provides little information on individual trees. The closest I have to what I want is the results of passing the output of the isocluster classification through the Raster to Polygon feature in Arcmap. The problem is that this method merges near by trees into a single polygon.   Edit: I probably should have included some more detail about what I have. The raw datasets I have are:    Full las data, and a tiff raster generated from it. Visual imagery (like the sample image shown, but covering a much wider area)  Manual direct measurements of a subset of the trees in the area.    From these I have generated:    The ground/vegetation classifications. The DEM/DSM rasters. Use chown to set the ownership of all a folder's subfolders and files? How can I use the chown command to change the ownership of all a folder's subfolders and files? ...on Finnis's view all distinct instances of basic goods are incommensurable — none is of more, less, or equal value with any other. &mdash;    I expect to see more or less than any other, but then equal shows up, and is followed by with. But since with any other cannot replace than any other, do you think this sentence illegitimately omits something? How can I tell what version of Linux I'm using? Often times I will ssh into a new client's box to make changes to their website configuration without knowing much about the server configuration. I have seen a few ways to get information about the system you're using, but are there some standard commands to tell me what version of Unix/Linux I'm on and basic system information (like if it is a 64-bit system or not), and that sort of thing?  Basically, if you just logged into a box and didn't know anything about it, what things would you check out and what commands would you use to do it? Mobile notifications unread status independent from full site inbox and achievements How to make a redstone clock that I can turn on/off with a lever? I want to create a Redstone clock that can be enabled and disabled with a lever permanently placed down. How can a CPU deliver more than one instruction per cycle? How to install latest HPLIP on my Ubuntu to support my HP printer and/or scanner? I'm trying to find a simple way to create vertices where two objects intersect and delete the leftover internal planes + then join the meshes so that I have one hollow mesh to sculpt. The reason I need to know this is that on my first sculpt I just joined the meshes, but it didn't create vertices at the intersecting points so when I went to sculpt it just overlapped the meshes as you can see here in the neck.  Here is what I am working on now, it needs to be 1 hollow mesh Is a variable/arbitrary element a precisely defined mathematical object? What is the Fastest a Character Can Move in One Turn? At level 20 with any magic items in the DMG, and any spells, what is the fastest a DnD 5e character could move using their movement?  (i.e., not including teleportation) Uncheck checkboxes by changing particular checkbox state I have custom fields in contacts form named checkbox1__c, checkbox11__c, checkbox12__c, checkbox13__c.  When I check checkbox1__c then I want checkbox11__c,  checkbox12__c,  checkbox13__c to be unchecked.  When I unchecked checkbox1__c then I want checkbox11__c, checkbox12__c, checkbox13__c to be checked.  Is there any way to do this by using validation-rules? If not no way to this by validation-rules, then what is the best way to do this? How to distinguish between American Indians and Indian Indians in native English (language) parlance? How to distinguish between American Indians and Indian Indians in native English (language) parlance?  Can I say Indian Indian to say Indian from Asia compared to the Native Americans? Subtracting (erasing) polygons from polygon using ArcGIS for Desktop? Making a (simple) directory tree I'm trying to make a simple directory tree representation in LaTeX. Something like:  spam  |  +-- ham  +-- eggs      |      +-- more spam      +-- dead parrots   The tree won't be that long (say, 10--15 entries or so), with three or so levels, and is a one-off thing. So, quick-and-dirty solutions are welcome. When recommending tikz, please note that I have almost no experience with it, so I'd appreciate a clean simple solution, even if it doesn't look quite perfect.   On Tex.SE tikz is almost like the jquery recurring joke on StackOverflow..    Edit: As per Thorsten's suggestion,  is a nice and easy-to-use solution. The example from above could be written as:  \usepackage{dirtree} ... \dirtree{% .1 spam. .2 ham. .2 eggs. .3 more spam. .3 dead parrots. } Is there a single word that describes both Witches and Wizards? In the Harry Potter world, there's the term "muggle" for people with no magical abilities, "muggle-born" for those with magical abilities who's parents are muggles and "squib" for those with no magical abilities who's parents are magical.  But is there any collective term for all magical people (as opposed to wizards for males and witches for females)?  I don't recall seeing any word that refers to all men and women and children with magical abilities, and it's the only group left without noun or collective noun to describe them. Can the Hubble constant be measured locally? What is the purpose of LongLength for .Net Arrays? What is the purpose of the LongLength property for arrays in .Net.  Using a standard integer for length, you could accommodate up to 2 billion indices.  Are there really people using .Net to maintain a single array with more the 2 billion elements.  Even if each element was a single byte, that would still be 2 GB of data.   Is it feasible to use such a large array in .Net? In convex optimization, the feasible region is convex if equality constraints $h(x)$ are linear or affine, and inequality constraints $g(x) \leq 0$ are convex. Does this mean that if $h(x)$ is nonlinear, then the optimization problem is non-convex? Is there any special case where $h(x)$ is nonlinear and the feasible region is still convex?