Column header (of a specific column) should only be displayed/rendered when in that specific column at least one row in detail band has a value.  I have already a variable which counts the rows where this column has a value. When I print this value in the column header band, it shows "null" - (because column header band is evaluated before details). When I print it in the summary band (which gets evaluated after all the details are rendered, then I get the correct value (e.g. 11 rows of this column have value).  I want to use this value in the print when expression of the column header of this specific column (e.g. $V{MeetingPointCounter} > 0).  I have tried already:  --> setting evaluation time of a test text field in column header band to "report" ($V{MeetingPointCounter} is null)  -> setting evaluation time of a test text field to "column" (getting here the correct number in column header band - e.g. 11 - but when I using the expression $V{MeetingPointCounter} > 0 ? true: false within print when expression of the desired header text field (and the evaluation time of this field is also set to column), it still does not get displayed)  -> If I put the following expression in a test text field within column header band: "$V{MeetingPointCounter} > 0 ? true: false" and put the evaluation time to column, I get "true" displayed  -> If I just put "true" statically in the print when expression of the desired column header, this column header gets properly displayed  This is with jasper reports 5.6.0 (can't go to any newer version. This is given by the product we use).  Desired result:  Display/hide column header of a specific column on condition set by its detail column rows.
I'd like to show/hide a column at runtime based on a particular condition. I'm using "Print when expression" to conditionally show/hide this column (and it's header) in my report. When the column is hidden, the space it would have occupied is left blank, which is not particularly attractive.  I would prefer if the extra space was used in a more effective manner, possibilities include:   the width of the report is reduced by the width of the hidden column the extra space is distributed among the remaining columns   In theory, I could achieve the first by setting the width of the column (and header) to 0, but also indicate that the column should resize to fit its contents. But JasperReports does not provide a "resize width to fit contents" option.  Another possibility is to generate reports using the Jasper API instead of defining the report template in XML. But that seems like a lot of effort for such a simple requirement.
I am studying homology groups and I am looking to try and develop, if possible, a little more intuition about what they actually mean. I've only been studying homology for a short while, so if possible I would prefer it if this could be kept relatively simple, but I imagine it is entirely possible there is no real answer to my query anyway.   As I said above, I want to gain a little deeper understanding of what the n-th homology group actually means: I can happily calculate away using Mayer-Vietoris but it doesn't really give me a great deal of intuition about what the n-th homology group actually means. For example, with homotopy groups, the fundamental group is in some sense a description of how loops behave on the object in question, and it is obvious to me why that is what it is for say, the torus or the circle. However, I have no idea what, if anything, I am actually saying about a triangulable object when I talk about it having 0-th homology group this or 1st homology group that.  The best I have been able to find online or in my limited book selection is the brief description "intuitively, the zeroth homology group counts how many disjoint pieces make up the shape and gives that many copies of $\Bbb Z$, while the other homology groups count different types of holes". What 'different types of holes' are there, roughly speaking? I appreciate that it may often be completely non-obvious what the low-order homology groups are for some complicated construction, but perhaps in simpler examples it might be more explicable. Are there (simple) cases where I could say, just from looking something like e.g. the torus, what its zero-th or first or second etc. homology group was based on the nature of the object? I guess in the zero-th case it is, as my source () above says, related to the number of disjoint pieces. Can we delve deeper than this for the other homology groups?   Any book/website suggestions would be welcomed (preferably websites as I am nowhere near a library!) - I have Hatcher but not a great deal else, and I haven't gleaned as much as I wish to from that alone. Of course I know that there is a great deal we don't know about homology groups even today, so I don't expect some magical all-encompassing answer, but any thoughts you could provide would be appreciated. I hope this question is appropriate for SE Mathematics, apologies if not! -M $A_n$ is the only subgroup of $S_n$ of index $2$. Integral vanishes on all intervals implies the function is a.e. zero I am having trouble with the following problem:      $f:\mathbb{R}\to \mathbb{R}$ is a measurable function such that for all $a$:   $$\int_{[0,a]}f\,dm=0.$$   Prove that $f=0$ for $m$ almost every $x$ (here $m$ is the Lebesgue measure).    I have no problem proving this for $f$ non-negative, or under the assumption that $f$ is integrable. But the question only assumes that $f$ is measurable and no more.  My idea was the usual thing; we look at the set of points where $f$ is positive and negative and assume one of these has measure greater than zero. Then I wanted to estimate one of these by an open set, look at the integral on the open set and show that it had to be greater than zero, a contradiction. But a key part of this attack is the assumption of the absolute continuity of the integral, which only holds in the case where $f$ is integrable.  Alternatively, if it were integrable one could simply estimate $f$ by a continuous function, where the result is quite obvious.  Ultimately we are going to show that $f$ is integrable, but it is not clear to me how to show this before showing it is zero a.e. So there must be a simpler way. Does anyone have suggestions? Let $t\in \mathbb R$. Prove that $\displaystyle{\sum_{n=1}^{\infty}n^{3}\sin\left(\frac{1}{n}\right)-n^{2}+t}$ converges iff $t=\frac{1}{6}$.  While the $(\Rightarrow)$ direction was fairly easy (as $a_n$ should converge to $0$, forcing $t=\frac{1}{6}$), i'm facing some hard time trying to prove the second direction, that is $\displaystyle{\sum_{n=1}^{\infty}(n^{3}\sin\left(\frac{1}{n}\right)-n^{2}+\frac{1}{6})}$ converges. I did notice that $a_n=a_{-n}$ and tried to write this series as a Leibnitz series, but had no luck since the sequence doesn't decrease. I also tried to prove absolute convergence but then again, no luck. Thanks. Is 2h 45m enough for a layover in Newark Liberty International transferring from an international to a domestic flight (Terminal B → Terminal C)? Is it possible to allow usage for an app or program for a specific times on a Mac? I was trying to achieve this using a second account (which is the admin account) and Parental Controls, but it seemed this isn't possible to do so.  I know there are some programs which you can download that help you with this, (Cold Turkey, for example). But, it would be much easier if I could do this using only tools already available on macOS. How to allocate aligned memory only using the standard library? Word style "keep with next" except on last item Installing QGIS with ECW support on Mac? I bought a imac recently and I tried to install qgis: without success! It is not possible to read the raster files.  I installed GDAL ECW plugin, but it is necessary to copy and paste another file from  ERDAS ECW/JPEG2000 following this instruction.  "VERY IMPORTANT POST-INSTALL  You MUST download and install the ECW SDK yourself. I don't have the means to enforce export restrictions. I'm sorry, but installation is a manual process for now:  Go to . Select "ERDAS ECW/JPEG2000 SDK" from the Product popup. Click on the MacOSX line, then the Download Now link.  Open the downloaded disk image and run the installer. It will install into the top of your boot drive, /Intergraph. Dig into this folder to Desktop_Read-Only/redistributable/libstdc++.  Copy the libNCSEcw.dylib file to:  /Library/Application Support/GDAL/1.11/Libraries  and copy the whole Desktop_Read-Only/etc folder here to:  /Library/Application Support/GDAL/1.11  so it looks like (there may be other files in Libraries and PlugIns for other installed plugins):  Library Application Support GDAL 1.11 etc Libraries libNCSEcw.dylib PlugIns gdal_ECW_JP2ECW.dylib  You can trash the installed Intergraph folder when done to save a few hundred MB of space.  I failed the procedure! Could you help me? I showed up here to write a perfectly normal rant about misaligned pixels, and there's a big fat checkbox cluttering up the "Ask" page:    WHAT THE EEEEK IS THIS NEW ABOMINATION? What is a good Hash function? I saw a lot of hash function and applications in my data structures courses in college, but I mostly got that it's pretty hard to make a good hash function. As a rule of thumb to avoid collisions my professor said that:  function Hash(key)   return key mod PrimeNumber end   (mod is the % operator in C and similar languages)  with the prime number to be the size of the hash table. I get that is a somewhat good function to avoid collisions and a fast one, but how can I make a better one? Is there better hash functions for string keys against numeric keys? Why we can't implement AES 512 key size? Out of curiosity why we can't implement AES 512 key size?    Please explain somehow i can understand! I'm not an expert. Variance of sum of $k$ randomly drawn numbers from $1,...,n$. Why won't Smart UV Project automatically unwrap a simple chair? I created a very simple chair mesh and I would like to unwrap it so that I can map a texture. I would like to have Smart UV Project unwrap it automatically, but whether I do it that way or try manually, I am unable to unwrap the model.   Is there something I'm missing?    I tried a few guides, but I'm not sure where I'm going wrong.  My File: Use of Predictable Network Interface Names with alternate kernels Almost constantly, I use kernels from the , or kernels I have compiled myself, using the Ubuntu kernel configuration.  The problem is when I am using the stock kernel it seems to default to using predictable network interface names (i.e. "p4p1"), but when I use any alternate kernel it seems to default to using the old method (i.e. "eth0").  While not really relevant to this question, I had a hard disk failure on my test computer and am doing a new install of Ubuntu Server 14.04.2.  I have not been able to determine what is the difference between the kernels. I suspect a kernel configuration parameter, but have been unable to identify which one.  My question: How can I make predictable network interface names work consistently across all kernels?  Additional notes: Somewhere I saw to disable predictable network interface names to add this to grub:  GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 biosdevname=0"   so, I thought the opposite might help:  GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=1 biosdevname=1"   but it made no difference. Actually, I can never get the non-stock kernel to use biosdevname, no matter the setting. And I can never get the stock kernel to generate a /etc/udev/rules.d/70-persistent-net.rules file (even though, that is not what I want), no matter the setting of net.ifnames. If I have net.ifnames=1, then at least the non-stock kernel doesn't generate an incorrect /etc/udev/rules.d/70-persistent-net.rules file.  Excerpts from /var/log/udev: stock kernel:  KERNEL[9.216730] add      /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/p4p1 (net) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/p4p1 IFINDEX=2 INTERFACE=p4p1 SEQNUM=1945 SUBSYSTEM=net ... UDEV  [9.241073] add      /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/p4p1 (net) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/p4p1 ID_BUS=pci ID_MODEL_FROM_DATABASE=P8P67 and other motherboards ID_MODEL_ID=0x8168 ID_NET_NAME_MAC=enxf46d04652d8e ID_NET_NAME_PATH=enp3s0 ID_OUI_FROM_DATABASE=ASUSTek COMPUTER INC. ID_PCI_CLASS_FROM_DATABASE=Network controller ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller ID_VENDOR_FROM_DATABASE=Realtek Semiconductor Co., Ltd. ID_VENDOR_ID=0x10ec IFINDEX=2 INTERFACE=p4p1   From Ubuntu PPA kernel 4.1RC5:  KERNEL[10.772566] add      /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/eth0 (net) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/eth0 IFINDEX=2 INTERFACE=eth0 SEQNUM=1962 SUBSYSTEM=net ... UDEV  [11.185866] add      /devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/eth0 (net) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/net/eth0 ID_BUS=pci ID_MODEL_FROM_DATABASE=P8P67 and other motherboards ID_MODEL_ID=0x8168 ID_NET_NAME_MAC=enxf46d04652d8e ID_NET_NAME_PATH=enp3s0 ID_OUI_FROM_DATABASE=ASUSTek COMPUTER INC. ID_PCI_CLASS_FROM_DATABASE=Network controller ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller ID_VENDOR_FROM_DATABASE=Realtek Semiconductor Co., Ltd. ID_VENDOR_ID=0x10ec IFINDEX=2 INTERFACE=eth0 SEQNUM=1962 SUBSYSTEM=net USEC_INITIALIZED=3227   Note: I have temporarily moved past this issue by allowing a /etc/udev/rules.d/70-persistent-net.rules file to be created, and then editing it for proper device names. Ultimately, I would like to get rid of the file. Is it possible to legally visit uninhabited islands in the Pacific for a couple of days/weeks like Robinson Crusoe I am trying to make a custom food recipe. I'm using spawn eggs with /replaceitem because spawn eggs are not obtainable in survival. This works fine when the player crafts only one spawn egg, but when I scroll over multiple spawn eggs, I receive only 1 of the custom food. BTW this food uses custommodeldata, so I can't simply add it into the crafting recipe. I cannot seem to find a way around this. If I make the item non-stackable, such as a piece of armor, mass crafting would be impossible. If I make an item.dropped scoreboard, the player could keep the item and use it to spawn mobs (griefing or for own profit.)  My command:    execute as @a[nbt={SelectedItem:{id:"minecraft:villager_spawn_egg"}}] run replaceitem entity @s weapon  minecraft:melon_slice{CustomModelData:10000101,display:{ Name:"{\"text\":\"Blue Melon Slice\",\"italic\":\"false\"}"}}     My problem is that the command does not see item count, as it is often used for weapons and armor only.    One way I thought to fix this issue is by storing the amount of custom food crafted in a scoreboard item and then giving the player that same count of the custom food, but I do not know how to do this; consequently, I don't know if this works.    Is there a way to do this method, or is there another, simpler method possible? Webforms and jQuery, how to match the ID's? I want to use jQuery with asp.net webfoms.  Do I need to get a special toolkit so the .net controls spit out friendly Control ID's?  Reason being, I don't want to write javascript referencing my html ID's like control_123_asdfcontrol_234.  Has this been addressed in version 3.5?  (I remember reading you have to get some special dll that makes ID's friendly). tcpdump : lost packets Are the proofs for the properties of parallel lines, and that a triangle has 180 degrees, inherently tautological? I've noticed something while trying to prove the properties of parallel lines, and the properties that a triangle has 180 degrees. To prove the properties of parallel lines, such as alternate angles, you need to use the property that a triangle has 180 degrees. To prove a triangle has 180 degrees however, you need to use the properties of parallel lines. This really bothers me because of how circular it is. They are both reliant on each other to be true, and do not logically show, without being reliant on each other, why triangles have 180 degrees, and why parallel line properties are true.   So what I hoping for here is a way to prove parallel line properties without using the fact that a triangle has 180 degrees, or a way to prove triangles have 180 degrees without using parallel line properties. This way, things will be logical to me, and make sense.   Thanks in advance.