I have a TikZ node positioned between two other nodes using fit:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit}  \pagestyle{empty} \usepackage{parskip}  \newcommand{\mybox}[1]{     \begin{tikzpicture}         \node (t) [minimum width=.4\linewidth,anchor=north west,draw] at (0,5){box above};         \node (b) [minimum width=.4\linewidth,anchor=south west,draw] at (0,0){box below};         \node [fit=(t.south west) (b.north east), inner sep = 0, draw, align=flush left]{#1};     \end{tikzpicture} }  \begin{document} \mybox{     {\large Here we} have\newline some...      ...somewhat {\bfseries longer arbitrary text} content. } \end{document}     Now I would like to vertically align the contents of the node at the top and also add some padding around the node contents. How can I do this?
The output from the following script \documentclass{article} \usepackage{tikz} \usepackage{graphicx} \begin{document} \begin{tikzpicture}   \node(title)[text width = 0.25\textwidth, text height = 3 cm, draw]{title};   \end{tikzpicture} \end{document}  is  How can I vertically align the text in the node? Specifying the text depth as in \node(title)[text width = 0.25\textwidth, text height = 1cm, text depth = 1 cm, draw]{     title line 1\\     title line 2\\     title line 3};  Does not result in the text being vertically centred.
doing comparison if else in JasperReports How can I clear event subscriptions in C#? Take the following C# class:  c1 {  event EventHandler someEvent; }   If there are a lot of subscriptions to c1's someEvent event and I want to clear them all, what is the best way to achieve this? Also consider that subscriptions to this event could be/are lambdas/anonymous delegates.  Currently my solution is to add a ResetSubscriptions() method to c1 that sets someEvent to null. I don't know if this has any unseen consequences. Is there a cryptographic algorithm which is immune to side channel attacks? Is there any cryptographic algorithm immune to side channel attacks based on scan chain? In VLSI point of view. make iframe height dynamic based on content inside- JQUERY/Javascript How to test for minimum amount of items in inventory and execute a command if true Why are image thumbnails cropped proportionally (not per dimensions)? For some reason WordPress is ignoring my thumbnail sizes and keeping thumbnails cropped proportionately instead of specific dimensions. Here is what I have in functions.php:  add_image_size( 'main-thumbnail', 728, 410, true );   and in content.php:  &lt;div class="thumbnail"&gt;     &lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;        &lt;?php the_post_thumbnail( 'main-thumbnail' ); ?&gt;     &lt;/a&gt; &lt;/div&gt;   I added these two things and regenerated my images with the  plugin, but it doesn't seem to matter. The images don't change.  For some reason WordPress isn't recognizing the hard crop and is keeping the images proportional, so some of my images are way taller than 410 pixels. Why is this? Access denied for user 'root@localhost' (using password:NO) Why does "ls -all" show time for some files but only year for others? If you issue ls -all command some files or directories have the year and some have the time? Why do some show the year while others show the time? Is the time representative of the time the file was created? I need to upgrade my existing Ubuntu system, and I also want to install Ubuntu on a new laptop.  I would like to have an installation CD or DVD to do both of these.  Where exactly I can order or request an Ubuntu installation CD/DVD/USB? Lille Metro schedule... is it 24/7? The M1 and M2 lines in Lille, France have a confusing . It's 7 days per week, but it looks like it's "running" basically 24h hours per day (minus some ten-minute delay). I never took the metro later than 11 PM when I was in Lille last year, but people told me that it stops just before midnight. But... it looks like it starts right back up again immediately, after about 10 minutes.  What are the actual hours of the Lille M1 and M2 lines? I have a hard time believing that they're 24/7... Choice of personal pronoun in single-author papers How does the color of a car influence its inner temperature change over time when parked outside in windless, hot and sunny regions?  I know what's the common idea about that: black cars are supposed to build up high temperatures faster because black objects absorb radiations instead of reflecting them off. Is it true? And then, what happens during the steady state? Some claim the black car will stay hotter, some others claim it will be the same whatever the color. Do all cars have the same temperature inside in the long run, or are some of them hotter?  I've Googled it but the best I could find was . It claims to be based upon ~20 articles. But there's not even a mention of absorption or emission spectrums. A priori, a black car could absorb all visible radiations and emit it as infrared while reflecting all of the Sun's infrared. And it's still only qualitative. I've found nothing on Physics stackexchange, the closest being . I may have missed it with the 3D, but I could have sworn I saw what I suspect was a lady Dwarf or two running from the Erebor in the beginning of the Hobbit, but they didn't seem bearded.    If dwarf women aren't bearded, then was Aragorn just kidding in the Two Towers (movie) when he intimated that they all had beards?    It's also stated by Tolkien in appendix A to The Lord of the Rings that female dwarves appear identical to males and we can assume they are also born with beards, just like their male counterparts. Can we model gravitation as a repulsive force? This question is actually related to my earlier question ("").  The fact that objects move a lot in the universe and that the universe is expanding, can imply that gravity is a repulsive force that increases with distance.. so the farthest objects repel us more.  This can still explain several existing observations, e.g., why does the apple fall?   Motion is the result of such repulsion. Two objects unlucky enough not to be moving relative to each other get squished due to the repulsion of the rest of the universe  around them. The earth repels the apple less than the stars so it is pushed towards the earth.   Furthermore, it can explain the expanding universe without the need for dark energy.  This could be demonstrated in a thought experiment. If we take a lot of same-charge particles (with small mass) such as electrons and lock them in a large box at a low enough temperature. The mutual repulsion of the particles may cause similar motion as if due to gravitational attraction.   Another experiment would be to measure the slight changes in our weight during day and night when the sun and earth align (if their masses are large enough to detect the feeble change in repulsion).   [EDIT: the question in the original form may not have been clear. It is "can we model".. with a yes/no answer and why (not). If downvoting, please justify. I'm considering replacing an outdoor lighting fixture with an LED motion-sensitive fixture, but I'm not sure how to safely do the wiring.  The location is protected (under a porch) but still needs to be weatherproof. Here's the existing fixture and mount:    The obvious replacement would be another lamp that included its own box cover, so that its wiring would be covered and protected. But, the fixture I like doesn't include such a cover:    You can see it's meant to be screwed into the wall, but doesn't cover anything. The power cable ends with bare wires which are meant to be wire-nutted to the supply wiring, probably inside a junction box. But, how do I get the wire safely into the junction box while keeping things weatherproof?  One option would be to replace the lamp's power cable with one ending in a grounded plug, and install a weatherproof outlet box. But that's ugly and complex.  Are there weatherproof junction box covers that include provisions for sealed entry of cables? How do I get to Orgrimmar from Silvermoon City at level 11? I have a level 11 Blood Elf and want to spend some of my honor points. I've heard that I could spend them in Orgrimmar, but the only problem is getting there.  How do I get to Orgrimmar from Silvermoon City? I'm not in a level 25 guild, so nobody can teleport me there. :( My office is a converted garage about 30 feet from my house.   I have a coaxial cable already running from my house to the office.   I want to attach a Ethernet cable from my DSL modem, in my office, to a computer in my house.   Since I already have the coaxial cable installed, I bought two coax to Ethernet converters (NVA-P-860-BP78 Video Balun), but when I hooked them up I am getting no signal. It was my understanding that an Ethernet signal could travel over a coaxial cable.   Is that wrong? Any ideas why this isn't working? I've got bunch of files with ill-formed numbering:  prefix-#.ext       | for files with number 1-9 prefix-##.ext      | for files with number 10-99 prefix-###.ext     | for files with number 100-999   Due to further processing I need all of their names to be in format: prefix-###.ext. Is there any easy way to do that? What is hard reset and what is factory reset? It is mentioned at  that one should do Factory reset or hard reset. I'm a bit confused about what is hard reset?  Factory reset I suppose is using the option in settings to reset phone to the factory state i.e. when it was unboxed. Low wifi signal in 14.04 LTS