I want to use wrapfigure in the enumerate environment. For example,   \documentclass[11pt, a4paper]{article} \usepackage{graphicx} \usepackage{float} \usepackage{wrapfig}  \begin{document} \normalsize {\bf Multiple Choice: } \begin{enumerate}     \item \begin{wrapfigure}{r}{4.5cm}           \includegraphics[scale=0.5]{Exam1_Fig1.jpg}           \end{wrapfigure}           As shown in the figure. This rock is phaneritic and contains quartz, K-feldspar, and plagioclase in nearly equal amounts. What is it? \\           (A) rhyolite \\           (B) basalt \\           (C) diorite \\           (D) ash-flow tuff \\           (E) granite \\ \end{enumerate} \end{document}   However, the figure inserted is not wrapped by the text, but put in a strange position. How to fix the problem?   Thank you!


Caps lock keyboard indicator is ON after waking up from suspension, but in fact it is turned OFF. So I have to press the CAPS LOCK button twice to make it normal. So the problem is with indicator only, capitalization works.  Notebook: HP Pavilion g6 1075er  OS: Ubuntu 12.04  I came to Ubuntu a month ago, and I never experienced this problem in Windows. Couldn't find relevant answer on web.  I have no changes for Caps lock button in keyboard layout settings.


Small GUI Font Size with External Monitor

I've recently upgraded my notebook from Ubuntu 18.04 to 20.04.1. After the upgrade, I experience this:  If an external monitor is attached during logging in or turning on, I get very small font sizes on the top bar, desktop icons, and activities. I can resolve this manually every time by going to Settings -> Universal Access and then enable and disable LargeText. (LargeText is disabled by default.)  If I log in without an external monitor, the font size is normal, even when I attach a monitor after logging in.   Both built-in and external displays have resolutions 1920×1080. This is annoying, so is there any way to log in with the attached monitor and get normal font sizes?


Why must nuclei contain both protons and neutrons?

In most atomic nuclei there are both protons and neutrons.  Having a poor understanding of the strong interaction, it puzzles me why a nucleus must consist of both. Namely, why can there not be nucleus-like clusters of neutron, assuming both nucleons interact in similar ways in terms of strong interaction. This confusion is worsened by the fact that such a cluster would appear to be more stable than real nuclei, since there is no need to overcome the electrostatic repulsion between protons.  Hence the question: why do naturally occurring, stable nuclei necessarily contain both protons and neutrons? (with the exception of hydrogen nucleus)


Syncing folders outside Dropbox using Symbolic Links and Junctions

I've been reading a lot of information on this and yet I'm still unsure if its possible.  What I want to achieve is: sync a folder that is outside Dropbox and any changed to that folder or the files within get mirrored to the Dropbox folder and the Dropbox server.  This is what I've tried: I've install Link Shell Extension. Picked a folder with 10 pictures inside and created a junction for it inside the Dropbox folder. When I delete a pictures from inside the original folder (outside Dropbox) the change is reflected in the Junction folder inside Dropbox Folder, not on the server.  The exact same behaviour with the Symbolic Link option.  If I manually select Pause Syncing from Dropbox system tray icon and then Resume syncing = it uploads the changes to the server.  I know I can move all my files inside Dropbox folder and create the junctions/symlinks at their original locations but I want to do it the other way around.  Also what is the difference between choosing the Junction and Symbolic Link Option in regards to a folder?  Thank you.


I don't remember my Apple ID, but I do know the password

I did a software update on my iPhone, and I cannot activate it as I don't remember the Apple ID but I do know the password. Is there any way to find my Apple ID? I only remember that the mail ended in @ymail.com, but I have never used that email.  I have tried to find my Apple ID at  but it did not help. Maybe you can?


Why do we have energy loss same for every length of wire in capacitor charging

The loss of energy of a capacitor is independent of length of wire connecting it to voltage source $$(\frac{1}{2}×CV^2)$$So where and when is the coverted into heat?


How can angular velocity be constant even when there is a torque by friction?

A cylinder at rest lying on a rough ground is given an impulse which imparts a translational velocity (no angular velocity) to it. The question goes ahead with finding time after which rolling starts etc. etc.  But I have another question: The friction from the ground will decrease the translational velocity but increase the angular velocity (as the torque of friction will be in the direction of rolling). After some time, the translational velocity will become equal to angular velocity and hence pure rolling will start.  After this time work done by friction will be 0 as the point of contact is not moving and hence translational velocity will be constant. Now my doubt is that, when translational velocity is constant, it implies angular velocity will also be constant (as translational velocity is a multiple of angular velocity). But the torque from friction (about the centre of mass) will not be zero which means angular velocity will not be constant. In some book where there was the same problem it was written friction will vanish. How can friction vanish? How can anguluar velocity be constant even when there is a torque by friction?


Healer stuck in glue at end of combat. Does he still need to roll to free himself?

My cleric and wizard were both stuck in glue in recent combat, and a third PC was down. Instead of rolling to free themselves, they opted to fight from where they were. Once the combat was "over", i.e. all beasts were felled, did they need to still roll "in turn" to free themselves and heal the dying PC or could they have "rolled free" on their own and healed him?  I am a new DM and my Husband is an old school D&D person - not that familiar with 5e but knows the old rules well. we disagreed on this, and I'm curious what you all think. Thanks!    In reading , the writer states combat continues until all things "combat related" are dealt with, which would mean turns continue in order, including saves from glue trap and death saves. If this is correct, then I suppose my question is answered, but I would like someone to clarify. I do not find anything in the PH discussion of combat that specifies when it ends.


Automatically protect questions that hit the Hot Questions list

I have noticed that moderators on sites tend to protect questions that hit the top questions lists. This is probably to mitigate the deluge of answers that hot questions are likely to get, mostly because they are common problems or questions people have, or are otherwise interesting.  They also typically already have good (more often, great) answers if they hit the Hot Questions list.  Can Hot Questions be protected automatically?


I've been trying to design a logo for ages and have struggled to decide on one. Eventually, I gave up trying to design one myself and turned to Wix to help design one for me, which is just my company name in white on a black background. My problem is that I'm worried it looks very similar to other logos (as there are many out there that use the same concept). I also tried it with black writing on a white background but have the same problem. Would it be plagiarism to use either of these design concepts for my logo, or is it acceptable based on the fact that there are already multiple existing logos that are similar in the same way?


How can I find out if my website is being scraped? And how do I stop it?

Is there a way to identify that someone is scraping my website?


Declaring a superclass variable then instantiating it with a subclass in Java

I am a little confused and looking for some clarification on the differences and different benefits for two different approaches for the declaration and instantiation of a Map.  What is the difference between  Map<String, String> myMap = new HashMap<String, String>;   AND  HashMap<String, String> myMap = new HashMap<String, String>;   What is the benefit or reason for declaring a superclass variable then instantiating it with a subclass?


Tensor Product of the fraction field of the Gaussian Integers

Let $\mathbb{Z}[i]=\left\{a+bi:a,b \in \mathbb{Z}\right\}$  be the ring of Gaussian integers $(i^{2}=-1)$ and let $\mathbb{Q}[i]=\left\{a+bi:a,b \in \mathbb{Q}\right\}$ be its fraction field.      1) Show that the tensor product $\mathbb{Q}[i] \otimes_{\mathbb{Q}} \mathbb{Q}[i]$ is isomorphic to the product $\mathbb{Q}[i] \times \mathbb{Q}[i]$ of two copies of the field.       2) Let $S=\left\{1,2,2^2,2^3,...\right\} \subseteq \mathbb{Z}$ be the multiplicatively closed subset generated by 2. Find two distinct idempotents in the algebra $S^{-1}(\mathbb{Z}[i] \otimes_{\mathbb{Z}} \mathbb{Z}[i])$ other than $0$ and $1$.    For the first part, I thought I would try to use the presentation $\mathbb{Q}[i] \simeq \mathbb{Q}[T]/(T^2+1)$ and see what comes from that. Any help would be much appreciated!


I use this regular expression for checking  public const string FullNameRegularExpression = @"^[a-zA-Z0-9._-]+$";   How to add "spacebar" in?


How object reference works in Linkedlist (Java)?

I am building a Linked list here.   public ListNode addNode(ListNode head, ListNode temp){     if(head == null){         head = temp;     } else{         ListNode curr = head;         while(curr.next != null){         curr = curr.next;         }      curr.next = temp;     }     return head; }   I have to merge two Linkedlist here. For e.g. we assume head as 1->2->3->null, temp as 4->5->null, I need the output as 1->2->3->4->5->null  On the head list, we have to move to last node so that we can merge the temp list. To move the pointer to the last node of the head list, I am iterating till I get next element as null which means the curr list will have 3->null alone when the while loop exists. Then, I am adding the temp list as the next element of curr. So, I assume I get 3->4->5->null.  But, when I return head element, I am getting 1->2->3->4->5->null.  How this works> Both curr and head are pointing to same objects right? When we change curr, head should point to the same. How is this working?


I am a relatively new Linux user who has been running Mint on a 2018 Aero 15x laptop for a few months now. Everything works well enough, but I've had miscellaneous compatibility issues and I have heard that Ubuntu has the best hardware support for newer laptops and I am strongly considering switching over. I also really like the look and customizability of Plasma, so would definitely prefer using it over GNOME, but I have a few questions about the differences between KDE Neon, Kubuntu, and Ubuntu running KDE Plasma. I know what each of them are, but I was curious if Neon and Kubuntu have the same hardware compatibility as Ubuntu/if there is any advantage to running Ubuntu with plasma over either of the options with plasma baked in. Any help would be greatly appreciated!


How to extract all strings between brackets using c#?

If I have a string such as:  "You id is (1) and your number is (0000000000)"  What is the best way to extract these these strings into a list of strings. The numbers between the brackets can increase in digits thus searching for the strings between the brackets is a better technique.  I can use the code below to extract the first string between brackets.  var myString = "You id is (1) and your number is (0000000000)"; var firstNumberBetweenBrackets = myString.Split('(', ')')[1]; // would return 1


What I would like to be able to do is ask a user a question using input. For example:  print('some scenario') prompt = input("You have 10 seconds to choose the correct answer...\n")   and then if the time elapses print something like  print('Sorry, times up.')   Any help pointing me in the right direction would be greatly appreciated.


say that it's based on the context, but they suggest the form without the.  However, when I read , the first sentence is the following:      The United States of America (USA or U.S.A.), commonly referred to as the United States (US or U.S.) and America, is a federal republic consisting of 50 states and a federal district.   I always thought that it was with the definite article like "The United States" or "the USA" or "the UK" or "the United Kingdom" etc.   Are there any situations when the definite article is omitted in these cases mentioned above?


Is this a reverse Birthday Problem problem?

