Generating / Creating a signature in Latex

I am trying to include a signature on my cover letter in latex.   I would like to know if it is possible to create a signature in Latex. I am new to latex and I want to be able to create a signature with halohandletter font {Batman}. Can anyone show me how this can be done ?   I apologise I do not have a minimum working example.


Troubleshooting the Microsoft generic USB HID drivers

I've had the Logitech Wave MK550 for about two years now, and it has acted up twice on me now.  Now being the second time, anyways. What is happening is the mouse and keyboard simply stop working on my computer, however, they work on the same computer on Arch linux, Ubuntu, on my laptop running Windows 7, Arch and Ubuntu as well.   I talked to Logitech tech support today, but that didn't go anywhere. We determined that Windows is finding the devices and installing the drivers appropriately, because they show up in the Device Manager. My PS/2 Keyboard works fine, along with another USB mouse that I am using in the meantime, so she really had no idea where to direct me.  Anyone have an idea as to where to go from here? I miss my keyboard


Why does it sound perfectly natural to say Our flight leaves tomorrow at 6pm but weird to say It rains tomorrow at 6pm? What kind of scenario, if any, could make the rain sentence sound natural?


Can I interpret the "$\cong$" between finite groups as an "$=$" between sets in $S_n$?

[This post is admittedly a development of  of mine, based on therein accepted answer.]     Here I kindly ask for a "solution verification" of my final interpretation.     For $n$ positive integer, let be:   $I_n:=\{1,\dots,n\}$; $G$, $\overline G$ groups of order $n$; $\psi\colon G \rightarrow \overline G$ isomorphism; $f$ bijection and $\bar f = \psi f$; $\theta$, $\bar \theta$ Cayley embeddings; in general, $\varphi^{(\alpha)}$ the isomorphism between symmetric groups on sets of the same cardinality, defined by $\sigma \mapsto (g \mapsto (\alpha\sigma\alpha^{-1})(g))$, where $\alpha$ is a bijection between the sets; $S_n$ the symmetric group of degree $n$.   Visually:    Then:  $$\varphi^{(f)} \theta f = \varphi^{(\bar f)} \bar \theta \bar f \tag 1$$  Proof. Since $\varphi^{(\bar f)}=\varphi^{(f)}(\varphi^{(\psi)})^{-1}$ and (*) $\bar\theta=\varphi^{(\psi)}\theta\psi^{-1}$, we get:  $$\varphi^{(\bar f)} \bar\theta \bar f = \varphi^{(f)}(\varphi^{(\psi)})^{-1}\varphi^{(\psi)}\theta\psi^{-1}\psi f = \varphi^{(f)}\theta f$$  $\Box$  My interpretation of $(1)$ is as follows:     If two (finite) groups are isomorphic (via $\psi$), then, for a given labelling of the elements of the first one (via $f^{-1}$), a labelling of the elements of the second one exists (given by $f^{-1}\psi^{-1}$) such that the two groups' structures manifest in $S_n$ as one same set (by $(1)$, actually).     Edit. As pointed out in the comments, (*) needs not to be true, unless the embeddings are Cayley's. Anyway, since these latter always exist, the conclusion keeps unaltered.    Edit #2. If we'd define structure of $G$ (under a given labelling $f^{-1}$) the map $\varphi^{(f)}\theta f$, where $\theta$ is Cayley embedding of $G$ into $S_G$, then $(1)$ would precisely state that isomorphic groups have the same structure.    Edit #3. I think we can upgrade this result to an "iff" one.  Let:    where, for $n$ positive integer:   $I_n:=\{1,\dots,n\}$; $G$, $\overline G$ are groups of order $n$; $f$, $\bar f$ are bijections; $\theta$, $\bar \theta$ are Cayley embeddings; in general, $\varphi^{(\alpha)}$ is the isomorphism between symmetric groups on sets of the same cardinality, defined by $\sigma \mapsto (g \mapsto (\alpha\sigma\alpha^{-1})(g))$, where $\alpha$ is a bijection between the sets; $S_n$ is the symmetric group of degree $n$.   Claim. Let $f$, $\bar f$, $G$, $\overline G$, $\theta$ and $\bar \theta$ be as above. Then $G \cong \overline G$ if and only if:  $$\exists  f,\bar f \mid \varphi^{(f)}\theta f = \varphi^{(\bar f)}\bar \theta\bar f \tag 1$$  Proof. $\Rightarrow$) Let $\psi$ be the isomorphism between $G$ and $\overline G$; then, for any $f$, the bijection $\bar f := \psi f$ does the job (see  for the proof). $\Leftarrow$) Let $(1)$ hold for some $f$ and $\bar f$; then $\bar f f^{-1}$ is an isomorphism from $G$ to $\overline G$ (see  for the proof). $\quad \Box$


I want to edit a PDF file in the Salesforce Document folder to add some text or background image to it, and then save the changes in a new PDF document.  I tried to include the PDF in a Visualforce page using  and render this page as PDF. But that didn't work, because renderAs="PDF" didn't display the iframe in the output PDF. Clearly, PDF generation in Visualforce only works with some components.  Do you have any idea how to achieve PDF manipulation in Apex/Visualforce? I thought of using a Heroku service for which I can send the PDF file to do the PDF manipulation (In Java, Ruby on any other language). Is that a viable option? Do you know any ready-to-use Heroku services that can do the job?  Thanks in advance for your help. Riadh.


Correlation between two constant variables using the different approaches

Let's say we have a vector X = (1, 1, 1) and Y = c(2, 2, 2). I want to calculate correlation between those. Taking Pearson correlation brings us nowhere, because standard deviation of both of these equals 0 so we divide by 0. It means that Pearson correlation suggests us that correlation is undefined. However let's use geometric approach which says that correlation coefficient can be calculated as :  So by substituting our two vectors we get : $$r = \frac{1\cdot 2 + 1 \cdot 2 + 1 \cdot 2}{\sqrt{1^2+1^2+1^2}\cdot\sqrt{2^2+2^2+2^2}} = \frac{6}{\sqrt{3}\cdot \sqrt{12}} = \frac{6}{\sqrt{36}}=1$$ Why these approaches gives different results, while they are equivalent ? Which result is accurate ?


tried the workaround posted here  but not even after rebooting, updating grub or kilall unity-panel-service commands do reset unity but no hibernation is available on "start" button.  when sudoedit file saves as /vm etc etc, tried chaging this name to the /etc/polkit loclauth etc etc but wouldnt let me save the file there must be doing something wrong, because I browse to /etc/polkit-1/localauthority/50-local.d and there are no files there


Allow windows to be completely full-screen in 18.04

I remember on 16.04 I had to change settings so that windows could be completely full-screen. On 18.04, I can't figure it out. The menu bar on the left is always visible. I am looking for "zen-mode" where a given application can be completely full-screen, anyone know how to do that in 18.04?


do salesforce provide anything like async/wait which can handle loop to wait before going to next iteration

Below is my salesforce lightning code, I am passing an image url to a function 'imagecheck' which in turns return if my image is valid or not. However, it is taking some time to check and my 'for' loop gets iterated to next count and thus variable 'j' value doesn't get updated and it exit out of loop. I want my 'for' loop to wait so that 'imagecheck' function can return value then it go to next iteration so that variable 'J' will also be updated. Any help will be much appreciated.  imagecheck: function(url) {     return new Promise(function(resolve, reject){         var img = new Image();         img.onload = function(){             resolve('success');         }         img.onerror = function(){             reject('failure');         }         img.src = url;     }); }, getcheck: function(component, callback) {     var j=0;     var myId = component.get("v.currentversionobj").Id;     var myimages = [];     for(var i=0;i<=j;i++)    {          var imageUrl = 'someprefix='+component.get("v.currentversionobj").Id+'&page='+j;            this.imagecheck(imageUrl).then(function(successUrl){             j++;             myimages.push({url:imageUrl});             component.set("v.fileShares",myimages);         }).catch(function(errorUrl){              });    }  }


Can an illusion give a player partial cover?

I'm in an argument with a player at my table, he says hiding behind some bushes while shooting arrows at my monsters gives him partial cover because they can only see his head and shoulders. So they're limited in what they can even aim at. I accepted that. And now he's trying to use minor illusion to create fake bushes/walls and continuing to claim he has partial cover.  I thought cover was based on having a solid obstacle between you and the target... Like, if a magical attack, or penetrating attack can pass through your cover, wouldn't that negate the AC bonus from partial cover? Or is it about "aiming"?


What graduation gown should a PhD-holder wear when later receiving a Master's in another field?

I already have a PhD, but now I'm graduating with a Master's in another field from another university.  Question:  What academic robes do I wear?  I know it is normal to wear the regalia from the highest award but that seems strange in this case.


mkpasswd -m sha-512 password -s "22446688"

I have a question on mkpasswd command result, I must use the same word in this to reproduce the same result hashed over and over, but what happens if I left without the -S option this will create a hashed password with a salted random word, so here is my problem:  with -S option.-  password: p4ssw0rd word: 22446688 output: $6$22446688$kQPZPIx3oZHwJ/l1xteaU5CqM0m7IoglQPFtDwUSMYCUAHkRUAIAfETjvgJmXhwLm4NVI5DHTXYt9d25cnZN3/   RESULT WILL BE ALWAYS THE SAME ****  WITHOUT -S option.-  output:  $6$nLtu32Q.5ZtRwK9x$z51ORpMvbOmxRj2IveXlqZnBZI16Fnvn4HQA7JBAFIPbhTI/gugtq0XCS3bBl80JBTDrROrm9emMpyRaZt0Pv0   RESULT WIL VARY OVER AND OVER AGAIN****  when I use the word over and over the result is the same, when I don't use the word result is different, so my question is if I take for example option without -S option and used for encrypt password how do I guarantee that when enter password will be compared and will be same since I only have password but I don't know the salt word since this was optional and assigned randomly? or it does not matter since the word is stored with the hash of the password and is not required to know it?


There's a share permalink for each answer to a question (and for each question as well). It's right next to the flag and edit links at the bottom of the answer. How can I get the shared link statistics?


Seeking a direct proof about nested inclusions

Statement of the problem: Prove that if $A_1 \supseteq A_2 \supseteq A_3 \cdots$ are all finite, nonempty sets of real numbers, then the intersection $\bigcap_{n=1}^{\infty} A_n$ is also finite and nonempty.  My solution: $\bigcap_{n=1}^{\infty} A_n = \emptyset.$ Then at least one $A_n$ is disjoint from the rest - contradiction, since each $A_n \subseteq A_{n-1}.$ Next assume that the intersection has infinite cardinality - contradiction, since $A_n \supseteq \bigcap_{n=1}^{\infty} A_n,$ but we have $A_n$ finite.  This is a homework problem and this is what I will be turning in regardless of any answers I get. I would like to know if there is a direct proof of this claim. I had considered trying to show that $\exists x \in A_n$ for each choice of $n,$ which would show that the intersection is nonempty, but: a) I don't know how to do this, and b) I still would not be able to prove the intersection was finite except by contradiction.  Thanks!  edit: Moreover, we were told not to use induction on this problem. But if $A_1$ is finite, can't we reduce the collection of $A_n's$ to a subset of the power set of $A_1$ and then induct?


