How best to remove directional motion-blur from photos (on Linux)?
How can slightly blurred photos be improved in post processing?
Make a div fill the height of the remaining screen space I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ } &lt;table id="page"&gt;     &lt;tr&gt;         &lt;td id="tdheader"&gt;             &lt;div id="header"&gt;...&lt;/div&gt;         &lt;/td&gt;     &lt;/tr&gt;     &lt;tr&gt;         &lt;td id="tdcontent"&gt;             &lt;div id="content"&gt;...&lt;/div&gt;         &lt;/td&gt;     &lt;/tr&gt; &lt;/table&gt;     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works. trying to install Astromenace on my linux mint 14 cinnamon pc so i am following this tutorial as it is the only one i can find and any that i can find are the same as this one:    but when i type in the first command i gives me this  myname@myname-System-Product-Name ~ $ sudo wget -q -O- http://archive.getdeb.net/getdeb-archive.key | apt-key add - [sudo] password for myname: ERROR: This command can only be used by root. Can't unhide grayed out objects After some searching on stack / google I decided to ask this here, this is the second time I'm facing this issue this time with blender 2.8, previously with 2.7 and without a clue to how I got here.  Some of my objects appear hidden(10/12), and I can't seem to find a way to unhide them.  Solutions to the most common rookie mistakes seems to be   In local-view solved by pressing numpad / hidden by pressing H or Shift + H, unhiding with Alt + H   I'm not in local view, I can toggle visibility for 2/12 objects with Shift + H &amp; Alt + H, but the rest stays gray in the collection.  Last time I solved this by exporting the whole model as STL and importing it back again, I then had to re-group all the pieces but there must be a more simple solution.  Here's the .blend if someone wants to have a go at it: Ubuntu Server 18.04 LVM out of space with improper default partitioning Where Android apps store data? Harry was never a Horcrux of Voldemort     I have heard this line on SE a lot &amp; also vaguely read about that discussion.     My question is if Harry was not Voldemort's Horcrux &amp; if all the other 6 (5 inanimate objects &amp; Nagini) were destroyed beyond repair &amp; Harry tries to Avada Kedavra Voldemort, would he die? What would happen to Voldemort's soul inside Harry.  I've asked this question keeping in mind Harry isn't a technical Horcrux but only a part of Voldemort's soul is in him. So can Voldemort resurrect from this soul?    If its a duplicate, please mention the relevant discussion link in the comments Why won't Amanita move in and settle down? I keep getting an alert that Amanita would like to settle down. I have a house ready for them however they still won't move in. Who is this NPC and why won't they settle down? Integral of $\frac{1}{x^4+1}$ Just doing this for revision, seems much harder than it should be, should I use $x=\tan u$ ? Any help appreciated. Is it possible to embed a pre-existing DLL into a compiled C# executable (so that you only have one file to distribute)? If it is possible, how would one go about doing it?  Normally, I'm cool with just leaving the DLLs outside and having the setup program handle everything, but there have been a couple of people at work who have asked me this and I honestly don't know. Escape character in LaTeX I need to output the below text but since \ is a special character, I cannot:  [RegularExpression(@"\d+")]   Also sometimes I need use dollar sign $ as well but it seems to be a special char, too.  What is the way to escape those in LaTeX?  UPDATE:  I used \verb as suggested but I am unable to run commands inside it. Also, in the output the font and the opacity of the text is different than the default one:  \verb|[RegularExpression(\newline @"\d+")]| How can I convert timestamps in a column to a date? I have a file containing this:  1415602803,LOGIN SUCCESS,AUTH,user2,192.168.203.63,10.146.124.73,59996,22 1415602807,LOGIN SUCCESS,AUTH,user1,172.24.31.10,172.32.1.1,48191,22 1415602811,LOGIN FAILED,AUTH,root,172.24.166.153,10.146.124.73,52506,22 1415602815,LOGIN FAILED,AUTH,user3,192.168.123.55,10.146.32.99,55750,22   I want to convert the timestamp to a date in this format:  2014-11-10 02:00:03,LOGIN SUCCESS,AUTH,user2,192.168.203.63,10.146.124.73,59996,22 2014-11-10 02:00:07,LOGIN SUCCESS,AUTH,user1,172.24.31.10,172.32.1.1,48191,22 2014-11-10 02:00:11,LOGIN FAILED,AUTH,root,172.24.166.153,10.146.124.73,52506,22 2014-11-10 02:00:15,LOGIN FAILED,AUTH,user3,192.168.123.55,10.146.32.99,55750,22   How can I do that?  I know this works: perl -pe 's/(\d+)/localtime($1)/e' (from ) but the output format is Mon Nov 10 02:00:03 2014.  I know this command can convert timestamps into my desired output: date -d@1415602803 +"%F %H:%M:%S", but I couldn't make it work with awk using system("cmd") because of all the quotations and whatnot. I'm fairly new to bicycling; apologies if this is a standard question but I couldn't figure out how to phrase it to search for it elsewhere.  I ride a KHS Urban-X with Kenda Kwest tires (just what it came with). I've gotten barely any use out of it since owning it, and it's been resting comfortably in the living room through the winter, so I decided today was a great day to get back on.   So I unscrewed the back tire cap, and began to hand-pump air into the tire. All seemed to go well, and the tire held pressure fine, but when I removed the tire pump, the pin appeared to remain pushed down slightly, and air flowed back out of the tire. I looked, and this is what I saw:    Several narrow gashes that appear as if the rubbed was ripped, cut, or separated somehow.  Questions   Is this a common occurrence? Again, I've ridden on this bike very little and thus filled up the tires even less. We have no animals and no bugs around that I know of that would gnaw or chew on such material. Is this fixable, or is my tube completely shot? It would seem to me that the latter is the case. Is there anything I can do to prevent this in the future? I use a hand pump but am gentle; would a stand-up pump be a better choice?  Do bike tires come with a standard warranty for cases like this, or do you know of any brands that do? If I have to purchase new tires, I'm going to purchase Is there any kind of "off-season" maintenance that I should be performing on my bike that could prevent things like this?   Thanks in advance for any help you can give! I want to shrink my second (LVM) partition, in order to create a new partition in the newly freed space. I am using the Live CD to do so, because I know I can't resize/move this partition while it is in use. When I opened GParted in the Live CD, I realized that I could not resize the partition, because when I right-click it, the option "resize/move" is disabled.  I tried to unmount it, to "lazy" unmount it (umount -l /dev/sda2) but it didn't work.  A screenshot from GParted: Group files in some folders I have some files with different extensions such as *.pdf, *.mp3, *.jpg and a few others. All of them are stored in a parent directory.  How can I get a list of all extensions, create some folders based on these  extensions and then move all files into their relevant folders? I am very new to cryptography (so be kind), but I have a question that may seem silly.   If the one-time pad is the perfect cipher and impossible to crack, why would the following algorithm not be one of the strongest:  To encrypt:   generate a random bit array using a pseudo number generator with the key as the seed  The generated bit array is the size of the data use a simple XOR to encrypt using the generated bit array   To decrypt:   pseudo-random number generator will generate the same bit array with the same seed (the key) generate bit array the same size of the encrypted data run XOR on encrypted data using bit array that's generated   This is very simplified, but you can imagine how for larger encryption you could break down the data into blocks, and in order to ensure that the block bit arrays are random a new seed for each can be derived from the key. So, if $f(k)$ is the pseudo random number generator, and b is the block number, you can encrypt each block with $f(k+b)$. ($k$ is key)   Instead of using a pseudo-random number generator, you could use some hash algorithm to generate the pad.    (assuming you can use equivalently strong keys) would this not be a very strong cipher method? Perhaps it may be strong and heavy on memory since the pad needs to be the size of the data. So during encryption and decryption you need to generate a pad that's equivalent to the size of the data.   Is there a flaw in this algorithm, or would something like this not be practical and much slower than current standards? How precise is the frequency of the AC electricity network? If I make a digital clock which first detects the AC frequency roughly (whether it is 50, 60, 100Hz, etc), then uses it as its clock pulse source, how precise would it be? Would it work world wide precisely?  For instance, in USA, what is the mean and standard deviation of the 60Hz AC frequency? I'm  having some trouble editing the content of a Managed Email Template, I can quite easily modify the content of the Email Template, but when I wish to refer to an unmanaged component, like this:  &lt;messaging:attachment renderAs="PDF" filename="invoice.pdf"&gt;     &lt;c:MyComponent/&gt; &lt;/messaging:attachment&gt;   I get the error message:     Error: Unknown component c:mycomponent   Does anyone know if its possible to embed an unmanaged component in a managed Email Template? How can I view the time of a text message in iOS 7? What's a common interjection for the reaction to something creepy and disgusting (like some insects or spooky places, etc.)? How can I re-write the conditionals for this button I've been trying out React for a couple of days and I tried to build a button component with some conditionals. Everything works but I feel like I am not doing it the right way. Could anyone review my code and give me some advice and tell me what I am doing wrong or what i could do better. I think I am using too many return statements. I use Typescript for type checking. Would appreciate any help! import { Link } from &quot;gatsby&quot;;  interface Props {   content: string,   color: string,   path?: string,   type?: string }  export default function Button(props: Props): JSX.Element {   let elementType;    const checkProps = () =&gt; {     const availableColors = ['blue', 'grey', 'dark-grey', 'white'];     const borderColors = [''];     let buttonStyle;      // Check if props.color exists in availableColors     if(!availableColors.includes(props.color)) {       console.error(`&quot;${props.color} color key not available for button style`);       return;     }          buttonStyle = buttonStyles[`button--${props.color}`];      // Check if props.content is valid     if(!props.content) {       console.error(`&quot;${props.content} is not valid as content`);       return;     }      // Check if props.type exists     if(!props.type) {       elementType = &lt;button className={ buttonStyle }&gt;{ props.content }&lt;/button&gt;       return;     }      if(props.type !== 'link') {       console.error(`&quot;${props.type} is not a valid type, use 'link' instead or use nothing for default button`);       return;     } else {         elementType = &lt;Link to={ props.path } className={ buttonStyle }&gt;{ props.content }&lt;/Link&gt;     }   }    checkProps();    return (     &lt;React.Fragment&gt;       { elementType }     &lt;/React.Fragment&gt;   ); }```