I have a machine that generates 16 character long sentences made up of (I think kinda) random letters. I can get it to spit out up to 1 million such sentences before I loose the ability to store them (as there will be too many by then).  From the million, there is not a single duplicate sentence detected. They are all different.  Is there a way I can infer at least how many possible unique sentences the machine might be capable of generating?  I am testing the hypothesis whether the sentences are made from totally random characters, or do some sentences repeat?  It is possible that the generated sentences /characters are not random or have strong correlations.  I don't know and that is the purpose of this experiment.  I think that it's a bit of a count-distinct problem, but I can actually store a million sentences so have not used the min hash or hyperloglog technique.  It takes too long to generate more than a million sentences anyway.  Is this an impossible test?  I had thought that if totally random, there should be some collisions (or not) and this might be some sort of indicator with a confidence interval.  Hence the Birthday Problem approach.    It's difficult for me to phrase the question without revealing the true nature of this experiment, as it would just get marked off-topic. So please bear with me.


How to open many tabs for many files in vim?

I can open one file in a new tab with:  :tabnew file   Let's say I have many files, for example: util.h and util.cpp.  How I can open those files all in separate, new tabs?     I'm looking for something similar to  :tabnew util.*


Show that the determinant of areas is non-negative.

Consider a sequence of discs $U_1, U_2,\dots,U_n \subset \mathbb R^2$. Let $S_{ij}$ denote the area of the intersection of $U_i$ and $U_j$. Prove that $$\begin{vmatrix}  S_{11} & S_{12} & … & S_{1n} \\  S_{21} & S_{22} & ... & S_{2n} \\  … & … & \ddots & … \\ S_{n1} &  S_{n2} & … & S_{nn}  \end{vmatrix} \ge 0$$   For $n = 2$, we have $$\begin{vmatrix} S_{11} & S_{12} \\ S_{21} & S_{22} \end{vmatrix} = S_{11}S_{22} - S_{12}S_{21} \ge 0$$ since the diagonal elements are the largest. So the claim holds. I was planning to go through induction but it seems like to get a big deal to see how the determinant will change after adding a new disc to the collection. What we also have are the matrix is symmetric so that $S_{ij} = S_{ji}$ and therefore the eigenvalues are real (I don't see any use of this though).


I submitted a paper about 20-25 days ago in this conference  knowing about IEEE involvement here.  Today I have got an acceptance email for my paper, The astonishing thing to me is, I knew at least 1-2 month is required to review this type of conference paper.  The conference date is 8 September, 2017 which is very near. Is there anyone who can assure me that this conference is not scam?


What was the purpose of the octagonal room in Heaven Sent?

There was an octagonal room, with an octagon in the centre of the floor. In the centre there was some sand and dust, with arrows pointing towards the central point.    What was the importance of that room?


What were the Ringwraiths before becoming that?

The Ringwraiths were kings, sorcerers and other powerful sorts, according to Galadriel. Do we know who they used to be, what they ruled, and other details as to the nature of their former identities?


I created interface:   @RequestMapping("/data") public interface PersonControllerInterface {      @RequestMapping(value="/person/{id}", method=RequestMethod.GET)     public Person getPersonDetail(@PathVariable final Integer id);  }   and class which implements that interface:  @RestController public class PersonController implements PersonControllerInterface {      @Override     public Person getPersonDetail(final Integer id) {         final Person p = new Person(id);         return p;     }  }   But after I call GET localhost:8080/data/person/4. I got:  DEBUG o.s.web.servlet.DispatcherServlet - Could not complete request java.lang.NullPointerException: null at com.concretepage.Person.<init>(Person.java:12) at com.concretepage.PersonController.getPersonDetail(PersonController.java:16)   And the Person class:  public Person(final Integer id) { this.id = id; }   In jax-rs I can do similar stuff, but in Spring it can't fetch id in path. Are there any solutions on my problem? I really don't want put @PathVariable annotation in my implementation class.  EDIT: It is not duplicate of fixing NPE. It is a problem with propagating annotations from interface class into implementation.


Unable to solve $ \int \frac{x + \sqrt{2}}{x^2 + \sqrt{2} x + 1} dx $?

This comes from a bigger problem :-  $$ \text{Evaluate } \int\frac{dx}{1+x^4} $$  After making $ \int \frac {dx}{1+x^4} = \frac{dx}{(1+x^2)^2 - (\sqrt{2}x)^2} $ and then applying partial fraction method, I got :-  $$ \int \frac{dx}{1 + x^4} =\frac{1}{2 \sqrt{2}} \int \frac{x + \sqrt{2}}{x^2 + \sqrt{2}x + 1} dx - \frac{1}{2 \sqrt{2}} \int \frac{x - \sqrt{2}}{x^2 - \sqrt{2}x + 1} dx $$  Now, to the first integral, I tried making a u-substitution:-  $$ \text{Let }x^2 + \sqrt{2}x + 1 = u \\ \frac{du}{dx} = 2x + \sqrt{2} \\ \implies du = (2x + \sqrt{2}) dx \\ $$  As you can see, it is not the same as the numerator, which is $$ (x + \sqrt{2}) dx $$  Any hints on how to proceed ?


Why is it true that $a^{\log_{b}n} = n^{\log_{b}a}$


Materials don’t show when exporting as FBX

So when I export my models as FBX, their materials don’t seem to have colors in them even though I applied it in Blender. What’s the solution to this?


If $|f(z)| \leq C_1 + C_2 |z|^k$ then $f$ is a polynomial of degree at most $k$

This is a weird problem that I could use some hints on how to solve:  If $f:\mathbb{C}\to \mathbb{C}$ is analytic and for some $k \in \mathbb{N}$ there exist constants $C_1,C_2>0$ such that $$|f(z)|\leq C_1 + C_2|z|^k$$ then $f$ is a polynomial of degree at most $k$.  I am pretty much stumped here. Can you guide me/provide some hints?


The $h-$th power of every element in a finite group of order $h$ is the identity element of the group

I work in population dynamics. I want to show somewhere in my work that the $h-$th power of every element in a finite group of order $h$ is the identity element of the group. I guess this is elementary result but it would be nice if somebody show me how to do it or where to find it. Thanks


I have created a class in run time using reflection. I need to create a List collection of my reflection type. How to do that ?   MyClassBuilder MCB = new MyClassBuilder("ReportRecord"); var myclass = MCB.CreateMyProperty(myTable.Columns); Type TP = myclass.GetType(); var myObject = Activator.CreateInstance(TP); List<dynamic> ccc = new List<dynamic>();   In the above code I have created a class "ReportRecord" . I need to create collection of ReportRecord that is List.


Failed to install "at": Could not resolve us.archive.ubuntu.com

I am taking a course on Linux right now, and we were asked to execute the following on a command line after creating an executable testat.sh script and assess what happened:  at now + 1 minute -f testat.sh   When I ran the at command, I got an error, saying that the command does not exist.  I tried to download and install it with   sudo apt install at   but failed with this error:     Could not resolve us.archive.ubuntu.com   I do have a stable internet connection where I am, but I am not sure if this is the problem?   Am I running it wrong? I will provide an  so that you can see your self what I am supposed to do. I could not complete the exercise, because of this, and I am wondering what is wrong.  I only started learning Linux a few weeks ago, and I am a complete beginner. I could really appreciate some insight on what might be the case and how to do this.  Thank you!


I want to develop ios apps but I don't have Mac system, I heard that we can develop without using Mac. Is that true? If so please tell me how to do that as I want to become iOS developer


Here is the question:  Given function $f$ is bounded on a measurable set $E$. Show that if $f \in L^{p_1}(E)$ then $f \in L^{p_2}(E)$ whenever $p_1<p_2$ .   I know that I need to show $|f|_{p_1}\geq c |f|_{p_2}$ for a constant c   I tried to let $p=\frac{p_1}{p_2}$ and then try to use Holder inequality but it did not get anywhere.  I also try to let $g=f^{p_1}$ and try to look at $g^p$  but it did not work .


My requirements are: I need a UPS system which supplies power to a 9 volt modem. UPS should Charge 12v battery (SLA , charging curent 800ma), and it should have overcharge/discharge protection system [optional: it should show the battery capacity with four leds(25% interval)]. I want to achieve this without using ADC. I can make 230V AC to 12v DC converter with step down transformer. Switching from mains to battery can also be achieved with two diodes. But i want to make overcharge/discharge with led indicator which i cant figure out without ADC. Is there any way to achieve this without microcontroller and ADC. Any suggestion would be appreciated. Thanks in advance.  I am thinking about something like this. I have designed this circuit on my own. But i have no idea how to link these two switches to charge level indicator.


We are given that, $$a+b+c=0$$ Then, what is the value of: $$P= \dfrac{a^2}{2a^2+bc}+\dfrac{b^2}{2b^2+ca}+\dfrac{c^2}{2c^2+ab}$$


How can I match the repetition of a character n times? For example with this sample text  abcdddd123 123456777xssx  I want to match the three consecutive 7 and the three consecutive d I've tried with .{3}  But the quantifier {3}, as well as other quantifiers such as the asterisk, dones't seem to quantify the same character but any other different character as well. I mean it doesn't repeat the first matched character muy the dot itself. In my example it will match everything.


How to read #(A1 x ... x Ak) = n1 * n2 ... nk?

I found this paragraph and I'm having trouble reading it, I understand that the total of all possible arrangments equal to A1*A2*A3...An but I don't understand how we get there from this:     If A1, A2...Ak are sets so that #Ai=ni>=1 for i=1...k, so cartesian product o A1 x A2 x ... x Ak, consisting of all vectors form (a1, a2...ak) with ai E Ai, has a total of n1*n2...nk elements, meaning:      (A1 x ... x Ak) = n1 * n2 ... nk


How do I type the forwardtick—opposite of backtick—characters on Windows?

I’m not sure if I'm using the right terminology but I think what I am looking for is a forwardtick. It is the opposite direction of a backtick sometimes called a . So how do I type this and what is it called? Is there an alt code?


I was trying to post a comment on escaping backslashes, and ran into some formatting issues.  Namely, how to not escape backtick characters, because by default, they are always escaped following a backslash, regardless of the number of backslashes.  (repro'd in comment below)  This is despite the fact that backticks are not escaped in this way in posts: `\` generates \ as expected.   Backticks are tricky, so a workaround may be more useful than a fix. Unless, there are hideously more use cases than just regular expressions and questions about escaping strings?


I'm looking to produce something like this:  blah blah ____ blah blah  But with a solid line.  Thanks in advance.


If $G$ is a group and $N$ is a nontrivial normal subgroup, can $G/N \cong G$?

I know $G/N$ is isomorphic to a proper subgroup of $G$ in this case, so the gut instinct I had was 'no'. But there are examples of groups that are isomorphic to proper subgroups, such as the integers being isomorphic to the even integers, so that reasoning doesn't work. However in this case the even integers are not a quotient of the integers.  edit: I realize now that $G/N$ is not necessarily isomorphic to a proper subgroup of $G$, just a subgroup of $G$.


Take the list variable num1 = [] and say i also take num1_child = randint(0,100) how do I go about making num1 progressively become a longer list by adding num1_child to the list, as opposed to simply changing it's value every eteration? (I looked at:  but did not fully understand how to implement that in my code)


Reinstalling Ubuntu 15.10: "Removing conflicting operating system files" has been running for almost 24 hours

The process is not stuck because the terminal shows "progress", it keeps trying to remove files that it can't find, the messages read something like: /..../file x: Warning: Source ID XXXXXX was not found when attempting to remove it  The reason I am reinstalling is because my installation was messed up when I installed ubuntu-touch and the system wouldn't reboot.   I was able to fire up a live USB through grub and start the installation process, I figured it would be possible to simply reinstall but it seems to be taking forever. Is this normal behavior? Should I stop it and simply go with a fresh install instead?  Thanks!


I'm new to C# so don't blame me for my stupidity. I'm working on an application that should randomize a word and give it's lenght for example you write a word "Line" and it gives you "iLen". Currently I'm sure that only this part works:      private void lenght_Click(object sender, EventArgs e)     {         String word = textBox1.Text;         int x = word.Length;         MessageBox.Show(x.ToString());     }      private void randomize_Click(object sender, EventArgs e)     {         String word = textBox1.Text;         int x = word.Length;       }   I tried a lot but most of it just crashed the application so at the moment I  would like to know what does the Text.ToCharArray does and I would love additional support. So I just need a method that takes your string randomizes it  gives you another string just with  mashed/randomized characters. Now I will leave the question for 5 - 7 hours to get more answers later I will review them all and give rep to the working ones. Thank you for support! I have read all your reviews yet I'm late sorry for that now it's time to check everything.


How can I get the center of a scaled image wherever I want it---(x,y)---in the document?

According to some coordinate system, whatever that may be, how can I position a scaled image where I want it in the document using the center of the image as the point of reference? For example, something like this:  \being{whatever}(4cm,6cm)      \includegraphics[scale=0.5]{img.jpg} \end{whatever}     Here is my minimal working whatever:  \documentclass{article} \usepackage{something} \title{Cartesian closed categories and the price of eggs} \author{Jane Doe} \date{September 1994} \begin{document}    \maketitle    Hello world! \end{document}


"There is a plethora..." or "There are a plethora..."?

A simple question that has sparked some debate, and I couldn't find a concrete answer anywhere. There seems to be two camps: The word plethora indicates plural, so therefore it should be "There are a plethora"; and the other camp says that there is only one plethora (which contains multiple), so it should be "There is a plethora".  I've seen many examples of both. Is there a consensus, or is it just one of those things that can go either way?


(Verification) $C \approxeq A$ or $C \approxeq \text{section of } A$ $\forall C$ s.t. $C \subset A$

Claim  Let A is well-ordered set.  $C \approxeq A$ or $C \approxeq \text{section of } A$ $\forall C$ s.t. $C \subset A$   Proof  If $C=A$, $C \approxeq A$ since a well-ordered set is order-isomorphic to oneself.  If $C \neq A$, there $\exists a \in A$ s.t. $a \notin C$. Then   $A\setminus C = \{a \in A \;|\;a \notin C\}$.  Now, since A is well-ordered, there $\exists$ least element in $A\setminus C$, so let this least element be $m_0$.  Now let $S_{m_o} = \{a \in A \;|\; a< m_0\}$ which is a section of A.  Now define $\phi : C \to S_{m_0}$ s.t. $\forall C_0, C_1 \in C$ if $C_0 \le C_1$ then $\phi(C_0) \le \phi(C_1)$   There $\exists \;\text{such}\;\phi$ since $C$ and  $S_{m_0}$ are all-well-ordered since A is well-ordered.  So by definition $\phi$ is increasing. Also, $\phi$is bijective since the number of element in $C$ and $S_{m_0}$ is equal.  Thus,  $\phi^{-1}$ also exists and it is also increasing and bijective by definition.  Thus $C \approxeq \text{section of } A$


I am using this Power Resistor  and I am trying to put it in my layout. The Problem is I can't find any .lib (TO-263  or D2PK) file in Eagle or at least a similar package.  Any Help?


Why is the liquid's reflection look so weird after the render? (Blender Guru tutorial)

I was doing the coffee cup tutorial that made by Blender Guru,and this happened: The shadow looks weird when there is liquid in the cup.(Look like dimanods?) But everything looks right when there is nothing inside the cup. Don't know why is that happening. Here is my compositing.(I didn't turn on the denoising in the render properties.) Here is how it looks like in rendered view mode  The wireframe of the glass and the liquid. Cup's wireframe LIquid's wireframe  Have a nice day.


I have a data list with some property. I want to convert that list data into data table. How to convert a list into datable.


sorting php arrays ordering by nested element


How do you make your terminal play a sound or offer a notification when it has finished executing its command?

I do sudo apt-get update from time to time, and find it frustrating to have to check when it is done doing its thing. Is there anyway I can get it to offer a notification popup or play a sound when it has finished executing, so I can get on with my work?


I would like to ask for an example (a lagrangian) both in classical and quantum level for which the action is maximaized (rather than minimized). What is special in these cases?


Find the value of : $\lim_{n\to\infty}\prod_{k=1}^n\cos\left(\frac{ka}{n\sqrt{n}}\right)$

Find the limit (where a is a constant)  $\lim_{n\to\infty}\prod_{k=1}^n\cos\left(\frac{ka}{n\sqrt{n}}\right)$  I think the answer is $1-a^2/6$


Why don't negative rep changes show in the topbar?

If I am upvoted, +10 (or +5) appears in the top bar. But when I am downvoted, nothing notifies me except rep changes.And if I am on another SE site, I won't know that I got downvoted until I view my profile on that site. Why is it designed so?


How do I calculate how fast a capacitor will discharge?

Say I have a 1F capacitor that is charged up to 5V. Then say I connect the cap to a circuit that draws 10 mA of current when operating between 3 and 5 V. What equation would I use to calculate the voltage across the capacitor, with respect to time, as it is discharging and powering the circuit?


How do I solve this equation: $$x^5 \equiv  3\pmod{19} $$ where all I know is Fermat's Little Theorem and operations on multiplicative group $\mathbb Z_p^*$?


What to consider when choosing a memory card?

I have a Canon 20D and was looking to buy a memory card. Turns out there are lots of options that vary in price. This got me wondering, what should I be looking out for when buying a memory card.  Based on some research that I've done, I have some points:   What is the maximum memory size your camera supports ?   From what I can tell, the 20D supports up to 8GB (could not find it in the manual), so anything over that would be a waste. Although I did find some posts where users claim they can use a larger card, as long as they dont format it using the camera. Can anyone speak to that? Personally I might just stick with the limit set by the camera.  Read/Write Speed?   I am still trying to figure this one out. I saw . Essentially the write speed of the card should be higher than that of the camera, which makes sense. However how do I figure out the write speed of my camera? Does anyone know what the write speed of a Canon 20d is?  What brand to buy?   I currently have a SanDisk Extreme 512MB card. That is why I started looking for the same card with a higher capacity. A Kingston or Transcend is approx. $15 while a SanDisk is over $30...  Extreme temperatures?    Not sure how important this is, but I do live where the temperature can go pretty low below 0F. That doesn't mean I will necessarily be doing photography outside in that temperature. What kind of problems do people run in to with low temp?    Are there any other things that I should be looking at?


While watching anime, especially ones that focus on slice-of-life or high school, I often come across a test paper containing a character's score. However, it is interesting to note that the correct answers are circled while the wrong ones are ticked (checked?). As far as I know, ticks are for correct answers and circles are for incorrect answers (unless I've been living in a shell, which would be embarrassing).    The image is from The World God Only Knows OVA: Four Girls and an Idol, where Keima Katsuragi intentionally placed an incorrect answer for question #1. As you can see, it is checked while the rest are circled. Does this mirror how Japan marks the test papers of students? If so, why?