where to save your files of php in ubuntu to load on server?

How to save our php files so that we can load on our server . I have installed apache2 , php, and mySql . also I don't know how to connect these 3 so that I can simply work on my text editor. Please help me.


Special theory of relativity (change of things w.r.t to frames))

If there is a circle in one frame(inertial and stationary),then what will the circle look like from another moving frame


How to burn ubuntu ISO to local drive in window and then boot from it?

I have ISO file of ubuntu 20 and I currently have windows 10 as the only OS installed. I created a bootable USB from ubuntu and, although I could boot into live ubuntu, I was not able to install it as it would always give me the error that the bootable device was corrupted. After searching a lot on web, I came to the conclusion that I cannot install it with the only USB I have so now I want to try something completely new. I want to create a separate 10 GB of partition, lets call it local drive (E:). Then I want to burn the iso onto this partition and then have this partition listed in the boot record such that if I boot from E, I should be able to install ubuntu. How can I do this? Is there any software for windows 10 that can be used to create a bootable partition from iso file and then how can I have that partition listed in boot menu?


I am designing a logo for a client. I've given her a few ideas and she wants to take 3 of them and work on them herself with her sister. We have a contract and she'll pay me so that's not the issue. I don't want her compromising my design! How do I share my feelings without being condescending? Thanks.


intersection of infinite collection of finite sets?

I know that there are questions asking like "intersection of a infinite collection of sets" and I can understand that the answer for that one is a null set, but I got a question here, in which all sets are finite and nonempty. Please take a look at the pic below.  It's a True/False question.  What I'm confused about is that the "infinity" sign in the interception. Since all sets are finite, does it mean that there are many sets in the chain are the same? (because the symbol used is for subsets not for proper subsets). Please give me some hints how I should think about this question.  Thank you


Assume that we do not know Prime Number Theorem yet.  Then     What is the limit of $\frac{\pi(x)}{x}$ as $x \to \infty$. I feel that is should go to $0$, but I am not sure about that. How should I find that out. May be we should bound it above by some function. How should I proceed with that?    $\pi$ is the prime counting function.


How to combine these two phrases? size-based and color-based

I want to write:  "We design color-based and size-based models."  Meaning that we design a color-based model and also a size-based model.  Isn't it more appropriate to write:  "We design color/size-based models."?


Javascript mixed comparison between 2 object / array

I have 2 different javascript object :  key = {   id : 3,    name : "Leroy",    class : "A",    address : "IDN",    age : "17" }   and ...  answer = {   id : 3,    class : "A",    name : "Leroy",    age : "17",    address : "IDN" }   What I wanted to do is to compare answer object with key object using (===) or (==) and will return true, even when the answer object key order is mixed, but as long as the value within each key is the same, it will still return true.  The condition will return false if one of the key in answer object and its value is not present, or there is a new key and value set inside the answer object.  Any help would be appreciated!


How could I prove $\omega_1$ is an uncountable ordinal without appealing to Foundation?

During my course on elementary set theory, we defined $\omega_1$ to be the set of all countable ordinals. Now with Foundation we know that $\omega_1$ cannot be countable since that otherwise means $\omega_1\in \omega_1$, which just violates Axiom of Foundation. Now the question is can we prove $\omega_1$ is uncountable without using Foundation? How should I proceed? This was a past paper question that did not worth so many marks and so I was wondering if there is a really slick way of showing this. I thought about using the criterion that a set is countable if and only if there exists a surjective function from $\omega$ to this set / if and only if there exists an injective function from this set to $\omega$ but I am stuck after some initial thoughts. Many thanks in advance for any helps!


I was trying to use the in page search to find a post and... it doesn't work. It just does nothing for a long while, then throws me a we're currently offline for maintenance. While I use an unsupported browser - Vivaldi 3.0.1874.23, another user reports the same issue on firefox on windows. I wish I could give more information, but this is what I have. Jokes about SE search being more broken than usual aside, can we have this fixed please?


Why is only one end at rest when a rope is attached to a cube?

I know there is something wrong in the way I think about physics generally, but I don't know what it is.  Suppose there is a cube with a hook on one face and a rope attached to that hook (see diagram). Now let's say there is some force $F$ pulling the cube from the face opposite the hook & rope. The hook will force the rope to accelerate in the direction of $F$. The rope in reaction would exert the force $-F$ on the cube through the hook. Now there are two forces acting on the cube: $F$ and $-F$, which would cancel, and the cube should be at rest. But what happens really is that the block is accelerating in the direction of $F$.   Now, where am I going wrong in this problem? Or in thinking about forces, in general?


Change a cell number in formula from another cell

Basically I have this formula:  =(MIKE!$B8)   and I have a bunch of cells withs Numbers like so:  Cell | Cell Number Change C1 | 10  C2 | 16 C3 | 29 C4 | 40 C5 | 61   What I want to do is to be able to change the number "8" for the formula by referencing a cell to grab a number, which will thus change the formula and the output of the data. I'll use it to copy and paste down and change the numbers out to get only the output of different cells that I need.


Strange output for a beamsplitter with xelatex

I’m trying to figure out how to use the pst-optexp package. However I can’t make the \beamsplitter work. Even with the code provided by the documentation (§4.20, p.46 of the English version of the documentation):  \documentclass{standalone} \usepackage{pst-optexp}  \begin{document}  \begin{pspicture}(3,2) \beamsplitter[beam](0,1)(2,1)(2,0){BS} \end{pspicture}  \end{document}   I obtain this strange output:    I use the 5.2 version of the package and I am working with TeX Live 2016. No error is showing up during the compilation.  The only (somehow could be) related comment I have found about this is the one of Christoph  (below the answer)…     Edit  In fact by using the combination latex>dvips>ps2pdf, it works. However I would have liked to use XelateX if possible…


I am trying to use the (lowercase) lambda from the stix package without using the rest of stix. There is this question: . But I do not know how to get lower case lambda.  The code \renewcommand{\lambda}{{\usefont{U}{stixextrai}{m}{n}\symbol{3}}} gives capital lambda, and there is a list of codes here: . However, I cannot seem to find the right number for the symbol I want.  Does anyone know the number/have a list of the numbers for symbols? Thanks in advance.


I was using image references to create a character however after pressing some keys on my keyboard, which activated a short cut, when i attempted to go into front view to see my reference u=image, it appeared to have disappeared. As i was following a tutorial and therefore was doing it as a learning exercise i was willing to restart the project again, i started a new file. However once i re entered the reference images it still would not appear on my front view (I did set the axis' correctly)  If anyone knows of anything that could help that would be most appreciated,  Thank you, Nura


I am in Indonesia, in Labuan Bajo (Flores) next to the Komodo national park, & I have been told it's possible to go to Lombok by bus & ferry.


Remove unused macros and code after configure

A cross-platform C/C++ program will usually use lots of macros to test whether some features exist in the platform where it is built:  ... #if defined(HAVE_EPOLL)     handle_connection_with_epoll() #else     handle_connection_without_epoll() #endif // HAVE EPOLL ...   Normally one will then use ./configure to generate a config.h header file, in which the HAVE_EPOLL will be defined if there is epoll interfaces (i.e. Linux) and we will go with the handle_connection_with_epoll() code, otherwise HAVE_EPOLL will not be defined and we will got with the handle_connection_without_epoll() code.  Reading these kind of code is painful, especially when there are nested conditional macro branch:  ... #if defined(HAVE_EPOLL) #if defined(HAVE_FCNTL)     handle_connection_with_epoll_and_fcntl() #else     handle_connection_with_epoll() #endif // HAVE_FCNTL #else #if defined(HAVE_FCNTL)     handle_connection_without_epoll() #else ... #endif // HAVE_FCNTL #endif // HAVE EPOLL ...   So, is there any tool which can be used to remove those dead macro branch after ./configure so that the code read more clearly?   For example, if HAVE_EPOLL and HAVE_FCNTL are defined after ./configure, the snippet above will become  handle_connection_with_epoll_and_fcntl()   which is much clearer!


Restore somewhat broken volume on the disk in-place?

After a power outage my laptop fails to boot. I investigated the matter with a bunch of disk utilities and live CDs. The data is intact, and I made a backup copy of it. Nevertheless I'd like to restore the disk functioning, including booting of course, with as minimal efforts as possible. I know many experts suggest to recreate partitions anew, restore operating system anew, and reinstall software anew. This is hardly doable in my case (I don't even have all distribution kits). This is why I'd like to edit corrupted partition table in-place, and I need an advice which part exactly is problematic.  The disk contains 2 volumes: one is primary partition and the other is a logical drive in extended partition.  When I boot the laptop from a live CD, Windows sees both drives, but the logical drive in the extended partition is inaccessible.  diskpart's command list volume shows that the volume fs flag is RAW instead of NTFS. The odd thing is that disk utilities which I used to restore data (including ) see this volume as NTFS and read data from it without problems.  Here is the output of diskpart:    And here's what DMDE shows:    The question is which raw bytes and how should I edit in the table (I can use DMDE for direct disk edition, for example) to make the volume proper NTFS accessible from Windows?  I'm not sure which other details may be important and ready to provide them upon request.  Update  The only one real answer among the linked ones suggests using TestDisk. First, I must say that this utility is very picky about OS - it does not run on any WinPE based live CD I tried. Finally I managed to run it on [almost] fully fledged Win7 live CD. Here is what it shows (please note NTFS in the logical volume in the extended partition):    and (please note FAT32 this time):    I need to recover the largest volume from here. It's displayed as FAT32 under TestDisk (DMDE shown NTFS). P command does not produce a readable list of files for this volume. I tried the T command to change type to NTFS, but this did not solve the problem: P still lists a garbage ("file system may be damaged"). Yet I see the full filesystem under DMDE and saved it using r.saver utility.  I ran a deeper search:    and found:    The Deleted NTFS volume is the actual drive with my data. Then I changed its from 'D' to 'L' and did Write changes to the disk and reboot.    The drive is still inaccessible, but now if I run DMDE it complains that MBR records require a disk of at least 625153410 LBA (320GB), but the disk is 625142448 LBA (320GB).  From my experience either TestDisk is incapable of doing the job in my case, or I need more detailed instructions what exactly to fix using TestDisk.  Thanks in advance.  As a small remark I must say that TestDisk is buggy: i made a backup of the partition table by corresponding TestDisk's command, then changed the table and wrote it to the disk; then discovered that the changes did not help and decided to rollback the changes from the backup - as a result I got completely different and incorrect partition table. The only thing that saved me from a fiasco was that I made another backup using dmde, which restored the structure as expected.


