Lebesgue integral of a bounded measurable function over a measurable subset of a measurable set of finite measure.
Bounded measurable function and integral with charcteristic function
Hyperref "enquotes" metadata EDIT: As Bill B. and Caramdir point out in their comments after Bill B. produced his results posted below, more information is needed in order to make a better call. To remedy, my output was produced using MiKTeX 2.8 pdflatex with no special command line flags or switches. My pdf viewer is Adobe Acrobat Pro 9.0. The platform is Windows 7. All software including hyperref is fully up to date against the latest rev levels and patches.  As I'm guessing that this is a pretty normal setup, at least in the Windows world, I'd be very interested (and grateful) in learning whether this problem affects other people or whether it's just some kind of rather weird one-off. My gut feel after seeing Bill B's results (and also after having traversed hyperref's code) is that the culprit is Adobe Acrobat or possibly MiKTeX pdflatex.    Can anyone corroborate? I'd be very grateful to know.    Original question:  I have a problem with hyperref; it "enquotes" Author and Keywords (but not Title or Subject) metadata if the data sent to these contain a comma or semi-colon (but not, say, a full stop or a colon).    I've included some figures and code that show this below.         \documentclass{article}  \newcommand*\metadata{% % uncomment all but one line below %  a  b  c%     &lt;-- no problem    a, b, c%     &lt;-- problem %  a; b; c%     &lt;-- problem %  a: b: c%     &lt;-- no problem %  a* b* c%     &lt;-- no problem }  \usepackage[   pdftitle={\metadata},    % never enquoted   pdfauthor={\metadata},   % enquoted if , or ; is present   pdfsubject={\metadata},  % never enquoted   pdfkeywords={\metadata}, % enquoted if , or ; is present ]{hyperref}  \begin{document}   Press ctl-d (in Acrobat Reader) to see pdf file metadata. \end{document}   Not only is this quite ugly but, more importantly, it interferes with metadata extracting programs used by certain document repositories.   I've worked my way through hyperref's code without much success. Would anyone have a solution for this problem?  Or advice about what I might be doing wrong? I have a table tabName with the following rows:  id(PK) .. Created(datetime)     Resolved(datetime) Status(new/resolved/open) 1          2015-05-10 00:00:00   1970-01-01 ..       open 2          2015-05-10 ..         1970-01-01 ..       new 3          2015-05-10            2015-05-12          resolved 4          2015-05-11 ..         1970-01-01 ..       open 5          2015-05-11 ..         1970-01-01 ..       new 6          2015-05-11            2015-05-11          resolved 7          2015-05-12 ..         1970-01-01 ..       open 8          2015-05-12 ..         1970-01-01 ..       new 9          2015-05-12            2015-05-12          resolved   NOTE:  1970-01-01 .. is default time for all the tickets which are still open.  I have to frame a query to get the count of tickets still open, date wise. Say like on 10 May I have 3 tickets opened. Noting that for id = 3, resolved date is not 10 but it's closed on 12 May.  I framed a query like  SELECT DATE_FORMAT(Created, '%d-%m') AS createdd, COUNT(1) FROM tabName WHERE DATE_FORMAT(Resolved, '%d-%m') &gt; DATE_FORMAT(Created, '%d-%m')       AND YEAR(Created) = '2015' GROUP BY createdd;   The above query gets all the tickets whose Resolved date is greater than the date which is considered for the count. This may count newer tickets as well. And also if the older tickets which are not resolved yet is not counted.  Is there any other way to frame the required query? I have been juggling with this query from last 3 days. Not able to find out still.  Updated: As suggested by Abhik, i have tried in sqlfiddle site.  Here is what i created:  CREATE TABLE test    (idint,createddatetime,resolveddatetime, status varchar(15), PRIMARY KEY (id));    INSERT INTO test       (id,'created','resolved',status`) VALUES       (1,'2015-05-10 00:00:00','1970-01-01 00:00:00','open'),    (2,'2015-05-10 00:00:00','1970-01-01 00:00:00','new'),    (3,'2015-05-10 00:00:00','2015-05-12 00:00:00','resolved'),    (4,'2015-05-11 00:00:00','1970-01-01 00:00:00','open'),    (5,'2015-05-11 00:00:00','1970-01-01 00:00:00','new'),    (6,'2015-05-11 00:00:00','2015-05-11 00:00:00','resolved'),    (7,'2015-05-12 00:00:00','1970-01-01 00:00:00','open'),    (8,'2015-05-12 00:00:00','1970-01-01 00:00:00','new'),    (9,'2015-05-12 00:00:00','1970-01-01 00:00:00','open')    ;   `   When i run  ` select created_date, @open:= @open+open_ticket-resolved as open from(  select   date_format(created,'%d-%m') as created_date ,  sum( case when status='open' then 1 else 0 end )+  sum( case when status='new' then 1 else 0 end )+  sum( case when status='resolved' and ( date(resolved) > date(created) or  date(resolved) = date(created)) then 1 else 0 end ) as open_ticket,  sum(case when status = 'resolved' and date(resolved) = date(created) then 1   else 0 end) as resolved  from test  where  YEAR(Created) = '2015'  group by created_date )x,  (select @open:=0)r order by created_date ; `  I got following output  created_date   open 10-05   3 11-05   5 12-05   8  Here count of still open tickets for 12-05 must be 7. The above query includes ticket id "3" , which is closed on 12-05. So is there any way to exclude this? If i am able to get this right, then i will have full fledged query. Difference between differential op amp and comparator What is the difference between a differential op amp and a comparator? I know a comparator can only give me two values (the supply values).  The differential op amp amplifies the difference between the inputs...but should a comparator not do the same then? What is the specific difference? Do adjustable length lightsabers exist in Star Wars universe? I always see blades of lightsabers have more or less the same length (dual blades are double). Why is that?  Can't a longer or shorter length be advantage in some case?    I am NOT expecting infinite length lightsabers (due to energy issues), but have we seen adjustable length blades in the Canon? Trigger for avoid insertion from data loader? i have scenario like write a trigger avoid insertion of records  from  data loader,only manual insertion trigger will fire?on any object     while Entering records from data loader trigger should not fire? ASP.NET MVC custom routing for search Here is my scenario.  For the example lets say that I need to return a list of cars based on a search criteria.  I would like to have a single View to display the results since the output will be the same, but I need several ways of getting there.  For instance, I may have a Form with a textbox to search by year.  I may have another separate page that contains a hyperlink for all red, Toyota cars.  How do I handle these multiple scenarios in the same View and Controller.  My dilemma is that the search could contain several options… year, make, model, etc but I don’t know where to put them.  What is the best approach for this?  Should I define the parameters in the routing or go with query strings, etc? /usr/sbin/grub never finishes I did apt-get upgrade it never finishes at this point:  Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found kernel: /boot/vmlinuz-3.2.0-24-virtual Updating /boot/grub/menu.lst ... done  You already have a NoLOADER configuration in /etc/grub.conf Running boot loader as requested Running /usr/sbin/grub  ...    The system does not freeze (Ctrl-Z works, I get my console back) just that that /usr/sbin/grub seems to never complete.  What should I do? How to invoke vim editor and pipe output to bash I work behind an really annoying firewall, and I just want the net admin to add all the SE websites to the whitelist. Right now I've lost access to Stack Overflow's authentication, but not Meta's... so I have to come here before I log in there.  It's driving me nuts. Basically I just want to add an exclusion rule for all SE domains; not only the website domains, but also the content domains such as gravatar.com, quantserve.com, the domain that holds static content, etc... How do I find out what fonts are used in a document/picture? Is there a proof from the first principle that the Lagrangian L = T - V? This happens pretty much every time I try to bake normal maps. It's quite a broad error message and I still don't know exactly what the problems I'm having are, only that if I keep clicking things for half an hour eventually it sometimes just works.  My understanding of the things needed:   A "Generated" blender Image that the normals are written to (In UV/Image Editor, click Image->New)   Tell blender that this is the bake output, below (this is the really confusing bit which blender seems to try to guess and fails)  A UV Map for the low poly model (you only need the geometry of the high poly and it doesn't need a UV map) Under Bake, in the rendering tab:   Bake Mode = Normals Normal Space = Tangent Selected to Active = ✓ (for the next bit)  Select the high rez object first, then the low poly object With the two objects selected, click Bake (you may have to move the mouse to see the error pops up)   Now, from what I can tell the only  (with regard to the setup and apart from the internals of baking) is how blender finds the output image:   Cycles  Have a material using an ImageTexture node which points to your normal map output. Then  says the node must be selected, but  doesn't mention selecting. Blender Render  Have a texture attached to the material that uses the image.  is pretty vague on assigning the output image. Sometimes I've found hitting tab to go to edit mode and selecting the normal map image in the UV editor to help, or at least it seemed to.   I would like to know the exact details of what blender goes looking for when you hit Bake, rather than have to guess by following tutorials. For example, it seems to look for the high and low poly objects in your selection and based off the order you select them. How does it find the normal map/image to write to for both cycles and blender render? Does the Texture need to Influence Normals or does it just need to reference the Image? etc... Why are there gaps in my IDENTITY column values? How do I get current date/time on the Windows command line in a suitable format for usage in a file/folder name? Semigroup analogue to the classification of finite simple groups? Is there a semigroup analogue to the classification of finite simple groups?  If so what are some of the major results?  --Edit, reference links--- Textbook on the Geometry of Special Relativity I am looking for a textbook that treats the subject of Special Relativity from a geometric point of view, i.e. a textbook that introduces the theory right from the start in terms of 4-vectors and Minkowski tensors, instead of the more traditional "beginners" approach. Would anyone have a recommendation for such a textbook ?  I already have decent knowledge of the physics and maths of both SR and GR ( including vector and tensor calculus ), but would like to take a step back and expand and broaden my intuition of the geometry underlying SR, as described by 4-vectors and tensors. What I do not need is another "and here is the formula for time dilation..." type of text, of which there are thousands out there, but something much more geometric and in-depth.  Thanks in advance. How do I recover from the Heartbleed bug in OpenSSL? Get index of each capture in a JavaScript regex How to compare two TeX codes and mark differences with color I would like to find easy tool, which compares two TeX codes and generates a PDF file of the first code, in which the differences from the second code are marked by a given color. I use winedt 7.0 under windows 7.  I just noticed that latexdiff provides what I need. As far as I understand it is included in Miktex. Is there an interface (menu commands) in winedt 7.0, which allow to work with latexdiff ? I've grown quite fond of HTTP reverse proxies in our development environment and found the DNS based virtual host reverse proxy quite useful. Having only one port (and the standard one) open on the firewall makes it much easier for management.  I'd like to find something similar to do SSH connections but haven't had much luck. I'd prefer not to simply use SSH tunneling since that requires opening port ranges other than the standard. Is there anything out there that can do this?  Could HAProxy do this?