Do you have to roll to cast a spell in D&D 5E?

So me and my friends are playing D&D 5E and my friend wants to cast magic missiles. Our DM says that he has to roll to cast the spell but my friend says he does not. So according to the rules of D&D 5E do you have to roll to cast magic missiles or any other spells? Do you need to roll for each missile to hit?


How can I download all the videos I uploaded on YouTube?

I uploaded many videos on my YouTube account: how can I retrieve them easily?


How to install ubuntu on windows 7 using ISO with no disk?

I need to know how I can install ubuntu on Windows using the ISO file without burning onto a disk. Is this possible?


The Central Limit Theorem in Quantile Estimation

I don't have a very strong background in statistics so I have a few conceptual questions and there is a strong possibility I'm missing something obvious.  Suppose I'm interested in estimating the 99th percentile of body weight in the United States and I have data from every town in every state. I could simply aggregate all the data and find the 99th percentile, but I'm not sure what statistical power this number would have. The data aggregated all together isn't really normally distributed. It has a very large kurtosis excess, so I don't believe any kind of confidence interval estimate would hold. But perhaps I'm missing a basic statistical concept.  The second option would be to find the 99th percentile in each town, and apply the central limit theorem, treating each town as an independent random variable. I know the CLT applies to other quantiles, but it doesn't hold for extreme quantiles. I have used MATLAB simulations to prove to myself that it will hold for the 0.99 quantile. However, body weight in each town is not identically distributed. You can imagine that low income, urban, areas will have heavier individuals. So I must apply the Lyapunov or Lindeberg-Feller CLT. Is this a valid thing to do? It seems like these Central Limit Theorems are making statements about the distribution of a random variable divided by the sum of variances, rather than a mean or quantile. How would confidence interval estimates change for these theorems? Any references or insight is greatly appreciated. Thanks.


Find all primes p such that p!+p is a perfect square

The question is that, Find all primes $p$ such that $p!+p$ is a perfect square.  By using Wilson's Theorem I got,   $$p!+p=p((p-1)!+1)=p^{2}k$$ If $p^{2}k$ is a perfect square, then k must be a perfect square.  I was unable to proceed after this. I also tried another approach   We can see that for p=2,3 the given expression is a perfect square. Let $p>3$. If $p!+p=k^{2}$, then it is easy to see that k must be odd. Also, if k is odd, we know that $k^{2}\equiv 1\pmod{8}$, which implies that $p\equiv 1\pmod{8}$, since $8|p!$ Similarly, we also get $p\equiv 1\pmod{3}$. Thus, we get $$p\equiv 1\pmod{24}$$Unfortunately, I was unable to capitalze from here as well   Could someone please complete my solutions or provide an alternate solution. Thanks a lot for your help!! :)


Removing extra page before and after \tableofcontents

My main file generate extra page before \tableofcontents with header title "Table of contents". How can I remove this page?  I am copying the main.tex file code for your reference.   \documentclass[twoside,12pt]{Classes/aesm_edspia}  \begin{document} \addtocounter{page}{-1} \makethese  \onehalfspacing \newpage\thispagestyle{empty}\addtocounter{page}{-5}   %depth in the table of contents and section numbering \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \frontmatter  \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{Acknowledgements} \fancyfoot[RO]{\thepage} \fancyfoot[LE]{\thepage} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt}  \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{Table of Contents} \fancyfoot[RO]{\thepage} \fancyfoot[LE]{\thepage} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt}  \input{Abstract/Abstract}  \tableofcontents \listoffigures \listoftables   \mainmatter \pagestyle{fancy} \fancyhf{} \fancyhead[LE,RO]{Introduction} \fancyfoot[RO]{\thepage} \fancyfoot[LE]{\thepage} \renewcommand{\headrulewidth}{0.5pt} \renewcommand{\footrulewidth}{0pt}   \end{document}