Google has  so on a 32bit Debian machine it's not possible anymore to update the APT repository:  W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)   Also has the .deb file removed from Google servers as it seems.  Is there any alternative .deb download of the last release (46?) available somewhere?  Reason: For an automated Debian build system (debootstrap-based) I urgently need a way to install Google Chrome 32bit v46 (or similar). Switching to another browser (including Chromium) is not a quick enough option for me at the moment..


Under Windows 10, display the screen on a portion of the monitor

I am planning to buy a 38 inch 3840 x 1600 pixels ultra-wide monitor for my desktop computer. But sometimes I need to make Windows think the resolution of the monitor is 2560x1440 and make the display area to be a 2560x1440 pixel region on the physical monitor. In other words, instead of stretching the contents to the full 38-inch monitor screen, the areas beyond the 2560x1440 pixels display area should be black. I did see some answers about similar needs such as . My need is indeed similar, but I also need Windows to think there is only one monitor and its display resolution is 2560x1440. This is because I use proctor software, such as HonorLock, for exams, and such software insists that I use only a single monitor and will maximize the Chrome window to span the whole screen area. If I make the full 38-inch screen available, the exams would be unreadable.


Reading single lined code snippet becomes annoying often

I have posted the picture, and it becomes annoying reading a single lined code snippet.  I am using Chrome version 57.0.2987.133 (64-bit) on macOS v10.12 (Sierra).  Why didn't Stack Overflow do this?...


I have the following code:  Dim query = CsteList.Where(Function(i) i.Text.Contains(FilterTextBox.Text.Trim))   FilterTextBox.Text = "HELLO" FilterTextBox.Text = "hello" FilterTextBox.Text = "HeLLo"  whether input as "HELLO" or "hello" my code should filter respective word


Why are Japanese manga not coloured unlike Korean Manhwa?

In general, most Japanese manga are not colored, except for title page or centre color pages, rarely. However, most Korean manhwa manage to colour their works while maintaining a good standard of art, also in their weekly deadlines.


Huge tree, last of kind, being cut down. Logger meets female tree-spirit who is dying as her tree is cut down

Anybody remember a short in anthology late 50s? Huge tree last of kind being cut down. Member Sawyer crew meets woman evenings off. Falls for her. She is spirit of the tree slowly dying as it is cut down.


Can you connect to a LAN server without being on the same internet connection

I was just wondering if you can make a LAN server then connect being across the world just using the ip address that you get to choose like this  Gamemode: blah, Op: blah  Port, IP Address  12345, 101.game.net


Why is the Mandelbrot Set to the power of 2?

I've been looking at the Mandelbrot set and playing around with the powers on it. In the sense that I know the equation is , and I've been changing up the $2$. As it happens gradual increases in the power have interesting effects, but I can't find much about them online. Why is it that the set uses the power $2$ as opposed to anything else?  Also, on a side note, does anyone know an explanation as to why the Mandelbrot set is shaped the way it is? With the different sections in it, and the symmetry about the real axis?  Thanks :)


Badges not awarded even after eligibility

As per my information I am eligible for badges Enlightened (first to answer and accepted with score of 10 or more) and Guru (accepted answer and score of 40 or more), also a few badges from answer section on Stack Overflow, but I have not been awarded by those badges.  May I know why I haven't received these badges?


Producing free energy using perpetual motion

The two magnet pairs $N_2$ and $S_2$, $N_1$ and $S_1$ attract each other respectively which causes the wheel$_1$ to move in the clockwise direction and wheel$_2$ to move in the anti-clockwise direction. The rest of the magnets does not produce any effect because they are shielded by a magnetic screen. The continuous rotation of wheels can be used to run a turbine which can produce energy.so energy can be produced.


Before I started using Ubuntu I used Nitro PDF reader to automatically extract images from PDF files. Is there a PDF reader for Linux that does this?  I would like to be able to extract images faster/easier than when taking a snapshot.


What would be the right thing to use if I want the base of a transistor to be high for 12 hours and low for 12 hours?  I ask because I would like to make a circuit that regulates temperature in a room. To do this I am using a ntc thermistor and a ptc thermistor that I have set to trigger a fan or a heater depending on the temperature of the room, but my question is not about the thermistors. I want the room to be hotter for 12 hours and cooler for 12 hours a day and I don't know what to use to switch between two temperature control circuits.  I am building this for a garden. I want the plants to have a "daytime" and a "nighttime" (quotes because the plants are indoors and receive their light from lights that this circuit will help control).  I am pretty sure I can do this with a microcontroller like an arduino, but I am curious if there is another way to do this without a microcontroller. I was thinking of a 555 timer, but I don't think resistors and capacitors exist that are big enough.  Thank you for any response you might provide.


How do I create a CacheFile object for a Mesh Sequence Cache modifier?

I’m very new to the blender API (so forgive the noob-ness) but have experience with python and the maya API. I’m trying to write a simple batch script to attach alembic animation caches to a series of geometries using the mesh sequence cache modifier. It’s a simple for loop that needs to create the modifier then set the parameters. import bpy   anim_cache_file = 'C:/Users/example/Desktop/cache/example.abc'  for geo in bpy.data.collections["geo_collection"].objects:          object_path = "/{0}/{0}Shape".format(geo.name)          bpy.context.view_layer.objects.active = geo     modifier = geo.modifiers.new(name="cache", type='MESH_SEQUENCE_CACHE')     modifier.cache_file = bpy.ops.cachefile.open(filepath=anim_cache_file)     modifier.object_path = object_path  Currently, i’m working through the documentation : I need to supply a CacheFile but I have been unable to initialize an instance. It’s mentioned  (under heading Data Creation/Removal) that new data-blocks in the bpy API can’t be created by calling the class. Instead data is added and removed via methods on the collections. The problem is I cannot find the relevant method to create a Cache file. If anyone is across this I’d really appreciate some guidance. Cheers


How to install a downloaded .deb file along with its dependencies in a system with an internet connection

I thought when I executed apt install pkg, a deb file would be downloaded and put into /var/cache/apt/archives. But today after executing apt install python2.7 python-pip, I can't find any deb file in var/cache/apt/archives. I don't know why. Is it because I write sudo apt install pkg into a bash script and didn't execute the script with sudo?  For some reason, I need to be able to install some package from deb files, meaning that I should be able to execute dpkg -i pkg.deb, instead of apt install pkg to do the installation.  I've tried the command apt download pkg and it did download a deb file but it is a tiny file. When I execute dpkg -i pkg.deb, there are many errors about dependencies and I have to execute apt install -f to solve them.  My system has a working internet connection. How can I get a complete .deb package?


Matrix exponential for Jordan canonical form

Let $X$ be a real $n \times n$ matrix, then there is a Jordan decomposition such that $X = D+N$ where $D$ is diagonalisable and $N$ is nilpotent.  Then, I was wondering whether the following is correct.  $e^{tX}(x) = \sum_{k=0}^{m} \frac{t^k N^k}{k!} \left(e^{t \lambda_1} \alpha_1 v_1+..+e^{t \lambda_n} \alpha_n v_n \right).$  Here $x = \sum_{i=1}^{n } \alpha_i v_i$ and $v_i$ are the eigenvectors of the diagonalisable matrix, $\lambda_i$ are the eigenvalues of $D$ and $m$ is the degree up to which $N^k$ is still non-zero.  Is this correct or am I doing something wrong? Cause I could not find a general equation for this matrix exponential, so I tried my best. (Thus, I am only asking for a verification or correction of this answer.)  If anything is unclear, please let me know.


can we point o an animal and "what animal is this ? or which animal is this? which one is correct?

I just wanted to know if its gramatically correct to say what animal is this? or which animal I this?


TV show episode with a woman in a park who keeps "dreaming" of doctors around her

Back in the mid/late 90s I saw a show where a woman and man were having a picnic in a beautiful park. The woman fell asleep and woke up with (maybe) doctors around her that told her everything was okay and to close her eyes. She woke back up at the picnic with the man, and thought she had a bad dream. Then things started “glitching” in the park, kind of like when the holodeck malfunctions in Star Trek.  She then wakes back up with several people around her (maybe doctors) who say she’s in shock and dying. After she dies, the (maybe doctors) say something like “she’s the third one this week” or something like that. The camera pans out and shows that everyone was in a giant building or maybe a ship, and she had been plugged in some kind of machine like The Matrix.


I have the following script:  $ ls -al setprog.sh  -rwsrwxr-x 1 root root 52 Αυγ   2 10:23 setprog.sh   $ cat setprog.sh  #!/bin/bash  while [ True ] do     echo $(whoami) done   When running it  $ ./setprog.sh  pkaramol pkaramol pkaramol   Why the process owner indicated by ps (real user) and and the user by whom the program is executed (effective user?) match? Shouldn't the one of them be root given that the script is owned by him?  $ ps aux | grep -i setpr pkaramol 10294 18.0  0.0  12888  3268 pts/0    S+   10:45   0:00 /bin/bash ./setprog.sh pkaramol 16746  0.0  0.0  14432  1104 pts/1    S+   10:45   0:00 grep --color=auto -i setpr


I can't install any updates due to this disk space problem. Having reviewed various blog posts on this subject, I've understood that it has something to do with an accumulation of old kernels, but the solutions are not straightforward. Can anyone guide me to a tailor-made solution for my system (Ubuntu 16.04 LTS) ?  Output of sudo parted:  Model: ATA HITACHI HTS72323 (scsi) Disk /dev/sda: 320GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags:   Number  Start   End    Size   Type      File system  Flags  1      1049kB  256MB  255MB  primary   ext2         boot  2      257MB   320GB  320GB  extended  5      257MB   320GB  320GB  logical                lvm   Model: Linux device-mapper (linear) (dm) Disk /dev/mapper/ubuntu--vg-swap_1: 4148MB Sector size (logical/physical): 512B/512B Partition Table: loop Disk Flags:   Number  Start  End     Size    File system     Flags  1      0,00B  4148MB  4148MB  linux-swap(v1)   Model: Linux device-mapper (linear) (dm) Disk /dev/mapper/ubuntu--vg-root: 316GB Sector size (logical/physical): 512B/512B Partition Table: loop Disk Flags:   Number  Start  End    Size   File system  Flags  1      0,00B  316GB  316GB  ext4   df -h | grep -v loop  udev 1,9G 0 1,9G 0% /dev  tmpfs 382M 11M 371M 3% /run  /dev/mapper/ubuntu--vg-root 290G 165G 111G 60% / tmpfs 1,9G 110M 1,8G 6% /dev/shm tmpfs 5,0M 4,0K 5,0M 1% /run/lock tmpfs 1,9G 0 1,9G 0% /sys/fs/cgroup /dev/sda1 236M 161M 64M 72% /boot cgmfs 100K 0 100K 0% /run/cgmanager/fs tmpfs 382M 68K 382M 1% /run/user/1000    @guiverc @mikewhatever @N0rbert @karel @vanadium  thanks for pointing out that an answer exists. I have read that answer but I wasn't confident about following the instructions, so I would appreciate one of you walking me through what needs to be done.


