I have an algorithm defined with algorithmc like this:      \documentclass{article}     \usepackage{algorithm}     \usepackage{algorithmicx}      \begin{document}      \begin{algorithm}     \begin{algorithmic}[1]     \Function{X}{ItemA, ItemB, ItemC}     \State {Lorem Lorem}     \State {Final}     \end{algorithmic}     \end{algorithm}       \end{document}   Suppose that this is a very long algorithm.  Is there a way to break algorithm to fit in many pages?
I am writing a few rather large pseudocode functions using algorithm and algorithmic, i.e. my code looks something like:  \begin{algorithm}                      \caption{Coolest Algorithm ever}           \label{findme}                           \begin{algorithmic} [1]                   % enter the algorithmic environment \REQUIRE    Here are a few variables \\             variable 2 \\             variable 3  \ENSURE     this is the output \\             output 2  \STATE $some cool code here$ \STATE $some cool code here$ \STATE $some cool code here$ \STATE $some cool code here$ \end{algorithmic} \end{algorithm}   Unfortunately this code does not fit on one page and I am definitely not able to split it into some subfunctions or so (I already did that as far as possible).  So now I need to split up the algorithm into two pages, but I have no idea how.  The easiest way I can imagine is just to start a new algorithm on the new page, but this time letting the line counter start at line 35 or so instead of 1. But how can I do that?  Please not that there is already a similar question here on this site, but it deals with the package algorithmicx.
Order of a group and subsequent subgroups I want to prove that if the order of a group G is greater than 1 and non-prime, then G has a subgroup other than the trivial subgroups {e} and G itself.   I am confused because I am only being able to prove the case for prime order by using Lagrange’s theorem i.e. if I have a group of order p, where p is a prime number, then the order of subgroups must divide p, hence the order can be either 1 or p.   How do I go about proving the case for non prime order let’s say x > 1? Is there a way to save all my typed terminal commands and view it like history in a log book? On Windows 7 can one make UAC on an admin account prompt for the password, just like a limited account? I am one of the very few who likes the security of UAC and so I have the UAC set to "Always Notify" on my Admin account. But I would be even happier if the system would prompt me for a password, when notifying me.  I can get what I want by adding a second non-admin user and using that account.  But somehow it seems wasteful to have two accounts set up when I will always use the non-admin account day-to-day.  So I am wondering if there is any setting that would cause an Admin account to behave password-prompting-wise as a standard account? Find and replace text within a file using commands How can I find and replace specific words in a text file using command line? I have a quaternion, coming from a system with the following:(intertial sensor)  Right handed. Forward direction: Y axis Right direction: X axis Up direction: Z axis   I need to convert this into a coordinate system that is: (Unreal engine)  left-handed. Forward direction: X axis Right direction: Y axis Up direction: Z axis   I have tried negating the axis, and angle, I have tried switching values, i cannot get this to work. All help greatly appreciated! I am working in C#, with Microsoft.Xna.Quaternion. Cardinality of Borel sigma algebra It seems it's well known that if a sigma algebra is generated by countably many sets, then the cardinality of it is either finite or $c$ (the cardinality of continuum). But it seems hard to prove it, and actually hard to find a proof of it. Can anyone help me out? Expected Value of the maximum of two exponentially distributed random variables I want to find the expected value of $\text{max}\{X,Y\}$ where $X$ ist $\text{exp}(\lambda)$-distributed and $Y$ ist $\text{exp}(\eta)$-distributed. X and Y are independent. I figured out how to do this for the minimum of $n$ variables, but i struggle with doing it for 2 with the maximum.  (The context in which this was given is waiting for the later of two trains, with their arrival times being exp-distributed).  Thanks! How is being able to break into any Linux machine through grub2 secure? How do I safely investigate a USB stick found in the parking lot at work? I work at an embedded software company. This morning I found a USB stick in the parking lot in front of the building. With all the stories of "dropped USB stick attacks" in mind, I'm obviously not going to just plug it into my laptop. OTOH, I'm curious to know whether this was actually an attempt to compromise our systems, or it's really just an innocent case of somebody accidentally losing a USB stick. How do I safely inspect the USB stick without risking exposure?  I'm worried not just about malware and crafted file system images; there's also stuff like power surge attacks:.  EDIT: Many of the answers seem to assume I want to keep the drive and use it afterwards. I have no interest in that at all, I know USB sticks are cheap, and that it wouldn't be mine to keep anyway. I only want to know whether this was indeed a semi-targeted attack, partly out of curiosity whether this actually happens in real life and not just in security papers, but also so that I could warn my coworkers.  I want to know how I would figure out whether the stick contains malware. And that's not just a matter of looking at the drive contents and seeing a suspicious autorun.inf or a carefully crafted corrupt file system - I very much also want a way to inspect the firmware. I sort-of expected that there were tools for extracting that and comparing to known-good or known-bad binaries. How do I alter a language item link? Story about human space explorers who run into alien telepath space crew I read a short story in an anthology around 1998 (the book could have been older than that) which went like this - A human space exploration scientific crew is exploring an alient planet (peaceful planet, as I recall) when they run into an alien spaceship (from a different planet which also happened to be there) - the aliens were telepaths.   The alien commander and first officer discuss the earthlings after a meeting and realize that the human crew are the descendants of a species (Banthu/Klanthu/Zantha, something like that) which had tried to violently take over the galaxy some 20/30/50,000 years ago and which had been beaten back by the combined might of the rest of the galaxy. They had supposedly been eliminated but they somehow managed to survive and are back in space only a few thousand years after they were completely beaten (which is something the aliens are amazed by).   The alien commander kills the human explorers via telepathy but realizes that there is no information available to locate their home planet and speculate that they will be meeting again soon given the past history of the humans.  I vaguely think there was also a fantasy short by L Sprague de Camp in the same anthology, but can't be 100% sure. Any thoughts/ideas? Thanks! Indian passport threading coming off My Indian passport threading is coming off i.e. the cover of the passport is coming off, there are only 2 threads remaining.   Will it be a problem at the airport when going abroad ? Also anyone who has experience of getting a replacement passport fairly quick ? Because I need to get a passport in like 15 days. I keep hearing about tandem breakers, and how they won't work with 240V loads and how they should never be used for a multi-wire branch circuit.  Aside from those issues...  What is a tandem breaker?     (note: they can be thrown independently). Why my U.S. B1 Visa got refused under 214 (b)? I went for B1 U.S. Visa at the U.S. Embassy in Delhi.   Interviewer: *Good Morning*. Me: *Good Morning* Interviewer: *What is your designation?* Me: *I am a Software Engineer.* Interviewer: *What is the name of your company?* Me: *It is XXX (I replied).* Interviewer: *What is the name of your client?* Me: *It is YYY (I replied).* Interviewer: *Have you ever been to U.S. before?* Me: *NO* Interviewer: *Have you ever been abroad before?* Me: *NO*   At this point he rejected my Visa with letter mentioning 214 (b) as the reason. I don't know why he actually rejected it.  But, I have decent 2+ years of experience with my company. And, I was going on a business meeting with the client. I would have come back after 2 weeks.  I don't know if re applying will help. How to "Hide a Collection in viewport" but not "Disable in Viewport" via script in Python Hi Blender coders and artists.  I am updating one of my add-ons for Blender 2.8 and have run into some  issues finding the appropriate way to hide a collection that is added to my scene.  I want to deselect the eyeball on the toolbar with a python command in a script but I don't want to disable the collection in the view-port entirely as it is used as a collection in a particle system.   I just want to deselect the eyeball circled in green below.  Anyone know the python API for this? Changing Login Logo How can I give other drives and partitions short, meaningful names in nautilus? In nautilus and Unity the external drive has a nice short descriptive name "mcat", but all partitions on the 4 internal drives are displayed as a size (834 GB filesystem) or a huge 32-character string form of a GUID:  I'm guessing the external drive is nice, short, sweet and readable because that drive may have no partitions (well, just one I guess) and that name may be the drive label, whereas partitions usually don't have names. That may explain my problem, but doesn't solve it.  Is there some way to give reasonable names to these partitions in nautilus and Unity? Prove that a subset of a separable set is itself separable Editing default custom object home screen I would like to add a custom button (URL to Flow) to my default home page for my custom object. Currently, I have a default "New" button to create a new record (see attached screen shot). I'm wanting to add my Flow custom button to this page. Is there a way to do this?  Cheers, Sean. Appendix in LaTeX