Removing an item from a list: Trashcan Icon vs X

Below I have an example image of a list with two separate icons. I am curious which one conveys the best action of removal from the list, either a trash icon or a closing x.  Specifically, this is being used to remove an entry from a list that the user has added.  Is there a better way to display this?  Note: I do not care about the UX interactions etc, purely the icon representation!


Showing that $(\mathbb{Z}/p^{a}\mathbb{Z})^*$ is a cyclic group

I'm supposed to show that if $p$ is an odd prime (so its not $2$) that the multiplicative group $(\mathbb{Z}/p^{a}\mathbb{Z})^*$ is cyclic. It seems very hard to do for any $a$, so I'm thinking about using induction on a to make things easy. That being said, I don't really like group theory. How do I show the base case is cyclic and proceed?  Thanks everyone!


Stranded spaceman prepares a plan to defend pristine planet against land-grab and exploitation

A spaceship technician landed (crashed?) on a pristine planet (strong Polynesian resemblance) where a tribe of humans lives in harmony with nature, isolated from predatory capitalist humanity, colonising more and more space.  He decides to train them how to resist against expected land grab and corporate invasion. Dies before first space mission arrives, leaving detailed handwritten plan.  The whole plot is about the -- eventually successful --  resistance, run non-violent and legally-supported way.  Possible title "X's Planet" or "X's Plan" -- X being the name of the said spaceman.


How to use backup EFS certificate to decrypt encrypted files?

I have some files that were encrypted on a now extinct Windows 7 system. I made sure to backup my keys, this one is called efs.pfx. Double-clicking it launches the Certificate Import Wizard which places it in the Current User > Personal store. But now when I try to select it for decryption using the EFS Rekey Wizard (rekeywiz.exe) I get this error on the final step:   I saw this notification while it was in that store:   So I moved it to the mentioned store, where things looked better:   However I still get the same error in rekeywiz regardless of which certificate store it's in.  I can see the encrypted files in Windows Explorer, but double-clicking them opens them as empty files or throws errors:   I practiced deleting the certificate to make sure I could not read the files' contents, and importing the certificate to make sure my read access was restored. This worked well, and can't imagine that this is the wrong key (the backup is literally named efs.pfx). I don't remember having to use the Reykey Wizard when I practiced this on Windows 7. Also, I never tested this after upgrading to Windows 8 or 8.1. I think this might not be an "upgrade" but a clean install, as I remember a problem trying to transition my 8.1 Preview system (which was probably the last in a series of in-place upgrades dating back to Vista) into the final build. I don't see why this would matter, but I hope it helps cover any questions.  How can I decrypt my files?    Update  As suggested in the comments, I tried moving files to a different location. At first I was denied access saying I needed permission from the entity in the following picture:   I looked at the Advanced Security Settings Properties tab and saw that the owner was the same entity, so I took ownership of the file and allowed myself full control.  Strangely, I get the same error when now trying to moving the file, only I require permission from myself   Update #2  When I look at an encrypted file's properties in General > Advanced > Details > User Access, I can see which certificate is allowed to view the contents and its thumbprint:   I've verified that this is the same certificate I backed up and installed into my certificate store:


My objects are semi-transparent, and not one behind the other in the compositor

I have multiple scenes each with different objects. I want to combine all these scenes in the compositor but when they render, all the objects from each scene overlap each other and are all transparent, so I can see all the objects when some should be hidden behind others.   To join my scenes I'm using a mix node with add.


How to approach ordinary differential equations?

$$y'' -4y' + 4y=0$$  My attempt:  We solve $r^2e^{rx}-4re^{rx}+e^{rx}=0$ for $r$, this gives $r=2$  Then the solution is: $y=c_1e^{2x}$  But the solution given is $y=c_1e^{2x}+c_2xe^{2x}$.  I wonder where the $x$ in $c_2xe^{2x}$ comes from, why is it different?


how to crop image to image with offset and size?

I'm making an application that need to crop the image to another image. i want to crop the source Image ( like green rectangle) to destination image ( like white rectangle). I can get the size of source and destination image and the offset x and y . How can i got that crop image and save it to library? You can see the image attach here:    How can I crop to that image? and if you can please give me an example source code so much thanks for that


Ramda.js - propEq(String → a → Object → Boolean) - what this notation mean?

I don't understand this shortcut notation.   Two examples:   propEq  (String → a → Object → Boolean) sortBy (Ord b => (a → b) → [a] → [a])   Can you decipher it?  And yes, I know how to find its docs, but this documentation is rather poorly described


How to get custom user profile properties in SharePoint 2013 restful api?

In my Sp2013, I tried this link  http://mysite/_api/SP.UserProfiles.PeopleManager/GetMyProperties   and it gets all properties including the custom managed ones from crawling. And one of them is called Office which comes in the xml from above link.   This is in the big xml thats returned              <d:element m:type="SP.KeyValue">                 <d:Key>Office</d:Key>                 <d:Value>12-R</d:Value>                 <d:ValueType>Edm.String</d:ValueType>             </d:element>   But then if I try this  http://mysite/_api/SP.UserProfiles.PeopleManager/GetMyProperties/Office   it says Office is not found...  How can I get it to return that?  Thanks


I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them.  The first method I found is update-rc.d to add new services to startup, which aims on the /etc/init.d folder and its contents.  The other one I found is to edit .conf files in the /etc/init folder.  What's the recommended way to enable / disable / add services and why?  Could you please give a short bulletproof step by step example on how to add a service in Ubuntu and enable and disable it?


Is there a way to delete text in front of the caret using the iOS software keyboard? The small wireless hardware keyboard accomplishes this with a fn+delete, so there might be a way to use multiple keys to accomplish the same task in iOS?


Why are we still using CPUs instead of GPUs?

It seems to me that these days lots of calculations are done on the GPU. Obviously graphics are done there, but using CUDA and the like, AI, hashing algorithms (think bitcoins) and others are also done on the GPU. Why can't we just get rid of the CPU and use the GPU on its own? What makes the GPU so much faster than the CPU?


How can I tell how long (more or less) it will take me to complete a game?

I'm going down my huge backlog of unplayed Steam games and I'm thinking the best way to tackle the list is to go through the shortest games first and then concentrate on the 20+ hour ones. I'm wondering if there's a website or something else that has an estimated amount of gameplay time for games.   Is there anything like that?


Is it possible to install a phone version of Android on an Android tablet?

Is it possible to modify the version of Android installed on my Galaxy Tab S5e SM-T727U? Currently it is running android 10 Baseband no. t727uueu1ctl2, but I would really prefer it to be running say the Galaxy 10 or 11 version of Android 11. I would prefer this because the UI on a number of apps I use frequently on my tablet are absolutely horrendous because the way the software is designed to adjust or adapt to use on a tablet.


How do I proceed when I can't kill the Wall of Flesh?

I have no idea what to do next.  I can't kill the Wall of Flesh and I have Necro Armor, Fiery Greatsword, Star Cannon, Book of Skulls, Muramusa, Molten Helmet, and Flamearang  What can I do now?


Over at Open Source.SE, it's easy to figure out how many people would've seen a post, since it's still in private beta. With 313 users, you wouldn't expect to have reached more than that amount. Yet:    I've reached 778 people. Clearly not.  So here's the request:  Let's change "people reached" to "impressions". This is much more accurate, and is already used in many analytical applications, such as YouTube. And who doesn't like impressing people?  So, instead of having "reached" 778 people, I would have 778 impressions. Sounds great! Right?


Lollipop : Mobile data toggle from lock screen

Mobile data can be switched on and off from lock screen in android 5.0 lollipop. I casually leave my phone on desk for short time while I am nearby, somebody (suppose a kid) can toggle mobile data which can cause problems. For example it can incur a lot of charges if background data is enabled in my settings and somebody switches on the data. Or if I am downloading something in background then it can get interrupted if someone switches off data. Any solutions, tricks, etc. to solve this.


I have been given a problem and need to find the best statistical method that would help. The problem is as follows: A business has approx. 100,000 active customers who spend between £500 per annum and £200,000 per annum.  The smaller ones transact irregularly, once per year, the larger ones maybe once per week.  They are distributed across 15 different market sectors. The business has started to decline, and whilst we have implemented a process for making offers to customers once they have closed their account, it is thought this would be much more effective if we could predict which customers are likely to close, and make offers to keep them before they close.  How would you go about determining which customers to make offers to?


Cannot remove file: Read-only file system

I am trying to delete a file on an Ubuntu 12.04 system for which I have root access. However, I am getting this error:  root@CRST-Web:/home/real_property/html# rm -r -f results.php rm: cannot remove `results.php': Read-only file system   df /home/real_property/html output:  Filesystem                     1K-blocks     Used Available Use% Mounted on /dev/mapper/CRST--Web--vg-root 121407596 65468436  49748876  57% /   I tried to remount the partition rw but it failed:  # mount / -o remount,rw mount: cannot remount block device /dev/mapper/CRST--Web--vg-root read-write, is write-protected


Can I visit France with this Greek Schengen visa?


Do 'already' and 'just' require the present perfect?

Compare:  'We already/just gave him a response'. 'We have already/just given him a response'.  Do 'already' and 'just' strictly require the present perfect?


Lambda function for sort(key=...) in Python

I have the following dictionary: employees = [      {'Name': 'Alan Turing', 'age': 25, 'salary': 10000},      {'Name': 'Sharon Lin', 'age': 30, 'salary': 8000},      {'Name': 'John Hopkins', 'age': 18, 'salary': 1000},      {'Name': 'Mikhail Tal', 'age': 40, 'salary': 15000},  ]  I now want to sort this dictionary with the key 'age' using Lambda. You can find below how I tried to figure this out: print(list(map(employees.sort(key = lambda x: x.get('age')), employees)))  I get the following error: Traceback (most recent call last):    File "<string>", line 10, in <module>  TypeError: 'NoneType' object is not callable  How should I configure the lambda to get the correct output? Thank you!


I am looking for any source code that does tree crown segmentation/delaunitaitoun with LiDAR point clouds or their respective greo-TIFFs. So far I can load and view both LiDAR file and its TIFF in matlab but I need the code to convert it to extract tree crowns.  Any open source library in any programming language is ok.


python decorator counter primitive failed

I am new to python decorators and I tried to count calls with primitive counter and it failed:  def logging_calc(func):     counter = 0      def inner(a,b):         counter += 1         print(counter)         return func(a,b)     return inner   but if I set counter to be a dictionary it succeed.  def logging_calc(func):     counter.calls = 0     def inner(a,b):         counter.calls += 1         print(counter.calls)         return func(a,b)     return inner   help me understand please :)