In Java, setting a variable to a value based on a condition could be done in one line  like so:  variable = (!true) ? 1 : 2   This would result to '2'.  Is there python equivalent to this code?  Thank you.


Is there a word that describes when you are unable to remember the word you want to say?

I vaguely remember seeing this word years ago, it started with "log-". I want to know what this word is because I have this problem all the time (as many others do), where the word I am thinking of is right at the tip of my tongue but I just can't remember it.   It's a bit fitting for this situation, isn't it?


How can I maximize laptop battery service life

My laptop is ASUS K 551 LB, which has an internal battery.  Would the battery's service life be longer leaving the laptop plugged in whenever possible, or running off the battery to regularly run down the charge?


In residual sum of squares, why do we need to square?

I am learning regession, and I dont understand why do we need to square in residual sum of squares. whats wrong with just use residual sum to represent as the error value? What is the benefit of squaring the residual?


How do I fix "$'\r': command not found" errors running Bash scripts in WSL?

I'm getting an error in WSL while trying to use .  I followed all the install steps successfully on Windows 10 x64 using the steps at , then Ubuntu for Windows with GitHub desktop .  But I'm blocked at the latest steps.  It's where I trying to download or train the model in Windows. Using for example the Ubuntu Linux prompt, I navigate manually to the appropriate place and type a following command like the one below (I also tried in su mode)  bash pretrained_models/download_pix2pix_model.sh facades_label2photo   I get an immediate error, always the same, similar to these:  root@Azure:/mnt/c/Users/vincent/Downloads/vision/pytorch-CycleGAN-and-pix2pix# bash pretrained_models/download_pix2pix_model.sh facades_label2photo pretrained_models/download_pix2pix_model.sh: line 2: $'\r': command not found Note: available models are edges2shoes, sat2map, and facades_label2photo pretrained_models/download_pix2pix_model.sh: line 4: $'\r': command not found ]pecified [facades_label2photo pretrained_models/download_pix2pix_model.sh: line 6: $'\r': command not found mkdir: cannot create directory ‘./checkpoints/facades_label2photo\r_pretrained\r’: No such file or directory pretrained_models/download_pix2pix_model.sh: line 10: $'\r': command not found WARNING: timestamping does nothing in combination with -O. See the manual for details.  : No such file or directoryhphoto pretrained_models/download_pix2pix_model.sh: line 12: $'\r': command not found pretrained_models/download_pix2pix_model.sh: line 13: $'\r': command not found   Any idea?


Short sci-fi story about Earth blockaded by other human colonies

Like the subject: short sci-fi story about Earth blockaded by other human colonies.  The best humans have colonized some stellar systems. But they begin to treat humans of earth like inferiors. A war began, colonies won the war and blockaded the earth, but despite this the earth won. Who is the author?


