JTable Multiline cell Auto wrap
How to wrap lines in a jtable cell?
Dual boot Ubuntu (14.04) with Windows 10 BBWC: in theory a good idea but has one ever saved your data? I'm familiar with what a BBWC (Battery-backed write cache) is intended to do - and previously used them in my servers even with good UPS. There are obvously failures it does not provide protection for. I'm curious to understand whether it actually offers any real benefit in practice.  (NB I'm specifically looking for responses from people who have BBWC and had crashes/failures and whether the BBWC helped recovery or not)  Update  After the feedback here, I'm increasingly skeptical as whether a BBWC adds any value.  To have any confidence about data integrity, the filesystem MUST know when data has been committed to non-volatile storage (not necessarily the disk - a point I'll come back to). It's worth noting that a lot of disks lie about when data has been committed to the disk (). While it seems reasonable to assume that disabling the on-disk cache might make the disks more honest, there's still no guarantee that this is the case either.  Due to the typcally large buffers in a BBWC, a barrier can require significantly more data to be commited to disk therefore causing delays on writes: the general advice is to disable barriers when using a non-volatile write back cache (and to disable on-disk caching). However this would appear to undermine the integrity of the write operation - just because more data is maintained in non-volatile storage does not mean that it will be more consistent. Indeed, arguably without demarcation between logical transactions there seems to be less opportunity to ensure consistency than otherwise.   If the BBWC were to acknowledge barriers at the point the data enters it's non-volatile storage (rather than being committed to disk) then it would appear to satisfy the data integrity requirement without a performance penalty - implying that barriers should still be enabled. However since these devices generally exhibit behaviour consistent with flushing the data to the physical device (significantly slower with barriers) and the widespread advice to disable barriers, they cannot therefore be behaving in this way. WHY NOT?  If the I/O in the OS is modelled as a series of streams then there is some scope to minimise the blocking effect of a write barrier when write caching is managed by the OS - since at this level only the logical transaction (a single stream) needs to be committed. On the other hand, a BBWC with no knowledge of which bits of data make up the transaction would have to commit its entire cache to disk. Whether the kernel/filesystems actually implement this in practice would require a lot more effort than I'm wiling to invest at the moment.  A combination of disks telling fibs about what has been committed and sudden loss of power undoubtedly leads to corruption - and with a Journalling or log structured filesystem which don't do a full fsck after an outage its unlikely that the corruption will be detected let alone an attempt made to repair it.   In terms of the modes of failure, in my experience most sudden power outages occur because of loss of mains power (easily mitigated with a UPS and managed shutdown). People pulling the wrong cable out of rack implies poor datacentre hygene (labelling and cable management). There are some types of sudden power loss event which are not prevented by a UPS - failure in the PSU or VRM a BBWC with barriers would provide data integrity in the event of a failure here, however how common are such events? Very rare judging by the lack of responses here.   Certainly moving the fault tolerance higher in the stack is significantly more expensive the a BBWC - however implementing a server as a cluster has lots of other benefits for performance and availability.  An alternative way to mitigate the impact of sudden power loss would be to implement a SAN - AoE makes this a practical proposition (I don't really see the point in iSCSI) but again there's a higher cost. When Ron broke his wand, why didn't he apply for Hogwarts financial aid? We know, from Book Six, that Hogwarts has a financial aid for students in need. It's supposed to cover all expenses regarding materials and school supplies, so it certainly covers wands. So why didn't Ron simply apply for this fund when he broke his wand in Book Two, since his family could not afford a new one?  Seems absurd that no teacher would notice that Ron had a broken wand and inform him there's a school fund. Plot hole?  Obs.: Even if Ron could afford a new wand, one could ask how we would purchase it (you must experiment personally to find a wand that chooses you). It turns out that there's a local branch of Ollivander in Hogsmeade. I'm sure that, under those circumstances, a second-year student like Ron would be allowed to visit Hogsmeade to purchase a new wand. Last year I hired someone to do some work for our website but accidentally lost the PSD files since then. It's a fairly basic concept but I am fairly inexperienced with using masks.  How can I create the black circular gradient area as shown in this image below? I need to get as close as possible where it matches existing images on the site, why I am hoping its not too hard.  Thank you! Accessing a property of derived class from the base class in C# In C#, what is the best way to access a property of the derived class when the generic list contains just the base class.  public class ClassA : BaseClass {    public object PropertyA { get; set; } }  public class ClassB: BaseClass {     public object PropertyB { get; set; } }  public class BaseClass { }  public void Main {     List&lt;BaseClass&gt; MyList = new List&lt;BaseClass&gt;();     ClassA a = new ClassA();     ClassB b = new ClassB();      MyList.Add(a);     MyList.Add(b);      for(int i = 0; i &lt; MyList.Count; i++)     {         //I would like to access PropertyA abd PropertyB from the derived classes             } } Page number in title page I want to add page number from 531 to 536 in my latex IEEE conference template. But page number appearing from page 2 i.e. 532.  \documentclass[conference]{IEEEtran} %\IEEEoverridecommandlockouts  \makeatletter \let\old@ps@headings\ps@headings \let\old@ps@IEEEtitlepagestyle\ps@IEEEtitlepagestyle \def\confheader#1{%     % for all pages except the first     \def\ps@headings{%         \old@ps@headings%         \def\@oddhead{\strut\hfill#1\hfill\strut}%         \def\@evenhead{\strut\hfill#1\hfill\strut}%     }%     % for the first page     \def\ps@IEEEtitlepagestyle{%         \old@ps@IEEEtitlepagestyle%         \def\@oddhead{\strut\hfill#1\hfill\strut}%         \def\@evenhead{\strut\hfill#1\hfill\strut}%     }%     \ps@headings% } \makeatother  \confheader{ 2020 IEEE International Conference on Computation, Automation and Knowledge Management (ICCAKM) }   %%footer %\usepackage[pscoord]{eso-pic} %\newcommand{\placetextbox}[3]{ %   \setbox0=\hbox{#3} %   \AddToShipoutPictureFG*{ \put(\LenToUnit{#1\paperwidth},\LenToUnit{#2\paperheight}){\vtop{{\null}\makebox[0pt][c]{#3}}} %   } %} %\placetextbox{.23}{0.055}{\small{978-1-5386-8007-0/19/\$31.00~\copyright 2019 IEEE}}     \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \usepackage{xcolor} \usepackage{float} \usepackage[export]{adjustbox} \usepackage{subcaption}     % %\usepackage[pscoord]{eso-pic} %\newcommand{\placetextbox}[3]{ %   \setbox0=\hbox{#3} %   \AddToShipoutPictureFG{ \put(\LenToUnit{#1\paperwidth},\LenToUnit{#2\paperheight}){\vtop{{\null}\makebox[0pt][c]{#3}}} %   } %} %\placetextbox{.2}{0.055}{978-1-4799-5522-0/15/\$31.00~\copyright 2015 IEEE}   \IEEEoverridecommandlockouts \IEEEpubid{\makebox[\columnwidth]{978-1-7281-0666-3/20/\$31.00~\copyright~2020         IEEE \hfill} \hspace{\columnsep}\makebox[\columnwidth]{ }}      \thispagestyle{plain}     \pagestyle{plain}     \setcounter{page}{531}   \begin{document}  \title{Performance Analysis of Physically     Unclonable Function Based on Voltage Divider Arrays} \author{\IEEEauthorblockN{Sumit Chaudhary$^{1}$}     \IEEEauthorblockA{\textit{Dept. of Electronics and Communication} \\         \textit{MNIT Jaipur, India}\\         2016pev5165@mnit.ac.in}     \and     \IEEEauthorblockN{Chitrakant Sahu$^{2}$}     \IEEEauthorblockA{\textit{Dept. of Electronics and Communication} \\         \textit{MNIT Jaipur, India}\\         chitrakant.ece@mnit.ac.in}}  \maketitle   \end{document} Do the SO admins have any plans to release the underlying code for SO at all? I appreciate that the code may be part of their competitive advantage, but it strikes me that the underlying system would work for any topic, not just programming.  I am not advocating this, just curious really, but figured it might be under consideration as most of the value in SO is in the questions and answers, which have been released under a relatively open CC license. Langage to declare a circuit board Plot 4D data with color as 4th dimension How can I know the default PGF line width? Is there some macro that will tell me what the default PGF line width is? I have tried creating my own macro by cloning \pgflinewidth before it has been modified, i.e.  \let\defaultlinewidth\pgflinewidth   but \defaultlinewidth seems to be affected by \pgfsetlinewidth anyway, and change to whatever \pgflinewidth is. So, the problem is that after I have called \pgfsetlinewidth, I don't know what the default pgf line width is anymore. Is there some way to get around this? What is the probability that a person is the second person to roll a 6 for the first time? Suppose $A$, $B$, and $C$ roll a die in turns. What is the probability that $A$ is the second person to roll a $6$ for the first time? Should I file Form 1040 or Form 1040 NR? I am currently on H1 B (since October 1, 2017). Last year when on F1 OPT, I had filed Form 1040 NR for my taxes. Which form is advisable for 2017, considering I am on H1 B now. What options do I have? Why does your reflection suddenly turn upside down while slowly walking away from a curved mirror? Many people should have realised, when looking into a concave curved mirror (or even a rather reflective spoon in that fact) at a close distance, you will see a slightly distorted reflection. But as you move further away, the image will suddenly become upside-down.  why is this? A post can be locked.   What does it mean to lock a post? Who can lock a post? When should a post be locked? Can multiple render systems be used? how to reduce DC voltage using resistors? How would one go about using a 12 V DC power source to power something which needs 4.5 V DC using resistors? Is there a way to determine how much adding a resistor would drop the voltage? Number of combinations of dice having different number of faces that add to $10$ A function $\textbf{face}_{\mathrm{sum}}$ that takes a vector  $f$ that represents the number of faces of each die, and a positive integer  $s$ , and returns the probability that the sum of the top faces observed is  $s$ .  For example, if $f=[3,4,5]$  and  $s≤2$  or $s≥13$ , $\textbf{face}_{\mathrm{sum}}$ returns $0$, and if  $s=3$  or  $s=12$ , it returns  $\frac13*\frac14*\frac15=\frac1{60}$  $\textbf{face}_{\mathrm{sum}}([2,4,4,6], 10)$  I tried to solve this but I can't find the formula to calculate the number of combination of die faces that add to $10$, as the number of faces are different for each die.  Since max no of possible combination is $6*4*4*2=192$, all I need to find is the number of combination of die faces that add to $10$.  Thanks in advance. Entropy increases when two substances mix with each other.  For example, the entropy of mixing of two different gases are given by $$\Delta S= 2Nk\ln\frac{V_f}{V_i}\;.$$  But, the entropy doesn't increase when the two gases mixing are same.  This is pointed by Daniel V Schroeder:     It's important to note that this result applies only if the two gases are different like helium and argon. If you start with the same gas on both sides, the entropy doesn't increase at all when you remove the partition.   Now, why is this so? Both the gases, though the same, increase their individual entropies when they expand, don't they?  So, why did Schroeder say there is no entropy of mixing? What actually happens such that there is no change in entropy when the gases are the same? How do I model the fighter's Great Weapon Fighting fighting style in Anydice? I was trying to create an AnyDice function to model the Great Weapon Fighting fighting style (which lets you reroll 1s and 2s), but I couldn't get it to work on any arbitrary dice.  I've found this one:  function: reroll R:n under N:n {    if R &lt; N { result: d12 } else {result: R} } output [reroll 1d12 under 3] named "greataxe weapon fighting"   And it works fine. But I don't know how to make the function generic so i don't need to change the d12 every time i want a different dice to reroll.  I've tried  function: reroll R:n under N:n {    if R &lt; N { result: d{1..R} } else {result: R} } output [reroll 1d12 under 3] named "greataxe weapon fighting"   but it is not giving the right probabilities. Maybe if I could fetch the die size inside the function... How to do seperate render passes in blender? I a lot of VFX breakdown that uses something they call "render passes". From what I see, they are rendering the clip in seperate ways (like rendering the ambient occlusion, specular, shadows, depth of field, etc individually and then combine it). Is there any way I can do this?