Calculating the infinite sum ${1\over 1^3} - {1\over 3^3} + {1\over 5^3} + ...$

I came across the set of problems      $$ \begin{split} \sum_{k=0}^\infty \frac{(-1)^k}{2k+1}  &= \frac11 &- \frac13 &+ \frac15 &\pm \ldots &= \frac{\pi}{4}\\ \sum_{k=0}^\infty \frac{1}{(2k+1)^2}  &= \frac1{1^2} &+ \frac1{3^2} &+ \frac1{5^2} &+ \ldots &= \frac{\pi^2}{8}\\ \sum_{k=0}^\infty \frac{(-1)^k}{(2k+1)^3}  &= \frac1{1^3} &- \frac1{3^3} &+ \frac1{5^2} &\pm \ldots &= \frac{\pi^3}{32}\\ \sum_{k=0}^\infty \frac{1}{(2k+1)^4}  &= \frac1{1^4} &+ \frac1{3^4} &+ \frac1{5^4} &+ \ldots &= \frac{\pi^4}{96}\\ \sum_{k=0}^\infty \frac{(-1)^k}{(2k+1)^5}  &= \frac1{1^5} &- \frac1{3^5} &+ \frac1{5^5} &\pm \ldots &= \frac{5\pi^5}{1536}\\ \sum_{k=0}^\infty \frac{1}{(2k+1)^6}  &= \frac1{1^6} &+ \frac1{3^6} &+ \frac1{5^6} &+ \ldots &= \frac{\pi^6}{960} \end{split} $$   I was able to do the first one using Maclaurin series of $\tan x$ , and also I was able to compute the ones with even powers by comparing coefficient of various powers of x in two different expressions for $\sin x$ , one from Maclaurin expansion and the other by forming a polynomial with roots {${...,-2\pi,-\pi,0,\pi,2\pi,...}$} (i.e. Euler's Method)  But I have no idea how to compute the ones with odd powers , I searched a lot too , but nowhere could I find any way to compute the ones with odd powers.   Could someone please guide me on how to compute the ones with odd powers ?   And also shorter ways of computing the ones with even powers are highly welcomed.  Thanks


How do you disable Microsoft Edge in my Packard Bell EasyNote JE69KB?  It is constantly sending pop up videos and games even though it is not my default browser.  I want to disable it if possible.


Main Terminal Window Displaying Commands Only

I often lose track of the command flow due to the long text output of some commands, so I would like to have a main terminal window where user commands are executed and other terminal windows that „pop up“ displaying the commands' output and then are closed with the use of a short-cut.  Is it possible to code such a behavior? Any tips about the language I should use?  An even more user-friendly interaction would be for the terminal to ask whether it should display the output externally if it exceeds a user-set limit.


Solve a system of equations with Euclid's Algorithm

Find the general solution $(x, y)$ ∈ $\mathbb Z × \mathbb Z$ for the system of equations $$355x − 113y = 1 \tag 1$$ $$355x + 113y = 1 \tag 2$$ You need one parameter $t ∈ \mathbb Z$ to describe the general solution.   My attempt: By Euclid's Algorithm: $\operatorname{gcd}(355,113)=1$ $1 = 355(-7)+113(22)$ So for equation $2, (x,y)=(-7,22)$. And for equation $1, (x,y)= (-7,-22)$. So the general solution is $(-7,22t)$, where $t=\{-1,1\}.$ Is my attempt correct? If not, please can you show me how do we solve this?


Is there a hotel search engine which allows one to exclude shared rooms?

The main big hotel search websites I know:    list many "hotels" which also sell single beds in dorm rooms. Try searching for London for 1 person, and sort by price, you'll see that the cheapest offers are mostly single beds in shared dorm rooms. Its impossible to find the cheapest offer for the whole private room without examining each offer manually.   You could filter out "hostel" style properties, but that misses out on many facilities branding as "hostels" but having cheap private rooms, so its not an ideal solution. And on Booking.com even that won't work, as it still leaves many which brand themselves there as a "hotel", but have shared dorm rooms, and prices are shown for a bed in such a dorm room, and not a whole private room.  Is there really not a website which has cheap hotels (regardless of if they call themselves a "hotel" or a "hostel", as often this division is blurry and arbitrary, and doesn't specify what type of rooms the facility has), and sorts the the price of the cheapest whole private room?   The website should list most hotels, and not only hostels - websites like hostels.com hostelz.com hostelsclub.com hostelbookers.com hostelworld.com gomio.com filter by private rooms, but they don't show most real hotels (many of which have sometimes quite cheap offers), only hostels. These hostel websites list only max. 100-300 properties in London, while Booking.com has 2359 and Hotels.com has 1614, so a website listing hotels should have at least a thousand in London, as opposed to only 300 hostels.


How do you keep the password hidden when invoked during the su command?

This is the first time it has happened to me where I am using the su command and it actually displays the password on the terminal and doesn't stay hidden. Here is my code snippet:   sshpass -p "password" ssh -q username@74.11.11.11 "su -lc 'mkdir temp/'"   Code explanation:  I am accessing a remote server and trying be root on that server to create a folder. In doing so I have to use the su command and it prompts me for the password. When I enter the password, it gets displayed and doesn't stay hidden. How do I fix that?


PGFPlots how to add a label "0" to the origin

I am using pgfplots to plot the a function. I have been looking around on the forums, but I could  not find a solution. I would like to origin to be indicated as a 0 on the x axis.  I would also like to get the axis labels to appear respectively left and below the axis. Any ideas?  I have the following plot:   \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}   \begin{axis}[width=7cm, height=2cm,xmin=-6,xmax=6,ymin=0,ymax=1, no markers, samples=50, axis lines=left,  axis lines=middle,  scale only axis, % extra y ticks={0.5}, /pgfplots/ytick={0, 0.5,1}, % make steps of length 0.5 /pgfplots/xtick={-5,0,5}, % make steps of length 5     xlabel=$Li$,     ylabel={$f_{comp}(Li))$}   ]      \addplot {1/(1+exp(-x)};    \end{axis} \end{tikzpicture} \end{document}


Grammar checking program for LibreOffice

Is there a tool for checking grammar in LibreOffice?


How could I do simple per-fragment lighting on BSP geometries?

I am programming a graphics engine for an old game. The game uses a BSP geometry which I have rendering perfectly. For it's lights however, it simply has light instances with the standard x, y, z, rgba, brightness, type. Now I know that OpenGL has an 8 light limit. How should I go about handling multiple lights.  I am learning per fragment light just to have the concepts under my belt. I know per pixel lighting is the standard and I will eventually move there, just want to learn how to get this concept put in play as well.  I assume I will just calculate which lights are the closest and render those 8. Does anyone have any other ideas?


c# W.P.F. image show tiff (just 1 page) blurry

This image is from scanner. I am using C# WPF to show image.But my problem is that image showing is not unclear. Below is my code( .xaml and .cs) .I found 2 ways to tranfer the file into image source. But both not work well. If you use any image view sofeware to open image, the image is very clear.  .xaml  <Window x:Class="WpfApplication2.MainWindow"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="MainWindow" Height="350" Width="525"     Loaded="WindowLoaded">     <Grid>         <Image Name="image"></Image>     </Grid> </Window>   .cs(just part of code)      private void WindowLoaded(object sender, RoutedEventArgs e)     {            string StrImage = @"ImageFilePath";         this.image.Source = FileToImageSource(StrImage);         //this.image.Source = FileToImageSource_2(StrImage);     }     //blurry     public static BitmapImage FileToImageSource(string strFileName)     {         byte[] bytes = File.ReadAllBytes(strFileName);         BitmapImage bitmap = new BitmapImage();         bitmap.BeginInit();         bitmap.StreamSource = new MemoryStream(bytes);         bitmap.EndInit();         return bitmap;     }     //blurry too     public static BitmapImage FileToImageSource_2(string strFileName)     {         BitmapImage logo = new BitmapImage();         logo.BeginInit();         logo.UriSource = new Uri(strFileName);         logo.EndInit();         return logo;     }   Update: i have try but failed image property : RenderOptions.BitmapScalingMode="NearestNeighbor" Stretch="None"   blurry image vs clear image


Transistor current control with collector feedback

In my last question,  I made a mistake.  The actual circuit seems like this   I am beginner in linear electronics and I am very interested to know how the output current of transistor is being controlled with Vin voltage.  1) OpAmp is being used as Open Loop gain Amplifier ? Vout = A (V+ - V-)  In LtSpice Simulation, when the sum of feedback current through 1 Ohm Sense Resistor and Vin is greater than 6V by almost 0.6V, the output of OpAmp gets saturated at +Vcc and transistor current Ic doesn't change anymore.  2) In case Feedback is providing at inverting terminal from Emitter, I might assume V+ = V- and hence Ve = V-, which solves the problem. In this case, i am not sure if V+ = V- for an opamp, it doesn't come to be true from simulation either.  What would be the relation of output current with input voltage?  Thanks in anticipation.


Inductive proof that ${2n\choose n}=\sum{n\choose i}^2.$

I would like to prove inductively that $${2n\choose n}=\sum_{i=0}^n{n\choose i}^2.$$  I know a couple of non-inductive proofs, but I can't do it this way. The inductive step eludes me. I tried naively things like $${2n+2\choose n+1}={2n+2\over n+1}{2n+1\choose n}=2\cdot {2n+1\over n+1}{2n\choose n},$$  But I don't think it can lead me anywhere. I would like the proof to be as simple as possible.


Am trying to deploy my application online. Every sql statements where written with PDO. I know how to do all sorts of validations and sanitization.  with the sample codes below. Am I protected against sql injection attack  connect.db  $db = new PDO ('mysql:host=localhost;dbname=mydbinfo;charset=utf8', 'root', 'ROOT123');   data.db  // select $query = $db->prepare('SELECT * FROM users where username = :username'); $query->execute( array(':username' => $_POST['username']) );   //insert  $ins = $db->prepare('insert into users(username)values(:username)'); $ins->execute( array(':username' => $_POST['username']) );


Show Active Connections to "Internet Sharing"