Let $C$ be the Banach space of all complex continuous functions on $[0,1]$, with the supremum norm. Let $B$ be the closed unit ball of $C$. Show that there exists continuous linear functionals $\Gamma$ on $C$ for which $\Gamma(B)$ is an open subset of the complex plane ; in particular, $|\Gamma|$ attains no maximum on $B$.   This is the problem in the book 'Rudin's fuctional analysis', p$87$ problem $8$.  By duality, $\Gamma$ can be expressed as follows.  $$\Gamma(f)=\int_{[0,1]}f(x) \, d\mu(x)$$ for some regular Borel measure $\mu$.  The typical example is a point mass measure, but it doesn't work. I have no idea.  (I'm calculating the case that $\mu(1/n)=(1/2)^n(-1)^n, n=1,2,3,4,...$)  Thank you in advance


Placeholder text for "Insert hyperlink" is still HTTP, when editing a tag wiki

(This might be something to do with old/new editors, but I'm not sure.) The screenshot below:  Shows that the placeholder text for inserting a hyperlink into a tag wiki is still http://, and not https://.  As we now have network-wide https://, can we fix that?


Intersecting to vector layers when there is no common attribute

I am trying to join two vector layers into one, the first is a road noise barrier shapefile, the second is a vectorised DEM.  The road barriers have a relative height attribute for each section of road, one barrier passes through several DEM regions while maintaining the same relative height.   When running the intersect operation I get the following error: GEOS geoprocessing error: One or more input features have invalid geometry.  How can I fix this error or get around the problem another way to find the height of the barrier after subtracting the Local DEM.    Changing the CRS didn't solve the problem


I have older Pages files I need to open. I am running Mavericks and get the "This file is too old..." error that tells me to save the file with Pages 09. So I reinstalled Pages 09' at it won't even open without updates and the AppStore says there are no updates. My 09' instal is in the applications/iWork folder. How can I get these files open?


What is the difference between a reinterpret_cast and a C-style cast?

What is the difference between :   double x = 10.3; int y; y = (int) x;    // c-like cast notation   And :  double x = 10.3; int y; y = reinterpret_cast<int>(x)


So Axiom of regularity states:  every non-empty set A contains an element that is disjoint from A  I'm wondering if this is equivalent as any set is not a member of itself? If so, how do we prove it?  If not, I am wondering is knowing any set is not a member of itself sufficient to derive that a∈b and b∈a cannot be both true?


Are there tax implications of refund of overpayment from HSA?

possibly related: ,  (But I don't really understand the topic and those questions well enough to know.)  The Story: I have an HSA (through work) in addition to my job-provided health insurance plan. Some months ago I received a bill from PROVIDER and paid DOLLARS out of my HSA. My payment and a second notice from PROVIDER crossed paths in the mail. Not really being on  top of my game, when I received second notice from PROVIDER I paid it with DOLLARS out of my HSA. Recently I received a refund check in the amount of DOLLARS from PROVIDER. I deposited DOLLARS into my traditional checking account. So DOLLARS flowed out of my HSA, was refunded to me by PROVIDER, and is now in my bank account. The Questions:  Can I put DOLLARS back into m HSA somehow? If I can, do I need to file anything to identify the erroneous payout from the HSA with my later "repayment" to the HSA?  If I can't put DOLLARS back into the HSA, how do I pay the proper taxes on that money? It went to my HSA pre-tax....   :  The originating event, two paments by me, and refund have all occured within calendar year 2015. I still have access to the HSA. Nothing about my insurance or HSA has changed this year or will change whenwe hit calendar year 2016. Except the cost of my premiums, of course. (Ohh... you almost got me there, INSURER.)


How to add users roles dropdown in  registration in  wordpress   function myplugin_register_form() {  global $wp_roles;  echo '<select name="role">'; foreach ( $wp_roles->roles as $key=>$value ):  echo '<option value="'.$key.'">'.$value['name'].'</option>';  endforeach; echo '</select>';   }  add_action( 'register_form', 'myplugin_register_form' );  add_action( 'user_register', 'myplugin_user_register' );     function myplugin_user_register( $user_id ) {         if ( ! empty( $_POST['role'] ) ) {             update_user_meta( $user_id, 'role', trim( $_POST['role'] ) );         }     }   i used this code in functions.php but not working regards


I have several text files which should contain text in multiple lines. I can see that the \n is present where the text should go to a new line, but this is not working. I also noticed that there is no space between the \n and the following word (i.e. word1 \nword2) could this be the cause? How can I solve this?  I tried to modify manually one of the files (by changing the \n with an actual "return") and this worked, but I have hundreds of files. I would like to use sed, but I don't know how to change \n to "return".


BCM43142 WiFi not working in Ubuntu 14.04.2

I tried many solutions given for other BCM43 drivers and nothing helped me!! I saw one guy posted that WiFi wont work for Wubi Ubuntu of BCM43142.  I do not have ethernet connection too in my home!! I use my own mobile hotspot for this! So WiFi is must for me... Buh unfortunately nothing worked for me!!  Anyone using WiFi in BCM43142 hardware?  My ubuntu is Wubi. If anyone got solution please help me.


Help explain how direction change relates to acceleration

I was doing some simple harmonic motion problems and I came across this  describing the position, velocity and acceleration of a linear oscillator.   At the moment in time when v is 0 the linear oscillator should not be moving, only changing directions.  I'm having a hard time understanding why the acceleration is the greatest at that time (according to these graphs), since there is no velocity change.  Is it because acceleration is only the difference in velocity at two different points in time and not one?  How exactly does the change in direction affect acceleration?  edit: I found another  that answered my question. haha.


Einstein's Cosmic Speed Limit $c$ challenged by Black Holes/Massive Objects

To even suggest the great Einstein is incorrect on anything he has written is inconceivably absurd. Being fully aware of this I do indeed dare to not only suggest he is wrong but I cannot believe nobody has questioned his cosmic speed limit to this very day. I do not need any mathematical equations to prove this point. Common sense will suffice.     If in fact the cosmic speed limit $c$ is achieved only by light at the estimated 186,000 miles per hour then it must be true that this speed limit is surpassed when light is engulfed by a super massive black hole because of the simple fact that the light cannot escape this giants gravitational pull. Wouldn't this mean that the light must be travelling faster than what it was before meeting this cosmic anomaly?


Format disk in mac with a lot of reading and writing

What I want to do is Format my SSD disk of my Mac Book Pro (2019), but I want to do it in a VERY safe way. So that there is no trace of the deleted files and nobody can access them anymore. That's why I think the best option is to look for a software that formats the disk doing a lot of reading and writing. I can't find good and reliable software that does that on a Mac. Is there one?


Can Fully Homomorphic Encryption do comparisons?

I encountered a simple function that even FHE cannot solve. Here's it:  int f(a,b,c,d){    if(a+b>c+d) return a+c;       else return b+d; }   Since FHE is not order-preserving, one can't figure out whether a+b>c+d without the decryption key. That means even if practical FHE was implemented, f(a,b,c,d) cannot be computed in the Cloud independantly and securely. Not to mention linear regression, or more complex functions.  So I wonder with such an obvious limitation, why is FHE called "the holy grail of cryptography"?


I have an exam in two hours and this is one of the exercises in my textbook that I have problem with, I tried solving it using the main theorems but i couldn’t figure it out. The question goes: If G is a nonabelian group with order of $p^3$ which p is a prime number then prove $G’=Z(G)$ A hint or an answer would be appreciated .


Click event by name not working in jQuery

I am stuck with very small issue.    Ignore     Ignore1    You can see  two hyperlinks and here is the jQuery code.  $("a[name='ignore1']").click(function() {     alert('Test Ok'); });  $("a[name='ignore']").click(function() {      alert('Ok'); });   I am not getting alert. Do you have any advice on this?


How to use dedicated video card instead of onboard?

I tried running DxDiag (DirectX diagnostics), and I noticed that my graphics card is set to the onboard one that comes with the Core i5 processor (some Intel HD stuff).  On my computer, I also have a dedicated graphics card (an Nvidia 310). No serious gaming stuff, I know - just for programming.  However, I would still love to know how to switch to that dedicated graphics card instead.  My laptop is an MSI CX720.


After running the query  UPDATE parcel SET wkb_geometry = ST_MakeValid(wkb_geometry)  WHERE ST_IsValid(wkb_geometry) = 'f'   I receive the following error:   NOTICE:  Too few points in geometry component at or near point -121.78764087332524 37.700189714113364 ERROR:  Geometry type (GeometryCollection) does not match column type (MultiPolygon)   However, this is even after I imported the GeoJSON file with the ogr2ogr command -nlt PROMOTE_TO_MULTI, which is supposed to covert polygons to multipolygons  and  running   ALTER TABLE parcel ALTER COLUMN wkb_geometry      SET DATA TYPE geometry(MultiPolygon) USING ST_Multi(wkb_geometry);   in postgres.  What might be going wrong and how can I remove and/or alter the polygon that has too few points?


this code is giving me a null pointer please help me fix it.  private void homeFragment(Profile profile) {     if (profile != null) {         Bundle mBundle = new Bundle();         mBundle.putParcelable(PARCEL_KEY, profile);         HomeFragment hf = new HomeFragment();         hf.setArguments(mBundle);          FragmentManager fragmentManager = getActivity().getSupportFragmentManager();         FragmentTransaction fragmentTransaction = fragmentManager                 .beginTransaction();         fragmentTransaction.replace(R.id.mainContainer, new HomeFragment());         fragmentTransaction.commit();     } }


Showing $\sum_{n=2}^{\infty} \frac{1}{n \ln(n^3)}$ diverges

Two questions:  Show whether $\sum_{n=2}^{\infty} \frac{1}{n \ln(n^3)}$ converges or diverges.  According to wolfram, the series diverges by the comparison test, so I tried the following:  for $n$ large, we get $n < n \ln(n^3) $ but then $\frac{1}{n} > \frac{1}{n \ln(n^3)}$, which gives me nothing, any tips?


I am trying to convert string to date using NSDateFormatter,but some how I am not able to do.  Here is my code:  var dateformatter = NSDateFormatter() // object of NSDataFormatter dateformatter.dateFormat = "dd-MM-YYYY"  //Format in which I want date println(dateformatter.dateFromString("2014-12-25 00:00:00"))


Is 2^n + 1 = k^2 only valid when n = k = 3?

I'm trying to solve this equation  $$ 2^n + 1 = k^2 $$ but I found only one solution where  $$ n=k=3 $$ Is there are any other solutions and how to prove if there is no more?


For example, there is a link  in terminal, usually I could right click on the link, select open link to open the link in google-chrome.   But now I cannot do this on ubuntu 15.10. Google-chrome only opens a blank page for me every time. It works in Firefox or Opera if I set the default browser as them, and it works on Windows, too. It just doesn't work on ubuntu 15.10 with google-chrome. I don't know if this is a bug of google-chrome or ubuntu. Has anyone encountered the same problem? How to fix it?


How to find the password to my iPad's currently-connected Wi-Fi network?

I am connected to my wifi on my iPad but I want to know if there is a way to find the password that is put in to get connected to it.


How to turn off searching from URL and go straight to 404 page

When I put something after my domain name that doesn't exist I am taken to my 404 page, for example:  example.com/sdkjhfdsjk   But if I put something that exists as an image I am taken to the page for that, for example:  example.com/imagename  How can I turn this off. I only want to be taken to pages or posts that exist.  UPDATE: This has been  but the accepted answer to that does NOT fix this.  I added:  remove_action('template_redirect', 'redirect_canonical');   to my themes functions.php but the same action happens.


Prove that if $\gcd(a,b)=1$, then $\gcd(a\cdot b,c) = \gcd(a,c)\cdot \gcd(b,c)$.

Let $a,b,c \in \mathbb{Z}$, prove that if $\gcd(a,b)=1$, then $\gcd(a\cdot b,c) = \gcd(a,c)\cdot \gcd(b,c)$.


If $(a_n)_{n\in\mathbb{N}}$ is a Cauchy sequence, then $(a_n ^2)_{n\in\mathbb{N}}$ is also a Cauchy sequence

If the sequence $\{a_n\}$ with $n∈\mathbb{N}$ is a Cauchy sequence,  then $\{a_n^2\}_{n∈\mathbb{N}}$ is also a Cauchy sequence. How do we prove it?


is there any way in typescript by which I can get length of an object:  Something like this:  say I have an object:  public customer:any={      "name":"Bhushan",      "eid":"879546",      "dept":"IT" }   Now I am trying to get its length in typescript.   ie. when I am doing customer.length(), I should be able to get value 3 as it has 3 elements.  I tried Object.getOwnPropertyNames(customer.value) but its returning 2 whereas I have 3 elements in my object.  any inputs?


EEEK I have temporary powers to view flag count

As a 3K user with close privileges on MSO, if I accidentally flag a question as "It doesn't belong here or is duplicate", my flag is supposed to be automatically converted to a close vote.  However after the new close reasons were rolled out, there is an odd UI behavior that is initially showing it as a flag, and at the same time is showing me the flag count on the post.  After Flagging    After Refreshing Page  Once I refresh the page, all is well, and my flag is moved over to where it belongs and I can't see the number of flags anymore.    Steps to reproduce:   Find a crap question that needs closed Flag with "It doesn't belong here or is duplicate" Select appropriate reason* Enjoy seeing how many flags the question has. Refresh the page See the flag count disappear and your close vote displayed in the correct place.   As pointed out in the comments by Matt (and the current duplicate), the value next to "flag" might not be the flag count, but actually the correct close vote count in the wrong place.  Refreshing still corrects the UI bug regardless of what is actually displayed.  * - Since I've only figured out the reproduction steps this morning, I have only experimented with "Primarily Opinion based" and "Off-topic/Not a programming question".  I suspect all of the close reasons will behave the same and I don't want to randomly cast close votes to test unless the question deserves it.  (This has only been tested on MSO since it is the only site I have VTC privileges, but I would assume it behaves the same on all sites that have the new close system in place).


I am creating a beamer presentation with LyX. I have multiple slides (frames) that contain a lot of points - too many to fit on the slide. So I would like to break such slides into multiple slides so that all the content is visible.   I don't want to do this manually because, well, manually breaking up slides is a pain. Is there a way to break a frame into multiple frames automatically? Since longtable lets me break a table over several pages, I figured there should be some way of similarly breaking a frame  Tehcnical specs:   Mac OSX 10.10.5 (Yosemite) LyX 2.1.2


I'm writing a paper and I want to insert a figure that should occupy a whole page. Moreover, the figure has small details, so I want to reduce the margins in that page. On the other pages I'd like to use amsart margin settings.  I reproduce my attempt below. The problem with that implementation is that the page is not "floating", so there is a big empty area in the preceding page.   \documentclass[10pt,letter]{amsart} \usepackage[marginratio=1:1,height=584pt,width=360pt,tmargin=117pt]{geometry} \usepackage{lipsum} \usepackage{graphicx} \usepackage[font=small]{caption} \begin{document} \title{A note} \author{me} \maketitle \section{Introduction} \lipsum See Figure~\ref{fig.main}. \newgeometry{right=5mm, left=5mm}  \begin{figure} \centering \includegraphics[width=\textwidth]{main_figure.pdf} \caption{A huge figure.}\label{fig.main} \end{figure} \restoregeometry \lipsum \end{document}


New page is not relacing the existing parent page

I have a html page and on GO button i have write redirecting code   window.location.replace(url);   I put this page in iframe and on click on GO button result page should open in the existing page replacing the url of the browser but it is opning in iframe only... I tried <base target="_parent" /> also but no luck


When uncertain if refering to multiple or single should the plural form or singular form be used?

If asking a question or giving instruction towards a group of objects where the number is unknown (and possibly could be one) what is the correct way to phrase the sentence? Which of the following sentences are more correct:     Has there been any studies regarding this and if so what has been the   conclusion?   OR     Has there been any studies regarding this and if so what have been the   conclusions?


How to make Compose work in GTK and Qt apps?

I used Gnome for a long time, but preferred vanilla X input method (xim) over the default GTK behaviour. I just set GTK_IM_MODULE and QT_IM_MODULE environment variables to xim, and didn't have any problem with multiple-layout config, Compose key, custom ~/.XCompose and misc:typo typography extensions.  Recent Gnome 3.6 completely screwed keyboard input by shipping a half-baked and buggy ibus . I just couldn't get the keyboard working as well as before (even with ibus disabled), and had to abandon Gnome completely.  Now I use a simple window manager, and configure my keyboard with setxkbmap. While the keyboard works well again, I couldn't get the Compose key working everywhere. Compose works in plain X11 apps (xterm), but it doesn't work in neither GTK2, nor GTK3, nor Qt apps.  I use current Archlinux versions:  xorg-xinput 1.6.0 xorg-server 1.13.1 xf86-input-keyboard 1.6.2 gtk2 2.24.14 gtk3 3.6.4 qt 4.8.4   and enable Compose key like this:  setxkbmap ... -option 'compose:menu'   and export GTK_IM_MODULE, QT_IM_MODULE variables:  $ echo $GTK_IM_MODULE $QT_IM_MODULE  xim xim   Compose key is properly recognized by X11:  $ xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p' 135 Multi_key   It works properly in xterm, sequences from my ~/.XCompose included. It doesn't work in either GTK or Qt apps. Let say, if I enter Compose ', then apps echo ' immediately, without waiting for the third key in the sequence.  Now I suppose something has changed in either Xorg (because Compose doesn't work in Qt apps either), or in GTK and Qt. *_IM_MODULE variables are not enough now. What else is required to make modern GTK and Qt recognise xim and its Compose sequences?  P.S. There is a similar (and unanswered) question about . Unlike the asker, I don't have ibus installed.


Quotes are being treated differently in backtick output

Background  I want to pass a list of filenames (listed via find) containing spaces to my custom python script. Therefore, I set up find to add quotes around each result:  find ./testdata -type f  -printf "\"%p\" "  Result:  "./testdata/export (1).csv" "./testdata/export (2).csv" "./testdata/export (3).csv"   For the sake of this question, let's suppose my custom script (test.py) does the following:  #!/usr/bin/python3 import sys    print(sys.argv)   Observations  Case 1:  Manually listing the quoted arguments.  Input: ./test.py "./testdata/export (1).csv" "./testdata/export (2).csv" "./testdata/export (3).csv"  Output: ['./test.py', './testdata/export (1).csv', './testdata/export (2).csv', './testdata/export (3).csv']  Case 2:  Using xargs  Input: find ./testdata -type f  -printf "\"%p\" " | xargs ./test.py  Output: ['./test.py', './testdata/export (1).csv', './testdata/export (2).csv', './testdata/export (3).csv']  (I.e., output is the same as case 1)  Case 3:  Using backticks.  Input: ./test.py `find ./testdata -type f  -printf "\"%p\" "`  Output: ['./test.py', '"./testdata/export', '(1).csv"', '"./testdata/export', '(2).csv"', '"./testdata/export', '(3).csv"']  Two things have changed:   "./testdata/export and (1).csv" are now two separate arguments. the quotes remained part of the arguments   Questions   Why does the version with backticks behave differently? Is there a way to still include the quotes with the backticks? I.e., make them behave the same as with xargs?   Remark  I really can't imagine what is going on here. One logical explanation could have been, that the output of the command in backticks will be treated as one big argument. But then, why is it splitted at the white spaces?  So the next best explanation seems to be that every white-space separated string is treated as a separate argument, without any regards to quoting. Is this correct? And if so, why do backticks have this strange behaviour? I guess this is not what we would want most of the time...


Import functions in python Add-In logic script

I am running into an error. I have a set of functions which I want to import in the python Add-In script at the time of execution, but when I built Add-In with "import stats" line then tools are unresponsive. Any suggestions whether it is possible to import functions in the Add-In script?  import arcpy import os import pythonaddins import stats  optfolder = "C:/temp"  class AoI(object): """Implementation for rectangle_addin.tool (Tool)"""     def __init__(self):         self.enabled = True         self.cursor = 5         self.shape = 'Rectangle'         os.makedirs(optfolder)      def onRectangle(self, rectangle_geometry):    """Occurs when the rectangle is drawn and the mouse button is released.     The rectangle is a extent object."""          extent = rectangle_geometry         arcpy.Clip_management(r'C:/temp/ras', "%f %f %f %f" %(extent.XMin, extent.YMin, extent.XMax, extent.YMax),                               optfolder + '/ras1', "#", "#", "NONE")         arcpy.RefreshActiveView()


Splitting field of x^3-2 as a simple extension

Is there any elegant way to show that $\mathbb Q(\sqrt[3]{2}, w)=\mathbb Q(\sqrt[3]{2}+w)$, where $w=e^{i\frac{2\pi}{3}}$.  I was thinking to show that $ 9+9 x+3 x^3+6 x^4+3 x^5+x^6$ is the minimal polynomial of $\sqrt[3]{2}+w$, but checking irreducibility seems a bit tedious.


I've been struggling a little with Cycles and my GeForce GTX 750 graphic card. Most of the time it works well, but when I try to work with scenes that have custom shaders (like a skin shader with multiple textures, including for displacement), I get an error, both on the viewport and at rendering:     Cancel | CUDA error: Out of memory in cuLaunchKernel(cuPathTrace, xblocks, yblocks, 1, xthreads, ythreads, 1, 0, 0, args, 0)   Or something like that. Here's a screenshot so you can check it out:    I'm using a PC and Windows 7, with 8Gb of RAM. I can't render this scene with GPU, but using CPU, it renders ok.  My question is: What is causing this issue? I have the latest drivers installed for my graphic card, so I have no idea what this is.


How to use sed to replace directory name

In a file a.py I have multiple lines which look like this: with open('./260/U') as infile, open('./260/Uout', 'w') as outfile:  I am trying to search and replace all of the /260/ directories with $dir using sed: dir=200 sed -i 's+\/.*?\/+\/'"$dir"'\/+g' "./a.py"  However my attempt does not modify the file. How do I replace all of the /xxxx/ (i.e an unknown string between two slashes, in this case /260/) with /$dir/?


Is there an easy way to see associativity or non-associativity from an operation's table?

Most properties of a single binary operation can be easily read of from the operation's table. For example, given $$\begin{array}{c|ccccc} \cdot & a & b & c & d & e\\\hline a     & e & d & b & a & c\\ b     & d & c & e & b & a\\ c     & b & e & a & c & d\\ d     & a & b & c & d & e\\ e     & c & a & d & e & b \end{array}$$ it is easy to check that it is closed (no elements occur in the table which don't occur as row or column index), commutative (the table is symmetric), has a neutral element (the row and column of $d$ are copies of the index row/column), and has an inverse element for each element (there's a $d$ in each row and column). In other words, almost all important properties can immediately be seen. The only part missing is associativity.  Therefore my question: Is there a simple way to see directly from the operation's table (i.e. without doing explicitly all the calculations) if an operation is associative?


Show that $37|333^{777} + 777^{333}$. Anyone can help me to solve this question? I have no idea how to solve it.


how can I write the code of this picture in latex


writing algorithm each line in a table row

I want to calculate the complexity of an algorithm for which i need to mention each line of algorithm cost and frequency as a separate cell for each row of algorithm. I intend to write it in the fashion as shown at the end. I am using the algorithmic package, using it inside the tabular is giving many errors. I hope there is some way to do it.  ___________________________ |1| x=0         | c | 1   | |2| y=0         | c | 1   | |3| for z=0 to n| c | n+1 | ---------------------------   not the duplicate of the question marked, as it says to write the algo in a column while i want each row to carry an each line of algorithm, that's why I have also added the same question in my comments for ease of understanding.


Combine two power sources with higher priority for one source

I have two power sources, one is solar panels (DC), another is from grid (AC). Is it possible to combine these two power sources with solar getting higher priority ? By high priority I mean draw power from grid only if solar is not sufficient or absent. Final output is required to be AC  One way would be to convert grid ac to dc, matched to dc output of solar panels, and then some how combine them (with priority for solar) and then convert back to AC.   Grid-tie setup is not possible. Also Grid is too unstable (not available every 3rd or 4th hour) so I am going to need batteries any way. I want to prioritize use of power sources in this way:    Solar Grid Batteries.    So if solar is not sufficient it should tap grid (if available) for deficit power else it should use batteries. I want to minimize cycling of batteries and use only as a last resort.    I have come across a  which supports solar first, then battery and lastly Grid. Manual states that You can set the discharge voltage level of battery at which point it will point back to grid until batteries are fully charged then back to batteries and so on.   Maybe I am being too conservative with cycling of batteries. I would like to know if use of batteries only as a backup is possible given my required priorities.    uses only one source at the a time but I want to use both sources at the same time such that if solar is insufficient, don't turn it off, rather augment it with grid. For example if solar can deliver 2 Amps and I need 5 amps in total, I want a way to be able to draw remaining 3 amps from the grid. And if load requires 2 amps, stop taking from grid. Is it possible ?   For simplification lets assume grid also supplies in DC. Also I have some controller d1 connected with Panels which convert output of panels to 24v dc and another device d2 to convert grid to 24v dc as well. I want to combine d1 and d2 to add currents with above mentioned priorities.


I want to set the lang attribute of the HTML tag in webforms so that in the case of English, the output will be   <html lang="en">  This is how I do it; in markup, I have this:  <html id="SomeID" runat="server">   And in the code behind, I have this:  SomeID.Attributes.Add("lang", "en"); // or SomeID.Attributes.Add("lang", "fr");   The problem is that the actual output is   <html id="SomeID" lang="en">   The ID of the tag is still present so I tried adding this:  SomeID.Attributes.Remove("id");   But the ID is still showing.  So how do I set the lang attribute in my code-behind file so that the HTML tag only has the lang attribute.


Allow late (past a lock period) downvote reversals without reputation credit

The topic itself has been  and it seems that  has been broached .  I'm not sure what is the current prevailing opinion, though.  Let's rehash a possible scenario.  I downvoted an answer that seems to be wrong and posted my own one.  Later, after my downvote was already locked, I realized that I read that question wrong and it didn't deserve a downvote.  At such time I can either leave unjust downvote there or do an unneeded edit just to allow myself to undo my downvote.  My initial actions could be construed as  and, from what I understand, the lock is specifically preventing such behavior by not allowing downvoters to reclaim their lost reputation points.  The bottom line here is that a person (for whatever reason) regrets his/her downvote and wants to do something about it.  So, what about a suggestion to allow late downvote removals without crediting back the rep.  This logic is similar to bounty handling.     Is it worth a consideration or are we better off with a trivial edit just to circumvent the lock?


Wheel doing work against gravitational energy

so let's suppose there is a wheel, which rotates thus moving on a flat plane, without any slopes, and the gravitational pull throughout the plane is the same as well. The height of the center of  mass of the wheel does not change as well. So my question is does the wheel do work against gravity?  Personally, I believe it does because when you take the contact point of the wheel to the plane, its height changes as the wheel rotates, thus changing the potential energy of the point while rotating. However, I couldn't be sure if my hypothesis was correct by researching in various websites and couldn't conduct any simulations or experiments. So I would love to hear your opinions on the topic.


Unmet Dependencies issue in Ubuntu 20.04

When I try sudo apt command I get the following message:  libopencv-highgui2.4v5 : Depends: libpng12-0 (>= 1.2.13-4) but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).  When I try apt --fix-broken install I get:   libpng12-0 0 upgraded, 1 newly installed, 0 to remove and 74 not upgraded. 5 not fully installed or removed. Need to get 0 B/116 kB of archives. After this operation, 285 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 213917 files and directories currently installed.) Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1_amd64.deb ... Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.54-1ubunt u1_amd64.deb (--unpack):  unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No suc h file or directory No apport report written because the error message indicates an issue on the lo cal system           Errors were encountered while processing:  /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)```


What is the meaning of the comma in this case?

He rides a bike reading the book. (with no comma between bike and reading)    He rides a bike, reading the book. (with a comma between bike and reading)       In the sentence above, What is the difference in the sentence 1 (no comma) and 2 (with comma)?


Checking if a external 3rd party site exists

Users are able to enter a URL into a text field, I would like to add a jQuery based feature that would be able to check if a page at least exists so that I could warn a user if they may have accidentally entered an incorrect URL, before they hit "save"  Currently I am trying to use the following code, though it seems to always return the "Error: Does not exist" message:  $('#Inventory_edocsUrl').blur(function(){     $.ajax({         url:$('#Inventory_edocsUrl').val(),         type:'GET',         success: function()         {             console.log('Success, file exists!');         },         error: function()         {             console.log('ERROR:Does not exist');         }     }); });   I tested with http://google.com as a test url in the text field and it still returned the error. Upon switching the url to google.com (not http), I got the same error message along with another error message:   GET http://localhost/inventory/web/inventory/google.com 404 (Not Found)    It makes sense that this second version does not work as there is no http:// and therefore the error should be returned, but I don't see why the first correct url is returning the programmed error message, but is actually returning no console errors like the second trial.  Is there something I am doing wrong?


Given HDD 1TB with a two partitions: one is small ~24GB (for Ubuntu) and all the rest is the second partition with about 10% occupied space for multimedia files.  I want to duplicate it as fast as possible. I boot from USB stick. The second disk is /dev/sdb.  sfdisk -d /dev/sda > a sfdisk /dev/sdb < a   Then I copy bytewise the small partition:  dd if=/dev/sda1 of=/dev/sdb1 bs=4M status=progress   It takes about two minutes. Then I want to copy in optimal manner contents of the second partition. Just filesystem w/ file attributes:  rsync -avHAX /media/ubuntu/sda2dir /media/ubuntu/sdb2dir   After that I tried to boot from second HDD and can't.  How to copy MBR and other crucial information?  dd if=/dev/sda of=/dev/sdb takes about 1h20m for 1TB HDD. It is not acceptable. And seems also not works.


Sous vide topside beef- what went wrong?

So, I’ve had many sous vide successes over the years but yesterday suffered what feels like a big failure and I’ve no idea why. Long story short, I had a 2kg beef topside joint which I seasoned with plenty of salt and pepper then cooked for four hours at 56C. When I took it out of the water it felt deliciously soft- even delicate. I cooled it immediately in a cold water bath and then left it in the fridge overnight. The next day I blasted it in the air fryer on as hot as it gets until the fat left on it browned and caramelised. At this point it looked and smelled fantastic. The problem is that when sliced and served the meat is extremely chewy and not nice at all to eat. Parts of it that were not chewy were absolutely delightful and tasted great but so far the majority of it has needed prolonged chewing then spit out what’s left of that mouthful. It breaks my heart to see a mountain of chewed meat left on a plate! So I’m wondering what I did wrong? Most recipes online suggested 56C and 4hrs were the correct choices. At this point I’m stumped. Could it just be as simple as a tough piece of meat? What can I do to save it, since I’m not really looking forward to eating any more of it right now?


How to know (in GCC) when given macro/preprocessor symbol gets declared?

Suppose I have #define foo in various header files. It may expand to some different things. I would like to know (when compiling a .cc file) when a #define is encountered, to what it will expand, it which file it is and where it got included from.  Is it possible? If not, are there any partial solutions that may help?  Feel free to add comments with clarification requests.  Edit: current answers seem to concentrate on the case when there is one #define and I just want to jump to definition or know what the definition is. That's the simple case and yes, your solutions work. But when I have the same #define in different files, and want to know which one kicks in first, none of these techniques is useful. Okay, I actually used #warning carefully to find the right place. But this requires much work.


We know in the , :       ... This latter name is somewhat misleading; the land itself, while blessed, did not cause mortals to live forever     In addition Valinor appears to be an actual place        ...Valinor lies in Aman, a continent west of Middle-earth. Ekkaia, the encircling sea surrounds both Aman and Middle-earth     Is there an afterlife where Hobbits, Men and Elves go after death?      There is some indication that Elves are 'immortal', however they can .


Solving $2 \times 5^n - 1 = m^2$ in natural numbers

This problem isn't of any particular importance in itself, but came up for me randomly, and though I couldn't crack it, I thought learning how would likely be instructive in improving my number theory skills.  Is it possible to completely classify the solutions to $2 \times 5^n - 1 = m^2$ in natural numbers (i.e., the values of $n$ for which the left-hand expression is indeed a square)? Those $n \in \{0, 1, 2\}$ clearly work, and after that most don't, but are these indeed all the solutions, and if so (or if whatever alternative holds), how does one see so?


Could the phase factor $i$ be replaced by "matrix representation" totally in quantum mechanics?

It seems that $i$ plays an important role in quantum mechanics (Q.M.). On the other hand, linear algebra plays such an important role in Q.M. too. So would linear algebra, such as a matrix be able to represent the formalism of Q.M. totally?  $i$ is the symmetric decoupling of $-1$, and in matrix representation, the $i$ is also a  requisite for Hamiltonian symmetric decoupling of the negative identity matrix.  On the other hand, $i$ could be viewed as a phase factor.  Would it be possible to replace $i$ by a $2\times 2$ matrix?


A uniform random number X divides [0, 1] into two segments. Let R be the ratio of the smaller versus the larger segment. How do I compute the density of R?


How can I enable access to USB devices within VirtualBox guests?

I cannot see any USB devices within my VirtualBox guest VMs from my host. How do I enable access for my guest VMs?


Is there some way to get a theorem type which will make a theorem with the name passed as a parameter? In other words, is there a way to define "named" such that   \begin{named}[NAME] text \end{named}   will print   "NAME: text"?  I tried using the definition \newtheorem*{named}{}, but that results in   "(NAME): text", which is quite different from what I am trying to do.  I know that I could also create a new instance of \newtheorem for each named theorem I want to use, but that is clunky and inconvenient. Is there a better way?


This might look wrong, but I know that using ./ you are basically "BASH"ing your scripts in Linux/Unix environment. For Windows users, this is same as running an .exe file from command prompt. However, I don't understand why use ./  Is it because ./ means "RUN" in short or does "./" have a specific meaning in UNIX like environment?  P.S. I know that cygwin allows you to execute batch files using ./ prefix.


How to allocate space to JAVA using command line

I have come across heap errors while loading a large dataset into Jena. `Is there some way by which I may allocate the JVM(Java) a large heap space.   I know I can achieve this by making changes into eclipse.ini. But is there some way by which I may increase the Java heap size using command line in linux (I using a 64GB RAM server: running 12.04 Ubuntu LTS server)?  The error which I am getting due to less heap space is: exception in thread main gc overhead limit exceeded.  Also how can I find the maximum amount of heap space which I can set for my systems  I tried export JAVA_OPTS= -Xms4096m -Xmx4096m but ended up getting the error: bash: export: -Xms4096m': not a valid identifier bash: export:-Xmx4096m': not a valid identifier


Why is this component that looks like a capacitor with ground lines in this circuit diagram different from a polarized capacitor?

What is the component that is represented with two horizontal lines like a capacitor with three Ground Chassis lines connecting them and a + at the top and a 10μ label.  See picture below (top right corner):


What tense is the 'come' in this sentence?

Is 'come' in the following sentence the base form or the past participle?  “And Royce seemed to be everything I’d dreamed of. The fairy tale prince, come to make me a princess. Everything I wanted...”  If it's a past participle then is it a similar usage of come as in This is my dream come true?


How is the duration of stay is calculated?

I have a question about how the Schengen duration of stay is calculated.   My duration of stay is 17 days. Unfortunately, I will arrive at the airport at 9:00 pm on July 26th, and my departure flight is at 12:00 pm on August 12th which is around 18 days.   My question is:   Can I stay inside the terminal for 3 hours? so when I pass the border control, it is on July 27th? Similarly, Can I arrive at the airport 12 hours before my departure flight? so it is on August 11th?   Thanks,


How long is reasonable to wait for reply from an editor?

About 5 months ago I submitted a paper to a journal. The editors assigned a reviewer. In the meantime I sent a couple of revised versions, which did not help matters, but the editor ultimately wrote back and asked me to complete my revisions and re-submit the document. I did that within a couple of weeks. The editors did not acknowledge receipt of this submission, but I did not want to ask for one since I felt I had already been pestering them too much. A couple of weeks later, I notified the editors that I wanted to post a couple of graphs from the submitted paper on a blog, although I hoped to make it clear that only a very small component of the whole paper was being posted on the blog. The editors did not respond to this notification. More than two months went by after the re-submission, and I sent a message to the editor asking for a status update, just to be sure that the paper was still being considered and under review. It seemed to me that a very simple "yes, it is still being reviewed", or "no, we have considered your paper withdrawn and it is not being reviewed" or something like that, would suffice. About 10 more days passed with no response, and I thought I would telephone the editor with my question, on the off-chance that my emails were not getting through.  I left a message for him, and another week has gone by with no response. At what point do I take the non-response from the editor as a message that my paper is no longer under review and that I should re-submit it elsewhere? The journal is otherwise a reputable journal, and I would like my paper published there, but there are many others that interest me too.  I feel like I made a mess of the whole process, and am to be blamed for over-communication and confusion, but am I not owed the courtesy of a response from the editor?


Override SSH message when accessed via HTTP

If you access my server via HTTP using the SSH port (22), you'll see a message like this:     SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.1   Could be possible to display a different message?


Type erasure generics compilation in Lambdas Java 8

List<List<String>> lst = ArrayList..... Collections.sort(lst, (a, b) -> a.get(0).getSomeProp().compareTo(b..get(0).getSomeProp()));   Since the ArrayList is generic, how does this compile with type erasure?  Does it compile as:  List lst = .... Collections.sort(lst, (a, b) -> ((String) ((List) a.get(0))).getSomeProp().compareTo(((String) ((List) a.get(0)))));


My setup is:  1, Bounce umbrella 2, Shoot Thru Umbrella 3, camera :)  Lighting:    The result:   I think there are too many shadows. Is there any way to avoid shadows with this setup?