How can I view a list of devices that are connected to my Apple laptop via Internet Sharing (when it's enabled)? If a list doesn't exist, does Internet Sharing log DHCP requests and if so, where? Thanks.


Harder question, when missing an expert are far less treated, even if they are "good" questions

Easy question are answered quite quickly, there's a small competition on them, to get easy reputation points... But these will usually get zero score.  Better questions, which are usually harder, get higher scores, which gives motivation to ask better questions in the 1st place.  Here's the thing, if there are fewer experts on certain topics, There's less scoring on the questions and less solutions on questions that are a little harder.  The only solution that I'm familiar with, is the bounties, but isn't there any other mechanism, to encourage more experts to arrive to the site in the 1st place?  This is true less for StackOverflow - more depending on the specific field But even more so on sites with less users and less traffic...


Can I apply for Poland's visa appointment from different country if I'm different country citizen?

I need your help here  I m Indian Citizen and i want to apply for national visa for my collage , but the problem is i m not getting any dates in India , So can i apply for appointment from Malaysia because i have Malaysia tourist visa still valid for me ,  So please tell me can i book appointment in Malaysia because i can see dates available in Malaysia , So can i book them and go for the interview in Malaysia <  does it matter that where i m apply from ? its just an visa interview Right ?   i m sharing you link where i can my application screen shot for you  prnt.sc/ob4761 prnt.sc/ob47q6


I am wondering are there any standards for the order of signals on I2C header? We get many I2C devices on the market, but the order of pins on the headers is inconsistent and hence we may not be able to insert any I2C device to our board. For example, some devices have VCC GND SCL SDA, some of them have GND VCC SDA SCL and like this there are many combinations. I understand that I2C is typically used  within the board itself and hence order may not be defined. But the order of pins would matter for external devices that may be soldered directly to the header.


$\operatorname{Var}X \leq \frac{1}{4}$ for any random variable $X$ bounded in $[0,1]$?

I am not sure if it is trivial or if it is even true but a paper I am reading seems to use $\operatorname{Var}X \leq \frac{1}{4}$. I am fine with the obvious bound $\operatorname{Var}X \leq 1$ but curious if it can be even tighter as in $\operatorname{Var}X \leq \frac{1}{4}$. If the $\frac{1}{4}$ bound is not true, a counterexample is appreciated.


What is the function of the keyboard shortcut Ctrl+Y under Linux?

Below is excerpted from :     Some signals cause a process to stop: SIGSTOP (stop!), SIGTSTP (stop   from tty: probably ^Z was typed), SIGTTIN (tty input asked by   background process), SIGTTOU (tty output sent by background process,   and this was disallowed by stty tostop).      Apart from ^Z there also is ^Y. The former stops the process when it   is typed, the latter stops it when it is read.   I know what Ctrl+Z means under Linux, however, I don't know what Ctrl+Y does.  Any explanations?


How long will grease (from bacon or roast) keep in the fridge?

I kept all of the bacon grease from making bacon this weekend, and now I have a jar of solidified grease in the fridge. How long can I use this to impart bacony goodness to my fried vegetables before it goes bad?  What is the shelf life of the fat drippings from bacon, roast and other meats?


A subring of the field of fractions of a PID is a PID as well.

Let $A$ be a PID and $R$ a ring such that $A\subset R \subset \operatorname{Frac}(A)$, where $\operatorname{Frac}(A)$ denotes the field of fractions of $A$. How to show $R$ is also a PID?   Any hints?


Expressing your thoughts with "you" when speaking to someone

I've never thought about it but now that I  think of it..   In this conversation for example :  Person A : thanks for coming.  Person B : no problem.We fishermen have all the time on our hands right now. There're so few fish these days, you would think the sea was dead.  To who refers the " you would think " ?  The conversation partner (A) ? But that is just what B think why would (A) think that ?   People always use "you" instead of "I" when speaking their minds to someone even if they're talking about themselves. Why?    " A: Why do you you go that place?   B: that place is the best place in the world YOU don't get bored there there's always something to do." Why not I don't get bored?


Are large $p$ and $q$ values for ARMA models bad?

I've been learning about ARMA models in my time series course and noticed that for most ARMA($p,q$) models, $p$ and $q$ never really get larger than 3 or so. Is there a reason why models don't normally have larger values?  Thanks!


Conservation of energy when slowing an object down

If it takes energy to slow an object down, and then the object also loses KE, then how is energy conserved? Don't you have a net loss of energy?


Can you lookup a domains past nameserver & mx record history?

If is possible to find out which nameservers a domain was previously pointing too? I need to try and find where a domain was previously hosted so that I can try and gain access to an old hosted email account.   Any ideas?


1/2 solved - Error removing old /etc/fstab entry to mount HDD

I could use a pointer on fixing the fstab problem to restore earlier working order. I dont have owner in mnt directory and its all snafu. Thank you very much. I tried changing the mount point of a external HDD. Failed. This is the end. mount /dev/sdc  mount: /dev/sdc: can't find in /etc/fstab.  When mounting it with Disks this appears: Error mounting filesystem Error mounting system-managed device /dev/sdc1: unknown filesystem type 'nosuid,nodev,nofail,noauto,x-gvfs-show' (udisks-error-quark, 0) Editing mount options in Disks this appears: Error removing old /etc/fstab entry Didn't find entry to remove (udisks-error-quark, 0) Thank you again.


how to generate sha1 similar to git hash-object command

Any idea why git hash-object has different outcome from shasum and openssl commands ?   ➜ printf test | shasum a94a8fe5ccb19ba61c4c0873d391e987982fbbd3  -  ➜  printf test | git hash-object --stdin 30d74d258442c7c65512eafab474568dd706c430  ➜  echo -n "test" | shasum a94a8fe5ccb19ba61c4c0873d391e987982fbbd3  -


problem in sublime text 3 with spanish characters

I've just installed Ubuntu 14.10 and configured US international keyboard with dead keys.  In every app, when I type the ' char followed by a, I get a nice á char.  But in sublime-text-3 I get ´a...  And also the compose key is not working either...  Is there anybody else having the same problem?


Maybe this is in the app but I can't seem to find it.   I'd like to be able to control what's in the SE app's feed. Right now it seems to be a random collection of hot questions from the entire network; stuff I have no interest in. Is there a way to specify that I only want it to show items from certain sites on the network? Or a way to configure what type of items show up in there, reputation changes etc...


I was aprroved for an ESTA but THEN denied a US visa, can I still travel?

I applied for an ESTA and was approved, however the Question have you been arrested of an offence that caused serious damage to a person or building etc - I answered no as It was a fight I got into 18 years ago and I didn't think giving someone a split lip and black eyes was serious damage. To be on the safe side I decided to apply for a visa and lay out all the details and be truthful. I was then denied the visa. My question is does a visa denial cancel an ESTA? I looked at my ESTA status this morning and it still says approved, so can I travel on this? Time is of the essence as I was booked to leave in 8 days.


Emissive shader does not change much in changes of orders of magnitudes

I'm trying to make some LED lamp but the EMISSIVE feature doesn't react as I expect. I read on the Blender manual that the emission power is defined in Watts per Square Meter. It doesn't really seem to work the right way. From 0 to 1 it works well, but then, raising it to 10, it's not decuplicating the light, and even shooting it to 100000 won't really change much. You can see in the images how the change from 1000 to 10 millions doesn't change anything in the final image. For a test, I added an area light on top of the emissive model, and a 1 W light assigned to it makes faaaar more light than the emissive material. You can see the difference in the final image. What may be happening here? Now, I may trick and just use the area lamp, but I want to know what is happening so to know how to work in the future.        Real world sizes. Emissive surfaces are exposed, nothing in between. Actually, Eevee is not really lighting anything with the model, it just adds glow, a lot of it XD Tried in a brand new scene, same problem: emissive power doesn't do anything past a certain threshold. It looks like the power is logarithmic. You can download it here:  Also added the original file:


Find the number of ways to select three distinct digits from the set {0,1,2,...,9} if no two consecutive digits can be selected.

My answer to this is $8$ choose $3$ because of the non consecutive numbers, the $10$ choices go down to $8$ and we have to pick three digits.


Why do bits of paper stick to the CRT television screen?

Once i switched on my television and i noticed that bits of paper and pieces of string stick to it. I decided to conduct my own experiment and bought a headphone jack near the screen and there was a visible spark on the jack . Can anyone explain this phenomenon.


Canon EOS 70D - Err 01 - Communications between the camera and lens is faulty

I have the Canon EOS 70D with the standard 18-135 lens on it. The camera was working fine and I dropped the aperture down when taking a photo and the camera froze. I turned it off and when I turned it back on, I get the following message:  Err 01 - Communications between the camera and lens is faulty. Clean the lens contacts.  I took the lens off and put it back on - no change.  I then cleaned the lens contacts - no change.  I tried a different lens incase it was the lens - no change.  I tried with a lens attached - same error coming up.  I can't access any menu options etc, as soon as I turn the camera on - this error comes up and I can't do anything on the camera.  Can someone tell me how to fix this issue as I have a shoot in around 5 hours and this has happened.  Thanks


Usage of " 's " in is Franco a friend of Jamie's?

What is the difference between "is Franco a friend of Jamie's?" and "is Franco a friend of Jamie?"? Are both correct? What is more appropriate?


Why is "$P \Rightarrow Q$" equivalent to "$\neg Q \Rightarrow \neg P$"?  I am trying to understand why this does always apply, in terms of pure logic. Can you please explain it to me?


I am trying to match contents from one variable with another in JavaScript using regex

I am trying to match content on variable c to variable s and selecting the match but all I get is a black bracket or it repeats variable c.  var s = "flowing through a lava occasionally"; var c = "occasionally, sleep, and, oops"; var re = /(?:^|\W)c(\w+)(?!\w)/g, match, matches = []; while (match = re.exec(s)) {   matches.push(match[3]); } console.log(matches);


I want to know, how can i get the current timezone in php. I am using Wordpres Cms and want to filter out the product listing based on the timezone.  Let me know if there is any other alternative as well.  Thanks


How to let a VirtualBox guest (running Windows) access the Internet?

I have a VirtualBox virtual machine. The host machine runs Ubuntu. The guest (virtual) machine runs Windows XP. I googled this problem, and people claim that they fixed it by changing adapter type to NAT, but there is no such option for me:  Any idea? Update: It didn't work either, after just switching it to NAT. Here are the current settings (with all details shown):  Here's a screenshot of the guest showing some networking information: (Please note that this question is about how to give a VM Internet access in VirtualBox, so the presence of a picture of Windows doesn't automatically make this off-topic!)


Is multiplication not just repeated addition?

If multiplication is not repeated addition, what is it? How do you define multiplication? All of us had to memorize the multiplication table in elementary school, but how did they come up with it if so many people claim that it is wrong to think of it as repeated addition? Voodoo magic?


In R (2.15.2) I fitted once an ARIMA(3,1,3) on a time series and once an ARMA(3,3) on the once differenced timeseries. The fitted parameters differ, which I attributed to the fitting method in ARIMA.   Also, fitting an ARIMA(3,0,3) on the same data as ARMA(3,3) will not result in identical parameters, no matter the fitting method I use.  I am interested in identifying where the difference comes from and with what parameters i can (if at all) fit the ARIMA to get the same coefficients of the fit as from the ARMA.  Sample code to demonstrate:  library(tseries) set.seed(2) #getting a time series manually x<-c(1,2,1) e<-c(0,0.3,-0.2) n<-45 AR<-c(0.5,-0.4,-0.1) MA<-c(0.4,0.3,-0.2) for(i in 4:n){ tt<-rnorm(1) t<-x[length(x)]+tt+x[i-1]*AR[1]+x[i-2]*AR[2]+x[i-3]*AR[3]+e[i-1]*MA[1]+e[i-2]*MA[2]+e[i-3]*MA[3] x<-c(x,t) e<-c(e,tt) } par(mfrow=c(2,1)) plot(x) plot(diff(x,1))  #fitting different versions. What I would like to get is fit1 with ARIMA() fit1<-arma(diff(x,1,lag=1),c(3,3),include.intercept=F) fit2<-arima(x,c(3,1,3),include.mean=F) fit3<-arima(diff(x,1),c(3,0,3),include.mean=F) fit4<-arima(x,c(3,1,3),method="CSS",include.mean=F) fit5<-arima(diff(x,1),c(3,0,3),method="CSS",include.mean=F)  cbind(fit1$coe,fit2$coe,fit3$coe,fit4$coe,fit5$coe)   Edit: Using the conditional sum of squares comes pretty close, but is not quite there. Thanks for the hint for the fit1!  Edit2: I do not think this is a duplicate. Points 2 and 3 address different problems than mine, and even if I override the initialisation mentioned in point 1 by   fit4<-arima(x,c(3,1,3),method="CSS",include.mean=F,init=fit1$coe)   I still get different coefficients


Is there some rule against ending a sentence with the contraction "it's"?

I heard this lyric in a song the other day and it just sounded so wrong that I assumed it must be incorrect grammar, but I can't find any specific prohibition that applies.     That's what it's.    That rolls off your tongue with the grace of a moose in a tutu, but I can't figure out why.  There is clearly no problem with ending other sentences with a contraction. These sound fine.     I thought I could, but I can't.   Stop touching that, it will fall off if you don't.   You say that the sky is green, but it isn't.   Also, it sounds just fine if you remove the contraction:     That's what it is.   So what's up with this construction? Should it be avoided?


Why in a C++ template, declaring a vector member variable as static will produce linker error but inline static will not?

I cannot explain the following (using  C++20 rules) //FooTemplate.h template<typename T> class FooTemplate { private:    static std::vector<T> t; //linker error.    //inline static std::vector<T> t; --> will not produce linker error    //static T t; -->this works also with the appropriate changes in the following code public:     static void setT(T t1)     {         t.push_back(t1);     }     static T getT(int i)     {         return t.at(i);     } };  //main.cpp #include"FooTemplate.h" int main() {   FooTemplate<Foo>::setT(Foo{});   FooTemplate<Foo>::getT(0); }  I have to inline the static member t in order for it to work. If I do not use a templated container (e..g define T t instead of vector<T> t it also works. Any idea?


How to stop OS X from writing Spotlight and Trash files to memory cards and USB sticks?

When plugging a USB stick into a Mac, OS X creates a number of hidden files on the stick, including a Spotlight index and Trash folder.  Example from the terminal for a USB stick "Untitled":  $ ls -a /Volumes/Untitled .Spotlight-V100 .Trashes ._.Trashes .disk .fseventsd   It even does this on the xD memory card for my camera, so after having copied my pictures and deleted them from the card, the card is still full.  Is it possible to turn this off for USB and memory cards, so OS X either writes these files to the primary disk or doesn't write them at all?


NullPointerException on ImageIcon Debugging test

When running this program I get this error code thrown back:     java.lang.NullPointerException     at javax.swing.ImageIcon.<init>(ImageIcon.java:217)     at DebugMe.<init>(DebugMe.java:16)     at DebugMe.main(DebugMe.java:31)   However no errors are being thrown within the compiler itself. The "debug.jpeg" image is within the same folder that the program is being run from as well.  import java.awt.*; import javax.swing.*;  public class DebugMe extends JFrame {     private String message = "Congratulations, the program is working again.";     Image debug = new ImageIcon(this.getClass().getResource("debug.jpeg")).getImage();     int x; //Initialized x      /**      * Constructor for objects of class DebugMe      */     public DebugMe()     {         x = 0;         setSize(500, 500);         setVisible(true); //Lowercase t on true     }      public static void main(String[] args)     {         DebugMe myDebugMe = new DebugMe(); //capitalized me in Debugme         int x;     }      public void paint(Graphics g)     {         super.paint(g);         g.drawString("message", 100, 100);         g.drawImage(debug, 100, 200, Color.BLUE, this);     } }


What is the best way to fix a stuck pixel on an LCD screen?

I have an LCD screen with a pixel that is stuck ON (that is, bright). What do you suggest to fix it (it's not a dead pixel)?


Problems with the Drivers for Ralink RT3290 Wi-Fi Adapter

After upgrading to Ubuntu 13.10, Ralink RT3290 Wi-Fi Adapter in my laptop dosen't work. So I followed the guide in  to compile the driver and load it manually. It seemed that the module was loaded successfully, for I got the following outputs:  forever41200@forever41200:~$ lsmod | grep -in rt3290sta 26:rt3290sta            1170462  0   forever41200@forever41200:~$ modinfo rt3290sta filename:       /lib/modules/3.11.0-13-generic/kernel/drivers/net/wireless/rt3290sta.ko version:        2.6.0.0_rev1 srcversion:     3D39532F027115378BDBC79 alias:          pci:v00001814d00003290sv*sd*bc*sc*i* depends:         vermagic:       3.11.0-13-generic SMP mod_unload modversions  parm:           mac:rt28xx: wireless mac addr (charp)   But the driver used for Ralink RT3290 Wi-Fi Adapter didn't change. It still used "rt2800pci" instead of "rt3290sta".  forever41200@forever41200:~$ sudo lspci -v  02:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe         Subsystem: Foxconn International, Inc. Device e055         Flags: bus master, fast devsel, latency 0, IRQ 44         Memory at f7d10000 (32-bit, non-prefetchable) [size=64K]         Capabilities: [40] Power Management version 3         Capabilities: [50] MSI: Enable+ Count=1/32 Maskable- 64bit+         Capabilities: [70] Express Endpoint, MSI 00         Capabilities: [100] Advanced Error Reporting         Capabilities: [140] Device Serial Number 00-00-89-bc-3a-3f-76-b8         Kernel driver in use: rt2800pci  02:00.1 Bluetooth: Ralink corp. RT3290 Bluetooth         Subsystem: Foxconn International, Inc. Device e056         Flags: bus master, fast devsel, latency 0, IRQ 3         Memory at f7d00000 (32-bit, non-prefetchable) [size=64K]         Capabilities: [40] Power Management version 3         Capabilities: [50] MSI: Enable- Count=1/32 Maskable- 64bit+         Capabilities: [70] Express Endpoint, MSI 00         Capabilities: [100] Advanced Error Reporting         Capabilities: [140] Device Serial Number 00-00-8a-bc-3a-3f-76-b8   So I add "rt2800pci" and "rt2x00pci" to blacklist, I had also updated initramfs. But it still didn't use "rt3290sta". It said the Wi-Fi adapter was using "rt2860".  forever41200@forever41200:~$ sudo lspci -v  02:00.0 Network controller: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe         Subsystem: Foxconn International, Inc. Device e055         Flags: bus master, fast devsel, latency 0, IRQ 17         Memory at f7d10000 (32-bit, non-prefetchable) [size=64K]         Capabilities: [40] Power Management version 3         Capabilities: [50] MSI: Enable- Count=1/32 Maskable- 64bit+         Capabilities: [70] Express Endpoint, MSI 00         Capabilities: [100] Advanced Error Reporting         Capabilities: [140] Device Serial Number 00-00-89-bc-3a-3f-76-b8         Kernel driver in use: rt2860  02:00.1 Bluetooth: Ralink corp. RT3290 Bluetooth         Subsystem: Foxconn International, Inc. Device e056         Flags: bus master, fast devsel, latency 0, IRQ 3         Memory at f7d00000 (32-bit, non-prefetchable) [size=64K]         Capabilities: [40] Power Management version 3         Capabilities: [50] MSI: Enable- Count=1/32 Maskable- 64bit+         Capabilities: [70] Express Endpoint, MSI 00         Capabilities: [100] Advanced Error Reporting         Capabilities: [140] Device Serial Number 00-00-8a-bc-3a-3f-76-b8   That's weird because I can't find the "rt2860" module in my system.  forever41200@forever41200:~$ lsmod | grep -in rt2860  forever41200@forever41200:~$ modinfo rt2860 ERROR: Module rt2860 not found.   Then I added "rt2860" to blacklist, however, nothing happened.  With the "rt2860" module, the Wi-Fi adapter do work at first, but a few minutes later the whole Linux system crash. Error messages I got were:    It mentioned "rt3290sta", and that makes me more confused about whether the driver in use   is "rt2860" or "rt3290sta".  By the way, After adding "rt2800pci" and "rt2x00pci" to blacklist, Ralink RT3290 Wi-Fi Adapter was no longer named "wlan0"; it was named "ra0".


What should I do if I submitted an article to a predatory journal?

Call it stupidity or bad luck but I am guilty of submitting my research article to a journal which is listed in .  It is my first article and I don't have much experience publishing articles. I was searching for a top impact factor journal and found this one on Google and in excitement sent my article (word and pdf files) in this journal a few days ago, only to discover later that this might be a bogus journal.  Now I am worried about that what will happen to my article. What if they plagiarize my paper, or send it to another journal not giving me credit?   My question is that what should I do now? Should I send my article to a reputable journal now? What should be the process? What if it is flagged for fraud by that journal? What are my options?  Any help would be appreciated.


ubuntu 12.04 admin password account disabled

i have ubuntu lts 12.04 i wanted to make a new administrator.....i created a new user..made it admin and made the earlier user standard....but accidentally the new admin user password says "account disabled"...  now  i can only log in with earlier user(standard) and not with admin...... i tried recovery mode in the recovery mode it asks for "root password for maintenance"...which i don't know.... also if i try to solve using terminal in earlier user it says "user not in sudoers file.This incident will be reported"........... how can i access the admin account or create a new one......help


Let $\emptyset \not = X\subseteq \Bbb{R}^n$ be convex and compact and let $\cal{A}$ be a family of affine maps from $\Bbb{R}^n$ into $\Bbb{R}^n$ such that $X$ is invariant under each element of $\cal A$ and $f\circ g = g\circ f$ for any $f, g \in \cal A$. I am trying to show that elements of $\cal A$ have  a common fixed point which is in $X$.  Any idea or references would be helpful.


How can I display a short chapter name in the header and a long chapter name in the ToC?

I am writing a book and one of my chapters has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the   \chapter[short title]{long title}   command. But then, "short title" appears in the table of contents instead of the original/true/long one.  How can I have the "short title" in the header of even pages, and the "long title" in the ToC and in the "Title header"?  For reference, here is the code I use:  \documentclass[11pt,a4paper]{book} \begin{document} \tableofcontents  \chapter[Short title]{Very vey very very very very very very long title     i can't display in the header} Lorem ipsum dolor sit amet, consectetur adipiscing elit. \end{document}


“He is small enough to walk.” But baby wasn't walking so why didn't they use “small” instead of “small enough”?

I'm confused because in my textbook there's a sentence:  He is small enough to walk.  because baby was so small that he couldn't walk. Why didn't they just use small instead of small enough?


How do I know what VM settings (esp. heap sizes) to use in eclipse.ini

I'm not a Java VM expert, and certainly not an expert in how Eclipse uses its VM. I've just installed Eclipse on a(nother) machine of mine, and I want to make some eclipse.ini changes. I know what XXMaxPermSize, Xms and Xmx mean, basically, but how do I adjust them to the combination of my Eclipse version, my word size, my Windows version, my CPU, my memory and my usage profile (which language, what kind of codebase size etc.)?  Note I'm not asking for the specific settings you would recommend for my own machine - but how to go about doing that. Also, the supposed-duplicate got answers about one or two specific Eclipse versions, focusing on shortcomings of JVMs at that time; so in the context of my question this might translate into "one consideration/limiting factor would be deficiencies in the current version of the JVM you're using" and then "here's what I know about those" or "see XYZ for a list of them".


I want a shell scripts to delete ALL files in a dir, BUT NOT dir

I am doing this  rm -r users/path/DIR/ *   and it deletes DIR.  I want to delete all contents of DIR without deleting DIR.  I also want to execute this shell script while being in root dir.  ANSWERED:   rm -rf   instead of rm -r


A subring may have a different identity,why?

Let $R$ be a ring with unity $1_R$. Suppose $S$ is a subring but it does not contain $1_R$. But still it may contain a subring unity $1_S$. For example $R=M_2(\mathbb R)$ and $S$ be the set of all matrices with first entry in $\mathbb R$ and the rest three $0$. Then the element with first entry $1$ and rest three zero is identity of $S$. Why is this happening?It seems a bit weird to me. We can also take the example of $\mathbb Z_6$ and its subring $\{0,3\}$.  I have searched for the answer to this question in stack exchange but the answers, although they have no problem, is out of my scope of understanding as I am a beginner of Ring theory.


Is quotient of a ring by a power of a maximal ideal local?

Say I have a commutative ring $R$ with a maximal ideal $m$. Then $m/m^k$ is a maximal ideal in $R/m^k$ for any $k$. Is it the only maximal ideal, i.e. is $R/m^k$ a local ring?    This is a well known result for $k = 1$, as $R/m$ is a field. It seems to be true in other cases, e.g. $p\mathbb{Z}\subset \mathbb{Z}$ for prime $p$ and for $(x,y) \subset \mathbb{F}[x,y]$, the maximal ideal generated by $x$ and $y$ in a polynomial ring over the field $\mathbb{F}$.   Equivalently, if an element $x\notin m$, is $x + m^k$ an invertible element in $R/m^k$?


Show users a different page (depending on their role) after logging in

In my site I have two different roles for users named recruiter and candidate. when they register their account they can choose their role (recruiter or candidate). And when they login my site I will check user is recruiter or candidate. after this check I will show them a different page (recruiter page and candidate page).  How to proceed with this?


App crashes on java.lang.NullPointerException:

M using #helpshift app got crash or initializetion of help shift. please follow the logs   java.lang.RuntimeException: Unable to start service com.helpshift.support.HSRetryService@1aba47b with Intent { cmp=com.quizup.core/com.helpshift.support.HSRetryService }: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase android.content.Context.openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase$CursorFactory, android.database.DatabaseErrorHandler)' on a null object reference     at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4079)     at android.app.ActivityThread.access$2400(ActivityThread.java:221)     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1897)     at android.os.Handler.dispatchMessage(Handler.java:102)     at android.os.Looper.loop(Looper.java:158)     at android.app.ActivityThread.main(ActivityThread.java:7224)     at java.lang.reflect.Method.invoke(Method.java)     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase android.content.Context.openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase$CursorFactory, android.database.DatabaseErrorHandler)' on a null object reference     at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:223)     at android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:187)     at com.helpshift.support.storage.ProfilesDataSource.read(ProfilesDataSource.java:27)     at com.helpshift.support.storage.ProfilesDataSource.getProfile(ProfilesDataSource.java:61)     at com.helpshift.support.ProfilesManager.getProfile(ProfilesManager.java:25)     at com.helpshift.support.ProfilesManager.getProfileId(ProfilesManager.java:34)     at com.helpshift.support.HSApiData.getProfileId(HSApiData.java:2059)     at com.helpshift.support.HSApiData.sendFailedMessages(HSApiData.java:1626)     at com.helpshift.support.HSRetryService.onStartCommand(HSRetryService.java:17)     at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4062)


I tried to collapes the screen by pulling the thing onto the new screen. However, it isn't doing anything? I don't know why not. I also can't open the properties tab. When I push "n" it doesn't open the right tab. (I want to open the particles tab)


What is that "1 view" which automatically appears after submitting a question?

Are the questions submitted on SO and other SE sites initialized with 1 view, or does the first view belong to the user who posted it?  Why is a question given a free first view? It just appears, as soon as the question is published.


When we express the nearest past, can we use 'present perfect'?

In the various usage of present perfect, I heard that there is a usage of expressing the nearest past like 'I've kicked the dog.' What percentage we used 'present perfect' to express 'the nearest past' in all usage of present perfect?


What happens when a wood elf and a dark elf have a child?

In my D&D 5e campaign one of the PCs who's a wood elf started dating a dark elf, and as a result she got pregnant and she is about to give birth. One of the other players had their PC die and he is considering playing as the child of the couple.  My question is, which race is the child going to be?


I am working on an atlas project in qgis 3 that is basically roads, towns, and other features for a quite large area. What I would like to add, is an index of all the towns in the atlas area with at least the page number, if not also a grid coordinate. My towns are all in a single layer, so I'd like to use that for my data.  Is there any way besides doing it manually? I can't seem to find any documentation or examples that would show how to do it.


Proving a group of order 343 is not simple

Hi I need help with proving a group of order 343 is not simple. Since a group of order 343 is a 7-group, I believe the proof will involve the use of G's nontrivial center and class equation. I am just not sure how to start this proof. Thanks.


Conversion problem using standalone and imagemagick

I'm trying to convert a table to png format using Imagemagick  \documentclass[12pt,a4paper,border=8pt,convert=true]{standalone}  \usepackage{booktabs} \usepackage{caption} \usepackage{siunitx} \sisetup{binary-units = true,          table-format=7.0}  \begin{document}      \minipage{1.08\textwidth}     \addtolength{\tabcolsep}{-1.0pt}     \begin{tabular}{lS[table-format=6.0]             S[table-format=6.0]             S[table-format=6.0]             SSS}         \toprule         Device & 2011 & 2012 & 2013 & 2014 & 2015 & 2016 \\         \midrule         Non-smarthphones & 22686 & 55813 & 108750 & 196262 & 357797 & 615679 \\         Smarthphones & 104759 & 365550 & 933373 & 1915173 & 3257030 & 5221497 \\         Laptops e Netbooks & 373831 & 612217 & 917486 & 1340062 & 1963950 & 2617770\\         Tablets & 17393 & 63181 & 141153 & 300519 & 554326 & 1083895\\         Home gateways & 55064 & 108073 & 180562 & 267545 & 376494 & 514777 \\         M2M & 23009 & 47144 & 92150 & 172719 & 302279 & 508022 \\         Altri devices & 525 & 1460 & 5429 & 22966 & 84204 & 242681\\         \bottomrule     \end{tabular}     \captionof*{table}{Traffico mobile globale al mese per dispositivo in \si{\tera\byte}}     \endminipage  \end{document}   Here it is the table create using standalone package. I read the documentation and it says to use ImageMagick. The problem is when I compile it doesn't find the exacutable imgconvert.exe. So I put this exacutable into folder where there is tex file. Now when I compile I got another error:  imgconvert.exe: `%s' (%d) "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE  -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2  "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r300x300"  "-sOutputFile=C:/Users/MAZZAR~1/AppData/Local/Temp/magick-31681PKeFVHE065o"  "-fC:/Users/MAZZAR~1/AppData/Local/Temp/magick-3168A-Fab6j3iIUc"  "-fC:/Users/MAZZAR~1/AppData/Local/Temp/magick-3168QXzuvG_UAP07"  @ error/utility.c/SystemCommand/1890. imgconvert.exe: Postscript delegate failed  `table.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/678. imgconvert.exe: no images defined `table.png' @ error/convert.c/ConvertImageCommand/3066.


How to improve omega-3 fatty acid absorption?

I'm going to add an omega-3 supplement in my diet using encapsulated fish oil pills. I want to know how can I improve its absorption, and also understand why. That is the boundary conditions:   when, empty stomach or after the meal how, paired with "friends" foods   e.g.: I've read  that you can maximize the absorption if you eat pills paired with milk or not-fermented cheese, like mozzarella.  EDIT: introduction of omega-3 is by encapsulated fish oil pills EDIT2: as @cloudnyn3 pointed out, I want to know the best conditions which let the pills to be best absorbed


What type of phrase is the highlighted part in the following sentence?


When I first installed Ubuntu it gave me the option of encrypting the install.  At the time I opted not to do so.  I am interested in doing so now.  I know there are speed considerations, but I am not concerned with them.  Do I have to do a clean install of Ubuntu to get the full disk encryption or can I do it right from the running OS..?!


Does Ubuntu install alongside Windows 7?

Does Ubuntu run alongside Windows 7? How much space does it need? Using Windows Installer LTS.


kernel_task is using 90% CPU, what could be the cause?

I have a 13" MBP late 2009, 2.53 GHz, 4 GB RAM, and on OS X 10.8.3. As soon as I boot up the fans start going at the highest rpm and like I mentioned the kernel_task is always at around 90% when no apps are being run. I read somewhere that I should try safe boot and see the effect but there is none. Any ideas as to what is causing it?  Thanks


I use Japanese a lot. Is there a way I can just get Japanese to be in the document like latin characters? I don't want to have to use \begin{CJK}\end{CJK} everytime like in


The badges for editing posts explicitly exclude tag edits. I understand why - they are supposed to reward substantial edits.  At the same time, tags are useful, necessary, for how Stack Exchange works: they are needed so people can find relevant questions, and so people can be notified there's a question they might be able to answer. So, it follows that someone who spends time correcting tags on questions does a service to the community.  So could there perhaps be some separate badge for editing tags? "Edited tags on 250 questions - Silver, Edited tags on 1000 questions - Gold", or something like that?


Verify the identity: $\tan^{-1} x +\tan^{-1} (1/x) = \pi /2$

Verify the identity: $\tan^{-1} x + \tan^{-1} (1/x) = \frac\pi 2, x > 0$  $$\alpha= \tan^{-1} x$$  $$\beta = \tan^{-1} (1/x)$$  $$\tan \alpha = x$$  $$\tan \beta = 1/x$$  $$\tan^{-1}[\tan(\alpha + \beta)]$$  $$\tan^{-1}\left [{\tan\alpha + \tan\beta\over 1 - \tan\alpha \tan\beta} \right]$$  $$\tan^{-1}\left[ {x + 1/x\over 1- x/x }\right]$$  $$\tan^{-1}\left[{x + (1/x)\over 0} \right]$$  I can't find out what I'm doing wrong..