match two datetimes in javascript not working

I have two dates :  date1 = "2013-07-08 12:30:00"  date2 = "2013-07-08 13:30:00"  Now in javascript i want to match these two dates and its they dont match than i want to delete the appointment and if they match than nothing to do.  I tried this code but its not working :    if(date1 == date2)// Event already exists   {       // do nothing   }   else   {       // delete the record.   }   I tried to compare with "new Date(date1) == new Date(date2)" also but its not working either.  There is some problem in my code or date format. can anyone know how to do this and where i am wrong in this code ?  Thanks in advance.


We are noticing performance issues with one of our applications.  When the application issues begin the procedure cache size goes from 4.5GB to 0. The plans are then rebuilt and still the application is slow. If I update stats on a key table the issue goes away.  I'm just trying to understand how procedure cache may drop other than DBCC FREEPROCCACHE?  EDIT: Sorry this is SQL 2005 9.00.4226


When does a flying creature start and end falling?

Situation:  Alice the Aarakokra sees Bob the Battlemaster coming. She ascends to 605', just out of the 600' range of Bob's longbow.  Bob (Str 14) performs a running high jump 5' into the air and successfully hits Alice with his longbow, despite firing at disadvantage for long range. He spends one of his maneuver dice to perform the Trip Attack maneuver, and succeeds on the contested roll to knock Alice prone.  Alice is now flying and prone, so she falls. Falling does 1d6 bludgeoning damage per 10' fallen, to a maximum of 20d6.  Questions:   When does Alice start falling? It is on Bob's turn as soon as she's knocked prone, or some time else such as the beginning of her own next turn? When does Alice hit the ground? On Bob's turn as soon as she's knocked prone, or some time else?   These answers determine whether anyone can save Alice from her 20d6 of certain doom.   Is a reaction (e.g. casting Feather Fall) on Bob's turn the only hope? Can Alice's ally Charlie swoop in on his subsequent turn within the same round to catch her? Can Alice spend half her movement on her next turn to "stand from prone" and pull out of her involuntary dive? If Alice had expected to be shot down, could she have spent an action to be Ready to "stand from prone" while moving through Bob's airspace?


Do I need volatile when writing an integer with Interlocked.Increment, and simply reading it from a different thread?

I'd like to implement an ASP.NET Core middleware (of which only one singleton instance exist) which would maintain an integer request counter, which is incremented every time a request comes in, and is decremented every time a request is finished.  public class GracetermMiddleware {     private int requestCount = 0;      ...      public async Task Invoke(HttpContext httpContext)     {         Interlocked.Increment(ref requestCount);          try         {             await next.Invoke(httpContext);         }         finally         {             Interlocked.Decrement(ref requestCount);         }     } }   Then what I'd like to do is to have an event handler triggering when the application is stopping, to delay the termination of the process until the outstanding requests are handled. This is how I'm trying to achieve this.  private void OnApplicationStopping() {     do     {         // Waiting for the outstanding requests to drain         Thread.Sleep(1000);     }     while (requestCount > 0); }   (I also have some timeout handling which I omitted from the example.)  My question is: do I need to use the volatile keyword when I declare the requestCount field? Can it cause any issues that the field is not volatile?


I have read the FAQ and "How to ask" guide. But even after following that sometimes the questions are straightly down voted, without anyone giving clear instructions of what was wrong.   Is there any way to add the "What's wrong" with every down vote? Or any way I can know what's wrong in the question?


How to create a shared secret S from a subset of existing secrets n, such that k out of n secrets can recreate S?

In traditional secret sharing schemes, like , first a secret S is generated. Then it is divided into n parts, such that a subset k of the n parts are sufficient to reconstruct S.  My problem is that I already have n individual and independent secrets. Is there a way to come up with a shared secret S from these pre-existing n secrets, such that a subset k of the n parts are sufficient to reconstruct S?


I've been through 10 guides on how to manage correct directory and packaging, and i just cant get it right.  i have my projects in C:\Users\gusta\Documents\Programmer    in the testprojektclass i have:  package testprojektclass;  public class myClass  {     private int age ;     public void setAge (int age)     {        this.age = age ;      } }   and in the testprojekt main:  import testprojektclass.*; public class importtest {    public static void main (String []args)    {        myClass youngfella = new myClass();        youngfella.setAge(14);    } }   I feel like i've tried everthing, but it keeps saying: package testprojektclass does not exist..


How to make the tags appear the old way on Mavericks?

Is there a way to make the folders tagged in any color (red, blue, purple, etc.) appear in a more visible way than the OSX 10.9 way?    For instance, on OSX 10.8, the whole title of the item was colored.  A long time ago (System 7), even the color of the folder was changed.


Function expressed the sum of an odd and even function

Show that a function defined on a domain $D$ symmetric about the origin can be expressed in a unique way as the sum of an even and an odd function.    Sorry but I have no idea about how to start.


How is the  (or inclination) caused on Earth?


How to encrypt external devices using a cross-platform solution?

How can I encrypt an external device (i.e. USB keys, external hard-drives, memory sticks, etc.) so that it would subsequently be readable/writable on any computer that I plug it in?   For instance, it should then be possible to easily plug the encrypted device on a Linux, Windows, or OS X machine, and be able to access the contents without any fuss.   How can I do that?


Changing the order of columns in QGIS attribute table?

How can I rearrange the order of columns in my attribute table?  I'm inputting a lot of data and would prefer to not have to scroll all the way to the end of my columns for each new entry.  Ideally i'd like to be able to just filter out the columns i don't need to view for this task.


Which Ubuntu flavour is best for my device?

Processor   Model: Intel(R) Core(TM) i3-2350M Speed: 2300 MHz Architecture in use: 64-bit Architecture(s) supported: 32-bit, 64-bit   Components   RAM: 4.0 GB (3.7 GiB) Graphics: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller   I am totally new to Linux OS. Please recommend me the most stable and easy to use flavor of Ubuntu. And also should I use an LTS release or STS release version and 32bit or 64bit ? Thanks in advance = )


I was browsing on So when I noticed something odd. The "featured" tab that contains all the questions with bountys on them displayed its counter at 0. I tried reloading the page to check if it was just a caching error, but the problem recurred. When I then clicked on the "Questions" tab, the features bar loaded properly.   I tried closing my browser and going back to So and the problem happened again. Its relatively minor bug, but I thought it was worth noting. I've included photos of both the broken counter and working counter.  Not-Working:    Working:


Why does 'Open System Monitor' in Parrot OS differ from Ubuntu?

I notice that both OSes are using the same 'Open System Monitor'.  However, the one I installed on Ubuntu only has 1 indicator while Parrot has 3 for CPU, Memory and HDD/SSD utilization.  Picture description:    Left (VirtualBox Guest is Parrot) Right (VirtualBox Guest is Ubuntu)       Would it be possible to have similar outlook on Ubuntu?  This is the setting of 'Open System Monitor' in Ubuntu.


Add an immediately visible indication that a user is a staff member or an employee of SE

With the recent change in the moderator privilege distribution among staff members, not everyone gets an immediately visible diamond symbol next to their name.  Hovering over a user card is not the best solution. Not everyone knows that this feature exists, and sometimes employees don't fill out their descriptions, there's gotta be a better way.  I think this might be a good time to think of a new visual indicator, perhaps something like the "New contributor" undersign, but which says "Staff, {job title}", or just the title, like so:


I am doing a messaging app and I am trying to duplicate the toolbar on top of the key board with the UITextField and two buttons (camera and done). I know how to put a toolbar on top of the keyboard when you click on a UITextField in the view, but my textfield is on my toolbar. When the UITextField on the toolbar is clicked, I want the keyboard to come up under it and kind of push the toolbar up with it. I also need them to go down together as if they are one thing (like it does in the iMessage app). I have looked up many tutorials but cannot seem to find the answer. What code do I need to do this?? Thank you I AM NOT ASKING HOW TO PUT A TOOLBAR ON TOP OF A KEYBOARD, I AM ASKING HOW TO TRIGGER THE KEYBOARD TO COME UP UNDER THE EXISTING TOOLBAR AND BE TRIGGERED BY THE TEXTVIEW INSIDE SAID TOOLBAR


I'm trying to track down an old sci-fi book I read when I was a teenager.  The book was at the Cottage Grove, OR Public Library around 1982-1985.  The plot followed a brother and sister who were scientists or spies, or both.  The brother once used a series of pills to change his weight, height and appearance.  Towards the end of the book, the brother takes a space ship that his sister invented, removes a governor so that he can travel faster than the speed of light and goes back in time several hours.  This is really vague, but thanks for any leads you can share.


How do I make a window transparent in KDE?

I know I can do this in Unity with compiz. But didn't find a way to do same in KDE. I'm using Ubuntu 14.04 with full kubuntu-desktop installed.   Btw, I noticed an option for inactive window. But I wanted for active window.


The text is unclear to me.  Tendrils of dark energy erupt from you and batter all creatures within 10 feet of you.  I assume I'm a creature within 10 feet of me, so am I also a target of this spell? There are some spells that specify "other creatures" when an effect is not intended to target the caster, for example Investiture of Stone:  You can use your action to create a small earthquake on the ground in a 15-foot radius centered on you. Other creatures on that ground must succeed on a Dexterity saving throw or be knocked prone.  On the other hand, it seems like the text would say something explicitly if this spell always damages the caster. So, if I cast Arms of Hadar, do I have to make the save?


Transit in LA after 90 days in North America under VWP/ESTA

I am from NZ and have spent 90 days in the USA with an ESTA visa waiver, and I am going to Canada before returning to NZ. My return flight is from LA but I have already used my 90 days of my ESTA and have not technically 'left' North America (Canada apparently doesn't count). My question is, how do I catch my return flight from LA? Can I get another ESTA even though I haven't left North America?


Generally accepted root mean square (RMS) error for rectifying topographic maps

This is a generic inquiry on the common practice/standard for determining the acceptable values of RMS when georeferencing topographic maps.  Is there an absolute value?  Some literature suggests that it should be "less than or equal to 1/2 of the side of a cell which make up the total resolution of the image."


File /etc/ld.so.nohwcap is missing in Debian 7

What is the file /etc/ld.so.nohwcap used for?. In my machine (Debian 7), this file is not found. Therefore, Which package or library this file belongs to?


What file systems on Linux store the creation time?

Are there any (good known, reliable) file systems on Linux that store the creation time of files and directories in the i-node table?   If there are, is the "changed" time replaced by the creation time of an i-node in a stat call?


Ubuntu installed on USB stick - are such installations limited to run on the same machine?

I executed a "complete" Ubuntu installation on my USB stick - not burning a persistent LiveCD onto it, but instead using 2 USB sticks, one containing the LiveCD and the other as the destination (the bootloader was also installed on the destination stick).  Now, during the installation, I noticed that the wizard configures some hardware-related elements. Does this mean that such installations are limited to run on the same machine as where the install wizard is executed? If yes, 1) what will happen if I take this stick elsewhere and try booting it on another hardware, and 2) is there a way to overcome that, so I can both avoid LiveCD+persistent (because persistent space is limited), and have a universal installation?


How do I change the viewable boundary within camera 0

I can't seem to figure out how to enlarge the viewable area in Camera 0 in order to see how to position object I want rendered. Cntrl + B gives me  crosshairs to redraw but does not allow to redraw the viewable area larger.


Relation between intensity of light and refractive index

The intensity of light (as calculated from time average of the poynting vector) is given by $I = (1/2) \epsilon v E_0^2$. Here the intensity is dependent on the velocity of light in the medium. The refractive index also depends on the velocity of light. So is it safe to say that the intensity of light depends on the refractive index of the medium?


Why does SQL Server round off results of dividing two integers?

I have a table with a smallint column that contains percentages as whole numbers (i.e., 50, 75, 85, etc.)  When I divide this column by 100, as in  SELECT MY_COLUMN/100 AS PCT_AS_FRACTION FROM MY_TABLE   the result is rounded to the nearest whole number. For example, for a row that contains the number "50", I get zero as my result.  I can duplicate this with a simple statement:  SELECT 50 / 100 AS TEST_VALUE   Why is that, and how can I get more precision in my result?


Can the Identity Map be a repeated composition one other function?

Consider the mapping $f:x\to\frac{1}{x}, (x\ne0)$. It is trivial to see that $f(f(x))=x$. My question is whether or not there exists a continuous map $g$ such that $g(g(g(x)))\equiv g^{3}(x)=x$? Furthermore, is there a way to find out if there is such a function that $g^{p}(x)=x$ for a prime $p$?    Edit: I realise I was a little unclear - I meant to specify that it was apart from the identity map. The other 'condition' I wanted to impose isn't very precise; I was hoping for a function that didn't seem defined for the purpose. However, the ones that are work perfectly well and they certainly answer the question.