Myself is used as the object of a reflexive verb (“I hurt myself”), as an intensifier (“I myself will go”), and can be used in  (“for my wife and myself it was a happy time”)  What are the similarities and differences between the following?  worsens my confusion.  1. For me it was a happy time. 2. For myself it was a happy time.  I am guessing that in 1, me is an object pronoun, and in 2, myself  is , but this link states:  While English intensive pronouns (e.g. myself, yourself, himself, ourselves, yourselves, themselves) use the same form as reflexive pronouns, an intensive pronoun is different from a reflexive, because the pronoun can be removed without altering the meaning of the sentence.  Yet in 2, 'myself' CAN'T be removed? Obiter dictum: Here's another link on .


Likelihood is "proportional to a probability". Which one?

In various places (see quotes below) it says that the likelihood is "proportional to a probablility". Which probability is it proportional to?   In the context of Bayes theorem, it is not proportional to the posterior probability, unless the prior is constant. If we denote the likelihood as $P(B|A)$ viewed as a function of $A$ with $B$ fixed, this is also not proportional to $P(B|A)$ viewed as a function of $B$ with $A$ fixed.  I give an example below. If the likelihood is proportional to a normalized form of itself,  then ok, but that seems like a very trivial statement!   That this question is related to another recent question,  but it is different. That other question disputes the quotes, asking how can likelihood be related to the probability $P(B|A)$ using a single constant of proportionality. This question accepts the quotes but asks for clarification to identify which probability is the one that is mentioned in the quotes.  This is self study, and of course I understand that one or more of my assertions in these questions must be wrong. It is just my way of explaining my incorrect understanding that leads to the question.  QUOTES  "likelihood is proportional to a probability"  A similar statement is in the book Think Bayes: "likelihood doesn't need to compute a probability, it only has to compute something proportional to probability"  EXAMPLE: $P(B|A)$ as a likelihood is not proportional to $P(B|A)$ as a probability density   A simple case, a PMF that is parameterized only by a single parameter $M$.  It assigns probabilities to integer values,  and the parameter translates the PMF on the integer axis. Here is the PMF for the fixed parameter value M=5: $$ \begin{align*} &  P(X=5|M=5) = .5  \\ &  P(X=6|M=5) = .3  \\ &  P(X=7|M=5) = .2  \\ \end{align*} $$ (and other values zero).  And the PMF for parameter value M=6: $$ \begin{align*} &  P(X=5|M=6) = 0  \\ &  P(X=6|M=6) = .5 \\ &  P(X=7|M=6) = .3  \\ &  P(X=8|M=6) = .2  \\ \end{align*} $$ More generically, the PMF is like P(X=M)=0.5, P(X=M+1)=.3, P(X=M+2)=.2, zero otherwise.  Now consider the likelihood form of this, where the data is given as the fixed value X=5 and the parameter $M$ varies: $$ \begin{align*} &  P(X=5|M=3) = .2  \\ &  P(X=5|M=4) = .3 \\ &  P(X=5|M=5) = .5  \\ \end{align*}] $$  So in the PMF case the shape is (.5,.3,.2),  whereas in the likelihood case the shape is (.2,.3,.5).  There is no single constant of proportionality that relates these.


Do you lose your prestige class features when you no longer meet its requirements?

Certain prestige classes detail a list of requirements that are possible for the player to lose (alignment, casting at a certain level), but not what happens if you no longer meet those requirements (acting in an opposed way to your alignment, suffereing from energy drain). Some classes and prestige classes do detail what happens if you no longer meet your requirements, but not all do so.  So I am asking: if you no longer meet the requirements of your prestige class by choice or external influences, will you lose the class features gained from it, despite this loss not being detailed in the class itself?


Determine if the integral converges $\intop_{1}^{2}\frac{\sin\left(x\right)}{\log\left(x\right)}$

I want to determine if the following integral converges $$\intop_{1}^{2}\frac{\sin\left(x\right)}{\log\left(x\right)}dx$$ My intuition tells me it diverges. I thought the way to solve that woudln't be by definition but by finding another function that is smaller than that and use integral comparison test. I also know that $$\lim_{x\rightarrow1}\log=0$$ but I don't see how that helps me


Can I have two different GPU in my motherboard

I would like to know if i can install second GPU card in my motherboard msi 970 here are the specs    it has two slots for GPU and i have geforce gtx 1050 ti in one of them but i was wondering if i could put some old cheap GPU in the second one and hook up couple more monitors to it for simple work related tasks,  I'm not sure if i can have to have two different GPU or do i need same models?  Basically I'm trying to achieve 4 monitor, I already have two monitors connected right now and I don't need a second expensive gtx 1050 for handling extremely simple tasks.  If I can do it will I be able to drag programs between all monitors?  For example what happens if I have a power hungry software like Adobe Photoshop open in between monitors that are being run by different GPU's?


Is there a way to restrict blender renders to a predetermined 256-color palette?

I suspect there isn't, as this sort of thing is rather retro these days. But any help would be appreciated!


Purpose of Indian man concerning little boy in Lion

I wonder what was the intent of the suspicious man from 2016 movie Lion who met little Sheru at the lady's apartment, fluently estimated his physical qualities and wanted to take the boy with him.


I'm using lualatex 0.95 and up-to-date bm package. Before updating lualatex, I could always use \bm{} but I can't use it any longer.  Compile seems to go with no problem.  Here is the code.  \documentclass{ltjarticle} \usepackage{luatexja} \usepackage{bm}  \begin{document}  \bm{a}  \end{document}   How can I solve this problem?    Other people have the same problem.  Japanese Forum   StackExchange   StackExchange     Thank you in advance.


Prove the irrationality of $0.235711131719...$

How can I prove that the number formed by concatenating the primes in order i.e. $0.235711131719...$ is irrational.  I know I have to demonstrate that it has no period, but I'll be so thankful if someone can explain very clear, including all cases.


Why do the operators on either side of Schrodinger's equation show different hermitivity?

Schrödinger's Equation states that: $$i\hbar \frac{\partial \psi(x,t)}{\partial t}=H \psi(x,t).$$  Now the Hamiltonian operator, $H$ is hermitian as long as the potential $V(x)$ is a real valued function of position only. And when $V(x)$ becomes a complex valued function, or depends on $\hat p$, $H$ is no longer hermitian.  But, on the other hand, $i\hbar \frac{\partial}{\partial t}$ is anti-hermitian throughout, as $i$ is anti-hermitian and $t$ is a parameter only.  Why is it that $2$ operators on two sides of an equation, $H$ and $i\hbar \frac{\partial}{\partial t}$ performing similar operations on $\psi$ but exhibiting different hermitian behaviour? This happens to go against my intuition.  Is this thing normal by any means?  Correct me if I am wrong in my argument.


Is this academic organization a predatory one?

I was reading about this organization that is called SAI () which has a number of journals and conferences indexed in Scopus, but I am a little bit dubious if it should be considered a predatory one or not. I see that this organization appears in the famous or infamous Beall´s list (), so should one avoid to publish its research in the venues organized by this organization? I have seen in Scopus that some of their papers are cited from other conferences hosted by ACM, IEEE or from journals from Springer. Bottomline, does anybody has any experience with his association or with the journals or conferences that they organize?  Thanks


Should we be taking legal action against the network for possible breach in labour laws with moderators

People need to argue the validity of whether or not the network is breaking the law and if this ok and what should be done about it. Discussion about my intentions, motivations or personality are off topic for the purposes of this discussion.    This question is the next step from this:    and in a similar spirit of this:      As mentioned in this , taken from :  Any argument defending the Stack Overflow company that the moderator volunteers served for possible education reasons, would be countered by the fact people profited from the site.  It would seem that  under the laws of New York, where the company resides, utilising a volunteer or unpaid workforce is contravening the law. It seems moderators should be paid a minimum wage.  Should the people who have worked on the site as moderators form some type of union and take action against the site seeking remuneration?  What are people's thoughts and what should our next steps be?  in response to comments: It's not a burn the house down sentiment at all.     It's a simple case of finding out if the business is breaking the law and that if they are, this needs to be rectified. If they are breaking labour laws, this is not ok. It's not a matter of opinion, it's a matter of the law.    TL DR  If the company is breaking the law, they shouldn't be breaking the law. It's that simple.


I just purchased a domain on Dreamhost, let's say foo.com. I already have hosting, let's say at 123.4.56.789, and have setup a directory foo.com which is accessible at 123.4.56.789/foo.com/. I can set the DNS to point foo.com to that IP, but how do I route it to that folder once it's there? My hosting has a really bad cPanel that gives me almost no help. Can I use .htaccess, or something else? What's the best way to accomplish this?  Edit in response to comment(s): It's VPS hosting, so I have access to http.conf and other system files. Also, yes it's Apache.


Biblatex command that prints a bibliography entry

Is there a biblatex command that prints a bibliography entry? A command that prints this entry for example: Prunescu and Sin 2013 - Bioresource Technology Vol. 150C, p. 393-403 which is defined in my .bib file.  I need it on a slide in beamer.


Unable to show div element on click of dynamically added li

I have a label All Models. On the click of this label i dynamically add ul to div  $("#MetricsTypeYearModelList").append('

');   "MetricsTypeYearModelList" is the id of my div. After this i loop over a JSON object and add li dynamically to this ul  for (var i = 0; i < metricsTypeYearModel.length; i++)     {         var obj = metricsTypeYearModel[i];         if(i == 0)             $("#MetricsTypeYearModelListUl").append('
 '+obj.ModelTypeName+'
');         else             $("#MetricsTypeYearModelListUl").append('
 '+obj.ModelTypeName+'
');     }   After loading this, i want to click the first element of li. $( '#TestClick' ).trigger( "click" ); Problem is that when i click on the label, the div does not show up, but when i remove $( '#TestClick' ).trigger( "click" ); the div shows up. What can be the possible issue.  JS is:  $(document).on('click', 'li.pModel', function (e) {             e.preventDefault();             e.stopPropagation();             var identifier = fetchIdentifier(this);             var iHandle = $("#" + identifier); // fetch container              $(this).siblings().removeClass('active');             $(this).addClass('active');             // $('li.mModel').removeClass('active');              iHandle.find('ul li.mModel').removeClass('active');             iHandle.find('ul li.cModel').removeClass('active');             iHandle.find('ul li.mModel').fadeOut();             iHandle.find('ul li.cModel').fadeOut();              iHandle.find('ul li.mModel[data-parentid="' + $(this).data('id') + '"]').fadeToggle();             iHandle.find('ul li.mModel[data-parentid="' + $(this).data('id') + '"]:first').addClass("active");                iHandle.find('ul li.cModel').fadeOut();             iHandle.find('ul li.cModel[data-parentid="' + iHandle.find('ul li.mModel.active').data('id') + '"]').fadeToggle();         });   I want to call this JS method from the code for the first li element when i click on the label i.e. i want to click the first li element programmatically.


Inequality involving Euler-Mascheroni constant

I would like to solve the following problem from 'Real Analysis and Foundations' by S. Krantz.  Let $a_n = 1+\frac{1}{2} + \frac{1}{3} + \cdots + \frac{1}{n} - \log{n}$ and $\gamma$ be the Euler-Mascheroni constant. Show that $$\vert a_n - \gamma \vert \le \frac{C}{n}$$ for some universal constant $C>0$.  I have no clue how to solve this problem. From searching various sites it seems that $C=\frac{1}{2}$ but I am not sure with this, too. Thanks in advance.


I have to create a list of Student which contain name and roll number of student but when i am creating new object of class student ad appending it to my list every object in list are changed and getting same data for all student  what should i do??  Code:  class Student:     name = 'abc'     roll_no = 1      def print_info (self):         print(Student.name,"\t",Student.roll_no)      def input_info (self):         Student.roll_no = int(input("Enter Student roll number  "))         Student.name = input("Enter Student name  ")  ch=1 students = []  while ch!=3:     print("1.Create new Student\n2. Display students\n3.Exit")     ch=int(input("Enter choice\t"))`enter code here`     if ch==1 :         tmp=Student()         tmp.input_info()         students.append(tmp)     elif ch==2:         print("---Students Details---")         print("Name\tRoll No")     for i in students:         i.print_info()   Output:


UBUNTU 16.04 TERMINAL NOT ABLE TO INSTALL/UPDATE ANYTHING

My terminal is not able to download/update/upgrade anything at all. When i type sudo apt-get update, i get this - 0% [Connecting to "IP Address"] and it just stays that way. Doesnt download or update anything. Mind you my laptop is connected to wifi during this process. Why isnt my terminal?


Joe said, "You're awesome."  "Why thank you," Mel replied.  Should there be a comma after "Why"?


How can I make programs open on a specific monitor?

I've read a bit about window managers, but I'm not sure if that's what I need or not. I'm using my Maverick laptop at work with an external monitor added and set so they don't mirror. I've used a Mac at work up until recently (although Linux at home) and admit that I've been a bit spoiled with their Spaces and app handling - you can, in the settings panel, indicate that a specific app should always open on a specific monitor. So, for example, I want my IDE to always open on the larger external monitor, while Thunderbird should always open on the small laptop screen.  Is there a way to do this in Ubuntu?


Counting overlapping polygons from one Shapefile using ArcGIS Desktop?

I have a shapefile with 16,400 polygons. Each polygon shows the expansion of a bird species for the whole world.    Now I have to count the overlapping polygons. I tried it with union and dissolve (count the union), but the union is not working for so many polygons.   Then I tried to clip continents, but this is also not working because of the huge number of polygons. Moreover I tried this  , also without success.   Therefore I'm asking you I there is a way to count overlapping polygons if 16400 polygons are in one shapefile?   I'm working with 10.0 and can work with 10.2. An ArcPy solution is also wonderful.   At the moment I am thinking about creating a fishnet and iterate over the rows of the shp with the 16400 polygons and write 1 to a value field of a fishnet cell if the polygon is in this cell and than take the next row (polygon) and if this is also in the fishnet cell count +1.   But I don't know if this is a good solution and how to realize it. Or I have to learn R to use this   The result: It should be a shape where you have new polygons out of the overlapping ones and a field where the overlaps are counted.    So in the end there should be a shapefile where you can see how many bird species are found at the same place.


How can uniformity of hash functions (e.g. SHA-256) be proved?

In reading about the  protocol I noticed how much its proofs-of-work apparently depend on  of the SHA-256 hash function. And so  presumably do many other applications.  How do researchers go about proving uniformity of proposed hash functions? Is it just an empirical matter of running many inputs through the function and observing the distribution of outputs, or can one formally prove the property? Where could one (non-crypto-expert) learn about how such proofs are constructed and look one up e.g. for the case of SHA-256?


Transport services from Gatwick to London

I would like to travel to London next week but I don’t know exactly how to get from Gatwick airport to London downtown. I was thinking about a transport service like Uber.  I don’t really like to go by train/underground or bus because then I have to change too often. And a cab is probably too expensive. Can anyone give me some information about the situation with transport services?


I just updated to Ubuntu 20.04 LTS and my super key has lost its main functionality. Previously in Ubuntu 18.04LTS, I was able to click the super key and the applications drawer would show. Now it doesn't do that. I can still open it by clicking super+a but it's annoying that it doesn't do that.  I restarted my machine and still nothing.


java.lang.OutOfMemoryError: Java heap space with NetBeans

This is the error I get when I run my web application in an instance of the Tomcat servlet container started by NetBeans. To fix this I even changed the heap size in netbeans.conf, but still it shows the same error. How can I keep this from happening?   HTTP Status 500 -   --------------------------------------------------------------------------------  type Exception report  message   description The server encountered an internal error () that prevented it from fulfilling this request.  exception   javax.servlet.ServletException: Servlet execution threw an exception     org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)   root cause   java.lang.OutOfMemoryError: Java heap space  note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.


I'd like to find a way to add holes caused by a 'bomb' to my floor sprite, a bit like what is in this game .    Basically there is a sprite (the green floor) and another sprite (the bomb) that falls on top of the green floor and the bomb then explodes. Once exploded part of the green floor sprite is gone. The player (red ball) can then move the sprite inside the new cavity that was created in the green floor sprite.


Get N on screen when trying to access developer options

Cannot access Developer Options on Asus Zenphone 3 (Android 7.1.1):   Settings About Tap 6 times on Android Version   All I get is an 'N' on the screen:


How to install .debs in a folder using a single command?

Hello I'm using Ubuntu 12.04 Beta 2 and I've got the .debs of the softwares I had been using in Oneiric. I wanna install them all!! But the problem is I can't install them one by one [due to shortage of time and patience].  Is there any command to install all the .debs placed in a single folder once and for all!!


So there is a multiplication trick It says     9×13 say Half and double everything  4.5×26 Cancel out the .5  4×26 2×52 1×104 Cancel out the even left hindsight multipliers and add the left right hand numbers  So 9×13= 104+13 = 117 I know how this can be explained by working in binary .Is there a rigorous proof how this algorithm works in binary.


Book about a water bubble connect to oceans

I read this book +20 years ago. What I remember is the following:  Someone built a device that in case the water of the ocean rise it would be transported to a bubble in space, and in case the water drops the water from the bubble would flow back to the oceans.  Inside the bubble are also people, lost submarine and a intelligent "slime" that control them and also sharks and other fish. The slime send woman back to earth. The rest I don't remember.


Let a, b, an m be integers. If a and b are relatively prime and a|m and b|m, then ab|m.

Prove and extend of disprove and salvage this statement.  I posted a similar post a few minutes ago.  I've been stuck on these two problems for a while and I have no idea what to do.  Any help would be greatly appreciated!


A pseudometric on the space of the measurable functions is complete

I'm working in the following exercise:  Suppose $(X, \mathcal A, \mu)$ is a finite measure space and suppose $\mathcal F$ is the set of all $\mathcal A$-measurable functions $f: X \rightarrow \mathbb R$. For $f, g \in \mathcal F$, let $$d(f, g)=\int_X\frac{|f-g|}{1+|f-g|}d\mu.$$  Show that:   $d(f, g)=0$ if and only if $f=g$ almost everywhere. $d(f, g)=d(g, f)$ $d(f, g)\leq d(f, h)+d(h, g)$ If $f_n$ is a sequence in $\mathcal F$ and if $f \in \mathcal F$ then $d(f_n, f)\rightarrow 0$ if and only if for every $\delta>0$ the following holds: $$\lim_{n\rightarrow\infty}\mu(\{x \in X: |f_n(x)-f(x)|\geq\delta\})=0.$$ If $f_n$ is a Cauchy sequence on $\mathcal F$ then there exists $f \in \mathcal F$ such that $d(f_n, f)\rightarrow 0$.   i.e., I must show that this thing is a complete pseudometric space.  I have already done 1. 2. 3. 4., but I'm stuck on 5. I don't know which $f$ should the $f_n$ converge to.


The following MWE contains the definition of a custom macro for colored underlines with the ulem package.  \documentclass{article} \usepackage{xcolor} \usepackage{ulem}   \newcommand{\muline}{\bgroup\markoverwith {\textcolor{red}{\rule[-0.5ex]{2pt}{0.4pt}}}\ULon}  \begin{document} \muline{This is some very very very very long text that does not fit in a single line but needs two.} \end{document}   Is it possible to use TikZ to draw the underline?   What I have in mind is the possibility to use something like \draw(start)--(end); instead of the rule command.   Of course it is required that the underline works for multi-line texts as the ulem underline does.


Is it possible to have a URL that launches a remote desktop session?  I realize it may be considered a security vulnerability for some, but the convenience would really save me a lot of time.    I would like to have a hyperlink like: remotedesktop://example.org where clicking on it launches mstsc.exe with the target computer filled in (in this case with example.org).  How best to set this up?


Tech report reference with committee name as author gets abbreviated as if it was a person's name

I have referenced a tech report that has as its author a committee name with a number in it. In the rendered references, the number is removed. I want the number included, since otherwise the reference is erroneous.  My relevant bibliography settings:  \bibliographystyle{abbrv} \bibliography{sigproc}    The tech report entry in my bibliography file:  @techreport{KCS12,  author = {K-12 Computer Science Framework Steering Committee},  title = {K-12 Computer Science Framework},  year = {2016},  isbn = {978-1-4503-5278-9},  publisher = {ACM},  address = {New York, NY, USA}, }   The resulting reference text, formatting aside, looks like this:  K.-. C. S. F. S. Committee. K-12 computer science framework. Technical report, New York, NY, USA, 2016.  I want it to say "K-12 Computer Science Framework Steering Committee", like this:  K-12 Computer Science Framework Steering Committee. K-12 computer science framework. Technical report, New York, NY, USA, 2016.  Is this possible?


How to sort BibTeX references in reverse chronological order?

I am trying to get my list of publications to display in reverse chronological order.  I can use \bibliographystyle{unsrt} as a workaround, and just order the entries manually, but I would naturally prefer if BibTeX did that for me.  What tools or approaches can I take to sort the bibliography in reverse chronological order?


Kotlin execution time almost 20 times higher depending on invocation order

I was measuring the performance of inline functions when I encountered this really weird behavior. fun normalFunction(block: () -> Unit) = block()  inline fun inlineFunction(block: () -> Unit) = block()  The following piece of code produces the output 0.315988524. var x = 0  println(measureNanoTime {     repeat(1_000_000_000) {         normalFunction {             x += it         }     } } / 1E9)  Replacing normalFunction by inlineFunction produces the output 0.307185642; slightly faster as one might expect. Now to the weird part. If I run both pieces of code directly in the same function (renaming x to y in one instance or encapsulating both blocks with run { ... }) then the produced output varies drastically depending on which block is run first:  normalFunction then inlineFunction produces the output 0.320697598 and 0.310288507 inineFunction then normalFunction produces the output 0.310213495 and 5.515626813  The weirdness ends when the two pieces of code are extracted to individual functions. The only thing that comes to my mind is GC but the inline function shouldn't really have any overhead memory wise. Does someone have an idea why this might happen? Should I file a bug report? Here are the two complete versions for clarity: fun main() {     run {         var x = 0          println(measureNanoTime {             repeat(1_000_000_000) {                 normalFunction {                     x += it                 }             }         } / 1E9)     }      run {         var x = 0          println(measureNanoTime {             repeat(1_000_000_000) {                 inlineFunction {                     x += it                 }             }         } / 1E9)     } }  fun main() {     run {         var x = 0          println(measureNanoTime {             repeat(1_000_000_000) {                 inlineFunction {                     x += it                 }             }         } / 1E9)     }      run {         var x = 0          println(measureNanoTime {             repeat(1_000_000_000) {                 normalFunction {                     x += it                 }             }         } / 1E9)     } }


Gamepad working as a mouse (not desired behaviour)

My gamepad is working unexpectedly as a mouse once I connect it to the usb port.  It used to work fine; it's only recently that it has start to behave as a mouse.  Any hint on how to solve it? I don't know where to start.


How do I use Moq to mock an extension method?

I am writing a test that depends on the results of an extension method but I don't want a future failure of that extension method to ever break this test. Mocking that result seemed the obvious choice but Moq doesn't seem to offer a way to override a static method (a requirement for an extension method). There is a similar idea with Moq.Protected and Moq.Stub, but they don't seem to offer anything for this scenario. Am I missing something or should I be going about this a different way?  Here is a trivial example that fails with the usual "Invalid expectation on a non-overridable member". This is a bad example of needing to mock an extension method, but it should do.  public class SomeType {     int Id { get; set; } }  var ListMock = new Mock<List<SomeType>>(); ListMock.Expect(l => l.FirstOrDefault(st => st.Id == 5))         .Returns(new SomeType { Id = 5 });   As for any TypeMock junkies that might suggest I use Isolator instead: I appreciate the effort since it looks like TypeMock could do the job blindfolded and inebriated, but our budget isn't increasing any time soon.


Coulomb's Law in the presence of a strong gravitational field

I was under the impression that the $1/r^2$ falloff of various forces were because of the way the area of a expanding sphere scales. But that strict $1/r^2$ falloff would only be globally true in a strictly Euclidean geometry, yes? So, if you had an electron and a positron in a warped space due to gravity, wouldn't that $1/r^2$ term in Coulomb's Law end up needing to be adjusted because of the warping of space leading to an increase or decrease in effect due to gravitational lensing or scattering?  I found one related question here:  But it only has one down-voted and unclear answer.


I have written a program to find all the links in an HTML page:  public static void main(String[] args) throws IOException {     String base = "http://www.oracle.com/";     URL url = new URL(base);     BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));      StringBuffer stringBuffer = new StringBuffer();     String inputLine = null;     while ((inputLine = in.readLine()) != null) {         stringBuffer = stringBuffer.append(inputLine).append("\n");     }      Matcher matcher = Pattern.compile("<a .*href=\"([^\"]+)\".*", Pattern.DOTALL).matcher(stringBuffer.toString());      ArrayList<String> urlList = new ArrayList<>();     while (matcher.find()){         String relUrl = matcher.group(1);         String fullUrl = relUrl.startsWith("/")?base+relUrl.substring(1):relUrl;         urlList.add(fullUrl);         System.out.println(fullUrl);     }      in.close(); }   For some reason, when I run this code it is only matching one link. However, when I run it without the DOTALL flag, it matches 108 links. The reason I included the DOTALL flag is to match links where the a tag may go over one line, such as:

Solutions

   According to , the regex <a .*href=\"([^\"]+)\".*<\/a> matches the HTML above. (this is slightly different than the one I used in the code because Eclipse wouldn't let me escape the / character)


How to use a decimal range() step value?

Is there a way to step between 0 and 1 by 0.1?   I thought I could do it like the following, but it failed:  for i in range(0, 1, 0.1):     print i   Instead, it says that the step argument cannot be zero, which I did not expect.


I failed to upgrade MySQL server. Here's what I tried:  I first issue this command to update the package list:   sudo apt-get update   Then, upgrade by:  sudo apt-get upgrade   It shows the following error:  Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  mysql-server-5.5 : Depends: mysql-server-core-5.5 (= 5.5.28-0ubuntu0.12.04.2) but 5.5.31-0ubuntu0.12.04.1 is installed E: Unmet dependencies. Try using -f.   Apparently a newer version is installed (but why? I didn't install manually). Okay, As it suggests, I issue the command to attempt fixing:  sudo apt-get -f install   Here is the output:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following extra packages will be installed:   mysql-server mysql-server-5.5 Suggested packages:   tinyca mailx The following packages will be upgraded:   mysql-server mysql-server-5.5 2 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 2 not fully installed or removed. Need to get 0 B/8889 kB of archives. After this operation, 64.5 kB of additional disk space will be used. Do you want to continue [Y/n]? Y perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:     LANGUAGE = (unset),     LC_ALL = (unset),     LC_CTYPE = "UTF-8",     LANG = "en_HK.UTF-8"     are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory dpkg: dependency problems prevent configuration of mysql-server-5.5:  mysql-server-5.5 depends on mysql-server-core-5.5 (= 5.5.28-0ubuntu0.12.04.2); however:   Version of mysql-server-core-5.5 on system is 5.5.31-0ubuntu0.12.04.1. dpkg: error processing mysql-server-5.5 (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                           dpkg: dependency problems prevent configuration of mysql-server:  mysql-server depends on mysql-server-5.5; however:   Package mysql-server-5.5 is not configured yet. dpkg: error processing mysql-server (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                           Errors were encountered while processing:  mysql-server-5.5  mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)   Then I try to use another command that some people suggest in the Internet:  sudo apt-get -f upgrade   Same output is produced. Apart from re-installing MySQL server, what else can I do ?  using Ubuntu server 12.04 LTS


NullPointerException when generating PDF using Docx4j

This is the error my app throws:  Caused by: java.lang.NullPointerException     at org.docx4j.convert.out.fo.renderers.FORendererApacheFOP.render(FORendererApacheFOP.java:199)     at org.docx4j.convert.out.fo.renderers.FORendererApacheFOP.render(FORendererApacheFOP.java:159)     at org.docx4j.convert.out.fo.AbstractFOExporter.postprocess(AbstractFOExporter.java:168)     at org.docx4j.convert.out.fo.AbstractFOExporter.postprocess(AbstractFOExporter.java:47)     at org.docx4j.convert.out.common.AbstractExporter.export(AbstractExporter.java:82)     ... 63 more   Code:  InputStream is = ByteSource.wrap(bytes).openStream(); WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(is); ByteArrayOutputStream baos = new ByteArrayOutputStream(); FOSettings foSettings = Docx4J.createFOSettings(); foSettings.setWmlPackage(wordMLPackage); Docx4J.toFO(foSettings, baos, Docx4J.FLAG_EXPORT_PREFER_XSL);   The line which throws NPE is   Docx4J.toFO(foSettings, baos, Docx4J.FLAG_EXPORT_PREFER_XSL);   What could be wrong here?


Do people use `jump to top of page` links?

I'm talking about links or buttons at the bottom of the page or screen simply linking to the top of the website.  Is there any data on that? Are they used more frequently on long pages? What about mobile?  I know that , but I don't know if people actually know this and I also don't know if it works on Android and WP7.


I would like to know if there is software that, given a regex and of course some other constraints like length, produces random text that always matches the given regex. Thanks


How to remove newline character between two strings \n in unix?

I want to remove the newline between two html tags which exists as follows:      I want to remove the newline character such that it becomes:     Also, there might be cases where there are more than one newline(s):       That also I want to remove to make it look like:     One more scenario,  if the pattern is like:   This is a text    After, conversion it should become:  This is a text   All the above scenarios are resolved, if we just truncate only the newline between two html tags. We should not be considering any white spaces.  There are couple of ways I have found it using sed, but it is very time consuming and very very efficient performance wise, particularly if the file has 1000+ html tags.


I have a listbox where the items contain checkboxes:  <ListBox Style="{StaticResource CheckBoxListStyle}" Name="EditListBox">     <ListBox.ItemTemplate>         <DataTemplate>             <CheckBox Click="Checkbox_Click" IsChecked="{Binding Path=IsChecked, Mode=TwoWay}" Content="{Binding Path=DisplayText}" />         </DataTemplate>     </ListBox.ItemTemplate> </ListBox>   The problem I'm having is that when I click on the checkbox or its content, the parent ListBoxItem does not get selected.  If I click on the white space next to the checkbox, the ListBoxItem does get selected.  The behavior that I'm trying to get is to be able to select one or many items in the list and use the spacebar to toggle the checkboxes on and off.  Some more info:  private void Checkbox_Click(object sender, RoutedEventArgs e) {     CheckBox chkBox = e.OriginalSource as CheckBox; }   In the code above when I click on a checkbox, e.Handled is false and chkBox.Parent is null.  Kent's answer put me down the right path, here's what I ended up with:  <ListBox Style="{StaticResource CheckBoxListStyle}" Name="EditListBox" PreviewKeyDown="ListBox_PreviewKeyDown">     <ListBox.ItemTemplate>         <DataTemplate>             <StackPanel Orientation="Horizontal">                 <CheckBox IsChecked="{Binding Path=IsChecked, Mode=TwoWay}" />                 <TextBlock Text="{Binding DisplayText}"/>             </StackPanel>         </DataTemplate>     </ListBox.ItemTemplate> </ListBox>   I had to use PreviewKeyDown because by default when you hit the spacebar in a list box, it deselects everything except for the most recently selected item.


How to sum $\sum_{k=1}^{n}n^2$ WITHOUT induction?

Is there any way to prove that: $$ 1^2+2^2+3^2+\ldots +n^2=\frac{n(n+1)(2n+1)}{6}$$ but WITHOUT using mathematical induction? (I don't know, maybe through some creative graphical demonstration?)


Why is implication truth table defined this way?

I have read  but it does not honestly answer why the implication truth table is defined the way above? Suppose human kind has not yet made a logical system and you are the first one making one, why would you define the implication truth table the way above? I don't have problem with the way operations AND, OR are defined but with implication it is not clear. What if the implication table was not defined the way above? Why we have rows like $p=F$ and $q=F$ but the implication is vacuously true?  In addition, are there any resources out there explaining how one would go about making a logical system? Is logical system that we use(here boolean logic) unique?


I have searched "GIMP" on my Ubuntu 16.10(64bit) Ubuntu Software, but it was not there, so i tried to install it with this simple Command :  sudo apt-get install gimp   and after typing my password the result was :   The following packages have unmet dependencies:  gimp : Depends: libgegl-0.3-0 (>= 0.3.0) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   so how can i install gimp on my Ubuntu 16.10 ?   Edit : I've treid to install vlc and i got a similar error but about another package and on the last line it mentioned some of my packages are broken , i'm searching to solve that. As it is maybe visible I'm somewhat new to linux , so i mentioned that similar problem , but i don't know is it really related or not.


I'm trying to learn templates in c++ and i came across with a doubt that i can't find answers for. I'm sorry in advance if this is not a proper question.  If i have the following code:  template< class T > T func( T a, T b ) {     return a + b; }   And then:  int number = func( 2, 3 );   Will number simply be set to 5 or will a function  int func( int a, int b ) {     return a + b; }   be generated?  I need to know if i can make a template that checks if a certain string is in a file.


Can we construct $\Bbb C$ without first identifying $\Bbb R$?

Sometimes it is useful to consider $\Bbb C$ as our primitive and identify $\Bbb R$ as a subset of $\Bbb C$.  Thus we can define $\Bbb R$ (or at least a set with all of the interesting properties of $\Bbb R$) from $\Bbb C$.  This suggests to me that there is some way of constructing $\Bbb C$ without first constructing (or taking as a primitive) $\Bbb R$.  However, I've never seen such a construction of $\Bbb C$ (a quick Google search didn't provide me one, either).  I've the Cayley-Dickson construction and the matrix construction many times, but are they the only known ways of constructing $\Bbb C$?  My question:     Is there a way to construct the set of complex numbers without already having (or first constructing) the real numbers?


How do I derive:   $\ln(-1)=i\pi$ and   $\ln(-x)=\ln(x)+i\pi$  for $x>0$ and  $x \in\mathbb R$  Thanks for any and all help!


latex : Exclude draftwatermark from specific pages

I am using draftwatermark package. Is there any option to exclude watermark from some specific pages? Say no watermark from pg 3-4. I can not use xwatermark package. It conflicts with the geometry package of my document.  MWE:  \documentclass[12pt,a4paper]{exam} \usepackage{draftwatermark}  \usepackage{lipsum}   \SetWatermarkAngle{45}  \SetWatermarkLightness{.8}  \SetWatermarkFontSize{10cm}  \SetWatermarkScale{5}  \SetWatermarkText{\tt{12345}}  \begin{document}  \lipsum[1-20]  \end{document}


I've been recently having a discussion on how to compute the genus of a pair of pants, namely the figure:    After some research, we stumbled across this webpage:    in which they find the genus of a three-holed sphere (i.e. a pair of pants) to be 2. However, the wikipedia article says it has genus 0.    For us, therefore, a satisfactory answer remains elusive. Our questions will then be: what are we missing? what is the right answer, if there is any (we hope so) ? What's the correct way to compute the genus of a pair of pants?  Thanks in advance!


How can I convert a mouse click to a ray?

I have a perspective projection.  When the user clicks on the screen, I want to compute the ray between the near and far planes that projects from the mouse point, so I can do some ray intersection code with my world.  I am using my own matrix and vector and ray classes and they all work as expected.  However, when I try and convert the ray to world coordinates my far always ends up as 0,0,0 and so my ray goes from the mouse click to the centre of the object space, rather than through it.  (The x and y coordinates of near and far are identical, they differ only in the z coordinates where they are negatives of each other)  GLint vp[4]; glGetIntegerv(GL_VIEWPORT,vp); matrix_t mv, p; glGetFloatv(GL_MODELVIEW_MATRIX,mv.f); glGetFloatv(GL_PROJECTION_MATRIX,p.f); const matrix_t inv = (mv*p).inverse(); const float     unit_x = (2.0f*((float)(x-vp[0])/(vp[2]-vp[0])))-1.0f,     unit_y = 1.0f-(2.0f*((float)(y-vp[1])/(vp[3]-vp[1]))); const vec_t near(vec_t(unit_x,unit_y,-1)*inv); const vec_t far(vec_t(unit_x,unit_y,1)*inv); ray = ray_t(near,far-near);   What have I got wrong?  (How do you unproject the mouse-point?)


I have two layers and they just won't line up. I am a novice and tried a variety of things but I can't get it right.  My layers are in:  GRS_1980_Transverse_Mercator ETRS_1989_LAEA  These are CORINE and Copernicus EUDEM layers, or layers derieved from them.  What should I do, and more importantly - how?


2 ways to vote that something belongs on SuperUser

There are 2 close vote options that seem to say that a question belongs on SuperUser instead of StackOverflow. (I'm not sure what the options are on other SE sites.)     Closing > Off-Topic > "Questions about general computing hardware and software..."   and     Closing > Off-topic > Migration > belongs on superuser.com   What's the difference? Why do we have both?


Do you guys know how '-ó' is pronounced?  Context: , Hopkins.           No wonder of it: shéer plód makes plough down sillion   Shine, and blue-bleak embers, ah my dear,         Fall, gall themselves, and gash gold-vermilion."


Real Cyclic Extensions of $\mathbb Q$ of given degree

An old qual problem asks us to     Show that for every positive integer $n$, there exists a cyclic extension of $\mathbb{Q}$ of degree $n$ which is contained in $\mathbb{R}$.   A first thought might be towards Kummer theory: we could adjoin an $n^\text{th}$ root of, say, a prime number.  But when $n>2$, $\mathbb{Q}$ lacks the full cohort of roots of unity that would make this work.  If $n$ is a power of $2$ we can get what we want by adjoining ($\mathbb{Q}$-linearly independent) square roots to $\mathbb{Q}$, and I think some  things can be done in other degrees ( at least $n=3$ and $n=5$)  but a more general $n$ has me stumped.  Could I get a nudge in the right direction on this problem?


Solving the improper integral $\int_0^{\infty} {e^{-ax}\cos{(bx)}} dx$

$$\int_0^{\infty} {e^{-ax}\cos{(bx)}} dx$$   I know I need to use integration by part method. But I'm not sure how does the improper integral take place?


Add a link to the profile in the left sidebar

On the left sidebar, the first item of the menu is my profile pic + nickname. It seems to be a fake link. Wouldn't be cool if this link goes to my profile instead of doing nothing?  Or maybe, instead of a "non-link", display a summary of my profile (points, number of badges, profile views, helpful tags, etc..).


Looking for scifi movie from the 90s/early 00s based on book

I am trying to remember a movie I saw a long time ago, which I think was based on a book but impossible to find the title again on google.  A few elements I remember:   First I saw the movie on TV so it might have been straight to DVD, around 2005-ish The story starts with the main character has an accident/dies and wakes up in the water He reaches the shores and finds many other people just arrived as well It seems they reached like a vast empty alternate world, with no much human population so they wander around, kind of like prehistoric times They find some tribes of people who arrived previously in this alternate world and some of them are famous historical people, like Brutus or Caesar, but also more recent historical people  It seems like everyone ends up in this world after they die, but not in a heaven kind of way, more like alternate earth where everyone arrives around the same time The main story I dont remember but towards the end there is a huge blackish tower with some strangely advanced people (compared to the whole movie) inside who seem to control this world...and the movie kind of ends there.   For some reason, I seem to remember the title includes the words Tower or World but this I am completely unsure and my mind could be tricking me.  Do any of these details remind anyone of a specific book or movie?  Thanks a lot for your help.  Cheers


Does RAID 0 increase the latency of the volume on HDD?

I will add a new HDD to my computer (identical to the old HDD).  I'm wondering if it's a good idea to do a raid 0 vs using the two drive separately.  How much it impact the latency and the performance.  Specially for small random read and write.


Contemporary written usage of "whom" in objective case

Possible Duplicate:          I was writing a LinkedIn recommendation one day, and ended up pondering for a while which of these forms to use:     … is a great developer whom I always   found easy to work with.      … is a great developer who I always   found easy to work with.   Both are basically correct in contemporary English, right? But is one or the other preferable, and if so, why?   (In this case I went with the latter, as it seemed more common (Google)  and I wanted to avoid sounding unnecessarily “archaic”, although I’m not sure whether that would have been the case. Also note that I try to write in a “friendly professional” style instead of overly formal one. :-)


Age restrictions for teaching in united states

I am asking this question in a general sense (in the majority sense) and is not particular to any institute or topic. Is there any upper age limit to join as an assistant professor in the US? If a person completes her post-doc by the age of n, with no prior teaching experience. Is she eligible for assistant-professorship for 60 >= n >= 35?


Is there a functional difference between the modern police station and classic police station?

A villager requested that I create a police station as our next public works project, which I would be happy to oblige... but I've got some questions first.  That conversation unlocked the "modern police station" and "classic police station" and both will cost 264,000 to construct.  Is there any functional difference between the two?  Can I build both, or will I be restricted to one or the other?  Is one better to have than the other?


Custom alignment of text in itemized environment

I want to describe the variables involved in an equation in an itemized environment such that every item begins with the variable name and subsequently comes the description for it. I'd like to have all the descriptions left aligned.  Here is a MWE that of course does not produce what I am looking for.  \documentclass{standalone} \begin{document} $E[g(x)] = \int_{-\infty}^{+\infty} f_X(x) \, g(x) \, \mathrm{d}x$. % where, % \begin{itemize}     \item $x$      \quad is a continuous random variable.     \item $f_X(x)$ \quad is the PDF of $x$.     \item $g(x)$   \quad is a function of $x$. \end{itemize} \end{document}


Chrome new tab page changed but I want it back

I'm using Google Chrome version 21.0.1180.89 m (on Windows 7).  The problem is that I installed an anti-virus program that accidentally changed the home page (I didn't uncheck the option). Now every time I open a new tab, it goes to the web search of the anti-virus package.  My question is, how can I restore it to the thumbnails with most visited and a tab with apps and all the other stuff?


why ubuntu does not offer upgrade to 21.04?

it is about 2 weeks from releasing ubuntu 21.04. during this period i have tried to upgrade my ubuntu 20.10 to 21.04 using software update and also using upgrade command in terminal. but it does not offer upgrade at all. i have checked the repository setting and it is set to stable (not LTS). what is the problem?


I have this grid where (usually) you can select one of the tiles. A selected tile is supposed to have a transparent blue overlay. How can you make an image overlay in a grid that remains the width of its container when resizing the grid width?  As such:    I made .tile__overlay position: absolute;, which looks good at first glance. But it means that I lose the responsiveness, meaning that the overlay does not adjust to its parent size when the tiles are smaller than their maximum size.    .grid {   display: grid;   grid-gap: 6px;   max-width: 306px;   grid-template-columns: minmax(min-content, 150px) minmax(min-content, 150px); }  .tile {   padding: 0;   border: 0;   max-height: 150px;   max-width: 150px; }  .tile__image {   height: 100%;   width: 100%;   max-height: 150px;   max-width: 150px;   display: block;   object-fit: contain; }  .tile__overlay {   width: 100%;   height: 100%;   background-color: rgba(29, 151, 255, 0.9); }
   <button class="tile" type="button">        </button>   <button class="tile" type="button">        </button>   <button class="tile" type="button">
   </button>   <button class="tile" type="button">        </button>


What is difference between overprint, pass, resolution, PPI and DPI in design printing?

I have read through many resources but I still don't understand what are the difference between them. Can anyone give good examples that is able for me to imagine the different and explain what is difference between them?  Thank You


What would I search for to find bike hubs that attach on only one side like found on tadpole recumbent

What is the name of the hubs used on recumbent tadpole trikes. Those tricycles that have two front wheels and a conventional rear wheel


Best Practice for returning the highest value in a set of columns?

SQL Isn't my Forte, Some help from you experts would be amazing :)  Dataset:   Name of Product  |  Part Number   |   Size 1  |  Size 2 |  Size 3 ------------------|----------------|-----------|---------|----------       Item1       |    12345       |     4     |    4    |     6       Item2       |    54321       |     4     |    5    |     4       Item3       |    54123       |     6     |    2    |     2   I need to return the highest value in the 3 sizes and aggregate them into a single column.  Item1  |  6 Item2  |  5 Item3  |  6   Googling has only lead me to the MAX() function, but it just returns the highest value in the dataset which is not what im after.


How can I delete current session in Chrome?

I'm using Google Chrome and want to delete the current session data on the fly. I can do this on Firefox with the web developer extension, but Chrome doesn't seem to have the same option in their webdev extension. So how can I do this?  I realize that session data is stored on the server side and tracked in the browser with cookies. So really, I think what I want to do is delete cookies that are set to live for the session lifetime. Is there a way to do THAT in Chrome? "Delete browsing data" lets me delete all cookies from within a certain time period (for example, the last hour), but that could delete OTHER cookies on the site that I don't want to erase. I just want to delete the cookie being used to track my current session.  To be even more clear: In Firefox, with the web programmer extension installed, I can log into a site, choose "clear session cookies" and just the PHPSESSID cookie is erased. However, other cookies for that domain are not erased or otherwise touched. I want to be able to do this exact same functionality in Chrome.  Thanks y'all...


How to resolve max execution time error in Drupal commons?

Getting this error on xampp using drupal commons distribution , by opening localhost/commons  PHP Max Execution Time  30 Your PHP execution time is too low, please set it greater than or equal to 120 seconds.   What to do?


this is a noob question but here it is: How can i connect an osciloscope to the 230V mains power line to see the voltage sine wave ?   - what schematic do i need - how safe is it ?


Prove that in a sequence of numbers $49 , 4489 , 444889 , 44448889\ldots$ in which every number is made by inserting  $48$ in the middle of previous as indicated, each number is the square of an integer.


What will happen to my activities if account deleted?

What will happen to my Questions, Answers, Comments etc if I delete my account?


I need to install lxde (only vanilla one)  in Ubuntu 14.04 64bit system. It has no internet access so I have to download lxde and install it offline. How do I do it. Since typing  sudo apt-get install lxde wouldn't work.


I am a person that is new to xubuntu using crouton on a chrome book I was wondering how to get the Root terminal open. The reason I want to do this is so I can modify some files that ware left behind by installing wine and removing it  ( Yes I used -Remove -Autoremove and -Purge) I can not do this and also I am morbidly curious so I would like access to the root terminal


Building raster with multiple attributes based on 3 input rasters?

I am trying to make a new raster based on three input rasters which have the same cell size and the grids align perfectly.  I now want to construct a new raster, which for each cell, has three attributes, being the cell the values of the different input rasters. I've read about using 'combine', but this provides with an attribute table with a count of all cells with the same combination of values in the different input rasters (I hope this is clear). What I need is an attribute table in which all cells are individually represented.   Does anyone have any advice on this?


I got to understand what a LUT actually is. The inputs of a logic function acts as drivers for address lines of a memory block (typically a RAM block) and the address lines are decoded to point to a value which is passed on to the output.  Y=A^B  We store the values[0:3]=(0,1,1,0); And based on the input which acts as address,the corresponding output is enabled.  But how is this value actually stored?  I write y<=a xor b;  How is this put into the look up table? And how is this linked with the multiplexers and D-Flipflops?


Distinction between apt-cache and dpkg -l

I use apt-cache pkgname to retrieve the packages as   me@host:~$ apt-cache pkgnames | wc -l 62803   get 62803 results   but   me@host:~$ dpkg -l | wc -l 2336   What's the reasons which lead such a huge distinction. I presume that dpkg is super than apt.


How does StackOverflow ensure its questions get indexed by search engines?

There's so many questions on SO and they quickly become hard to find unless you search for them. How does StackOverflow show all these pages to crawlers for SEO?


I'm trying to add sample code to my document. It seems that the listing is left aligned with the margin, and the numbers go outside it. How should I align the number, instead of the code? Here is my latex code:  \documentclass[a4paper,10pt]{article} \usepackage[utf8x]{inputenc} \usepackage{listings}  %opening \title{} \author{}  \begin{document} Some dummy text. Some dummy text. Some dummy text. Some dummy text. \begin{figure} \begin{minipage}[b]{0.4\linewidth} \begin{lstlisting}[language=C, %frame=single, basicstyle=\footnotesize\ttfamily, numbers=left,stepnumber=1, morekeywords={assert} ] void test(int x, int y){   if(x > 5){     x++;     if (x < 3)        x--;     else        y = x;   }   assert (x < 10 ); } \end{lstlisting} \caption{A simple example} \end{minipage}  %another minipage goes here  \end{figure}  \end{document}   Thank you.


Solution for apps that don't scale on HiDPI displays

My laptop has a 15-inch 4k display. Almost everything works perfectly, but some applications don't scale and are too small to use. Some examples: Hipchat, Ardour, Steam, Gimp, etc.   Is there a way for me to solve this? I've seen to use xrandr to set DPI before running the app, but that seems to have no effect (or I'm doing it wrong.)  If I could fix this one problem I'd have everything working perfectly.  Also, I'm using Gnome, but the issue was the same in Unity.


how to get the name of this shooting technique?

I really wonder :  how this photo was taken ? what is the name of such of these technique ?  how I can take such of these photographs ?  could you please teach me :)


How does Captain America channel this power?

In Avengers: Endgame, we see Captain America use      Thor's Hammer, Mjölnir. But not only does he wield it, he also uses Thor's powers of lightning while holding it.   Does this not contradict that      In Thor: Ragnarok, it is explained that the hammer itself is not "the source" of thunder, rather this power comes from Thor himself and the hammer is just a weapon that he can use to control it, but it isn't required.   Therefore, how can Captain America possibly control      thunder by merely wielding Thor's Hammer?


For this dropdownlist in HTML:  <select id="countries"> <option value="1">Country</option> </select>   I would like to open the list (the same as left-clicking on it). Is this possible using JavaScript (or more specifically jQuery)?


Incorrect result of Number.MIN_VALUE - 1 in JavaScript

console.log(Number.MIN_VALUE);  // 5e-324 console.log(Number.MIN_VALUE - 1); // -1   Value of Number.MIN_VALUE is 5e-324, but if I subtract 1 from it, -1 is returned.  It looks like some garbage value but I'm wondering why JavaScript interpreter cannot represent it. Otherwise, Number.MAX_VALUE + 1 is same with Number.MAX_VALUE(1.7976931348623157e+308).  Is there something different between calculating Numbers.MAX_VALUE and Numbers.MIN_VALUE?


I have the wireless network card RTL8723BE PCIe, which is not currently working. I suspect I managed to ruin the drivers, when trying to get bluetooth to work. This is the operating system and kernel:  Operating System: Ubuntu 14.04.4 LTS Kernel: Linux 3.19.0-65-generic Architecture: x86_64   The system does recognize the wireless network card. sudo lshw -C network returns:  *-network UNCLAIMED         description: Network controller    product: RTL8723BE PCIe Wireless Network Adapter    vendor: Realtek Semiconductor Co., Ltd.    physical id: 0    bus info: pci@0000:08:00.0    version: 00    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress cap_list    configuration: latency=0    resources: ioport:4000(size=256) memory:b2500000-b2503fff   And iwconfig returns:  lo        no wireless extensions. eth0      no wireless extensions.   rfkill list does not return anything.  I tried following the instructions here:   Which did not help me.


What are the alternatives for storing client side encrypted data?

I want to store client side encrypted data in Drupal 7, so that it is encrypted on the client end, and stored and transmitted in encrypted form. The password is never transmitted or stored on the server. The only modules I have found which do this are  and  but they are for Drupal 6. I need something that is user specific, so that different users can use different keys, rather than a single key or a set of keys used on the server end. Are there any similar modules for Drupal 7?


Adding a "none of the above" option to a list of checkboxes

I am working on a series of complex life insurance forms and trying to optimize using standard conventions...  I have this nasty list of medical diseases and a mutually exclusive option, "None of the above".  In the case where the user does not have any conditions, the client requires users to explicitly state this for legal reasons.  Any advice?


Field extensions and algebraic/transcendental elements

Let $E$ be an extension of field $F$, and let $\alpha, \beta \in E$. Suppose $\alpha$ is transcendental over $F$ but algebraic over $F(\beta)$.   Show that $\beta$ is algebraic over $F(\alpha)$.  Okay, first questions: What does the notation $F(\alpha)$ and $F(\beta)$ mean? And being transcendental means it solves no equations with rational coefficients, but what does it mean for a field?


How could I make "assets/**/*.webp" work in shell script?

If I use ls -l assets/**/*.webp  in bash, it works fine However, if I put it into a script, it will complain: ls: assets/**/*.webp: No such file or directory I noticed that if I remove the trailing .webp ls -l assets/**/*  this script works, but that's not what I want here's the full script which will fail #!/bin/bash ls -l assets/**/*.webp


All he had were bruises and cuts.      All he had was  bruises and cuts.   What are the differences between these sentences? Are they both grammatical and, if so, which one is more natural?


How can I turn off "mobile mode" for Stack Exchange chat?

While having trouble getting Stack Exchange Chat to work on my travels in China, . (I'm using a netbook.)  That actually worked but now I'm in a different hotel in a different city and most of the sites I had trouble with previously now work.  But when I open SE chat in a new tab it automatically opens in mobile mode. It doesn't seem to have any button to switch to "non mobile mode".  It seems nobody has asked this before since my searches reveal nothing.


If statement is not working with my getText().toString()

Before I start explaining I'll just get you into the code.   EditText br = (EditText) findViewById(R.id.editText);  if ( br.getText().toString() == "0") {     Toast.makeText(MainActivity.this, "It works", Toast.LENGTH_LONG).show(); }   It's that simple. But I don't understand why it doesn't work! I typed in ("1" == "1") in the if statements just to see if there is anything else wrong. But the message shows up on my phone.   The edittext field has the number 0 on it. I have no clue why this simple if statement would not work.


Just curious:    4 instanceof Number => false new Number(4) instanceof Number => true?   Why is this? Same with strings:    'some string' instanceof String returns false new String('some string') instanceof String => true String('some string') instanceof String also returns false ('some string').toString instanceof String also returns false   For object, array or function types the instanceof operator works as expected. I just don't know how to understand this.  [new insights]  Object.prototype.is = function() {         var test = arguments.length ? [].slice.call(arguments) : null            ,self = this.constructor;         return test ? !!(test.filter(function(a){return a === self}).length)                : (this.constructor.name ||                   (String(self).match ( /^function\s*([^\s(]+)/im )                     || [0,'ANONYMOUS_CONSTRUCTOR']) [1] ); } // usage var Newclass = function(){};  // anonymous Constructor function var Some = function Some(){}; // named Constructor function (5).is();                     //=> Number 'hello world'.is();           //=> String (new Newclass()).is();        //=> ANONYMOUS_CONSTRUCTOR (new Some()).is();            //=> Some /[a-z]/.is();                 //=> RegExp '5'.is(Number);               //=> false '5'.is(String);               //=> true


What is the source code of toString(16) in js?

I am keen to know the source code for .toString(16) in javascript Because I would like to check logic of how the dec code converted to hex code?


Is there a way to check that the conditions on your plane ticket are actually what your travel agent said they are?

When I buy my plane tickets there's often certain things I want such as:   Ticket valid for 12 months No fee for return date changes Stopovers in both directions   Now it seems that these days your E-ticket is basically a number. So you get an itinerary that your travel agent prints out with your E-ticket number, some other reference numbers, and some, but not all conditions of your ticket.  From what I know of air tickets there are all manner of codes for all kinds of conditions, including things like in my list above, but they are vastly complicated and don't necessarily map directly to the simple English phrases I used.  My question is How can I check that the ticket I bought actually does have all the things I asked for? What if the agent made a mistake or a wrong assumption or printed the wrong thing on my printout. It's not a printout the airline made after all.  I made sure when booking my ticket to ask multiple times on each point. But I didn't get the agent to put it in writing and sign it.  What just happened:   My printout says my ticket was valid for 12 months but when I called the local airline office to change the date they didn't think my ticket was valid for a year after all! (It turned out it was a year ticket after all this time.) My printout says date changes will cost $75. But the local airline office told me changes are free! (This time luck is on my side.) My travel agent only booked my stopover on the way to my destination and not the one on my return flight. They assured me I can change it while I'm travelling with no problem. But the local airline office tells me it's not so simple after all and if it's even possible it will require some fees! (This time luck may be against me.)   How can you make sure all of this stuff is what was promised / what is printed before it bites you?


$gcd(a,b)=lcm(a,b)$ if and only if $a=\pm b$

I proceeded like this. Let $a \leq b$. Since $gcd(a,b)=lcm(a,b)$, then $gcd(a,b)^2=ab$ Now $gcd(a,b)=\pm\sqrt ab$ which is an integer. So b must be of the form $am^2$ so the numbers are a and $am^2$ whose gcd is clearly a. hence $gcd(a,b)=a=\pm am$ which implies $m=\pm 1$ so $b=am^2=\pm a$ which is proved. I do not know how to prove the converse.


What is a good internet based source of information on Hierarchical Modeling?

I am talking about the regression method that measures the impact of several layers of independent variables upon a dependent variable.


Inconsistent style of "other keywords" when breaklines=true

Some keywords defined with the otherkeywords key are not formatted as expected when breaklines is set to true. Here is my MWE:  \documentclass[12pt, a4paper]{article} \usepackage{listings} \lstset{   basicstyle=\itshape\ttfamily,    keywordstyle=\upshape, } \lstdefinestyle{syntax}{   language=[ANSI]C,   otherkeywords={(,)},   breaklines=true, }  \begin{document} \begin{lstlisting}[style=syntax]   const ( int | float ) text \end{lstlisting} \end{document}   The result looks something like this (but nicely monospaced...):  const ( int | float ) text  If I set breaklines=false, it looks as expected:  const ( int | float ) text  Am I missing something obvious? As for versions, "This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9)" on Windows (at work, they force me...).


Is it necessary to repete the prepositions in coordinate sentences?

In the coordinate sentences introducted by prepositions is it necessary to repete the preposition in the second sentence? "I am happy to go to the cinema and to have a pizza" or "I am happy to go to the cinema and have a pizza"?


Removing urls froms reference list in natbib

I'm using JabRef to manage my references, the  package and jpe bibliography style.  When I use the \bibliography{ } command to generate the reference list, the urls of the documents cited also appear by default, but I dont want them to show.   I'm not sure if its an issue with JabRef, natbib, or the bibliography style. Any idea of how to remove them?


Expected number of Bernoulli (binomial) trials to get $n$ successes

Consider the expected number of Bernouilli trials needed to get $n$ successes with the probability of one success each time being $p$ ($0 < p < 1$). This number should be $\frac{n}{p}$.   I tried to derive this case by case and got the expression $$ \sum_{k=n}^{\infty}\frac{(k-1)!}{(n-1)!(k-n)!}\cdot p^{n}\cdot(1-p)^{k-n}\cdot k $$ The problem is, how does this equate to $\frac{n}{p}$? I can't seem to figure out how to derive it from the expression above.    Apologies if this question appeared before. I tried searching, but all I could find was the expected value of the binomial distribution, which may be similar but is not the case here.    On a side note, suppose instead that for each success I put a marble in a bag, but there are $b$ bags in total. What then is the expected value to reach $n$ marbles in all of them? Surely, this should not be $b\frac{n}{p}$. How would I approach this?


Is this correct for Rudin exercise 3.7? Prove the series is convergent

This is Baby Rudin exercise 7 of Chapter 3. Prove that the convergence of $\sum{a_n}$ implies the convergence of $\sum{\sqrt {a_k} \over k}$ if $a_n \ge 0$.  Proof:  I will attempt to show that the cauchy criterion is met so $${\sum_{k=n}^m {\sqrt {a_k} \over k}} \le \epsilon $$ for all $n,m \le N_1$. Im disregarding the absolute value since its all positive terms.   Since $\sum{a_n}$ converges, we know that the $\lim \limits_{n \to \infty} a_n =0$ So there exists some $N_2$ such that for all $n \ge N_2$, $$   a_n \lt \ {{(m-n)}^2k^2(\epsilon)^2} $$ I am again disregarding the absolute values because its always positive Let N=max{$N_1,N_2$} then for all $n,m \ge N$ $$\sum_{k=n}^m {\sqrt {a_k} \over k} \le \sum_{k=n}^m {\sqrt {{(m-n)}^2k^2(\epsilon)^2} \over k} \le \sum_{k=n}^m{(m-n)(\epsilon)} = \epsilon $$  Maybe this is just crazy, should I just use Cauchy-Schwarz inequality and forget about this or could I possibly make this method work?


What does this error mean ?  /dev/mapper/ubuntu--vg-root: clean   It was shown during startup but the system booted fine.  Do I have to do anything?


How to hide or remove useless network names from the wifi menubar icon

I have obnoxious neighbors that think its funny to use offensive words for their SSIDs.  I would like to remove those SSIDs from, at a minimum, the wifi menubar icon.  If its easier, hiding/removing them from the OS completely (menubar icon and system prefs) would be acceptable.  I'm an OS X newbie, so I don't even know where to start with this.    I prefer built-in solutions (read: free), but solutions < $10.00 would be ok too.


Hi   I'm writing a little paragraph and want to write my footnotes horizontally.  How can I do that?  for example here my footnotes are 6x1 and I want something 1x6 or 2x3(I need a option that I can change the shape).  below is the code:  \begin{document} %\maketitle \chapter*{\centering Throwing all Money from the window}     In dangerous car chase in L.A recently, bank robbers who were running away\footnote{escaping} from the police, launched\footnote{throw} all the taken\footnote{stolen} money from the window. The disturbance \footnote{incident} began in northern suburb of the city where a armed bank robbery had been committed.the robbers escaped in a stolen vehicle and two of them who have not been arrested\footnote{caught}, tried to jump out of the car.     All along the chasing\footnote{route} one of the suspects ,who had set in the back seat of the car, threw handfuls of bank notes out of the window.  \end{document}   I would appreciate your solutions.


I have Algorithms, Figures and Tables in my project and in the list of Algorithms, all the algorithms are listed with the user-defined Pretext 'Algorithm'.  I don't know how to define similar pretexts for Tables and Figures.  Currently the file takes the same pretext 'Algorithm' for all components as shown in the below MWE.  \documentclass{article} \usepackage{graphicx} \usepackage{algorithm} \usepackage{algpseudocode}  \begin{document}     {     \let\oldnumberline\numberline     \renewcommand{\numberline}{Algorithm~\oldnumberline}     \addcontentsline{toc}{chapter}{\listalgorithmname}     \listofalgorithms     \addcontentsline{toc}{chapter}{\listfigurename}     \listoffigures     }     \begin{figure}       \centering       \includegraphics[width=9cm]{example-image-a}       \caption{Example Image}       \label{fig:example}     \end{figure}      \begin{algorithm}     \caption{MHCM}     \begin{algorithmic}[1]         \If{condition}             \State do something         \Else             \State do something else         \EndIf     \end{algorithmic}     \end{algorithm} \end{document}


I am having trouble with finding help on how to use  on Linux, it's always Windows all the time.


Rice wine making stucked half way, fermentation never happened?

I am trying to make glutonous rice wine, purchased the so call "yeast" from asian market, the "white cookie/powder" broke rice down into sugar. I have measured, it is 40%, very sweet to taste. But it just does not ferment. The sweetness always there, does not reduce. I tried to pitch the champage yeast into it, it only last 2 days, before bubbles stopped. Why? Is it too sweet (40%) for champage yeast? Thanks


Samsung phone not recognized in Ubuntu 12.10 using USB cable

I use Ubuntu 12.10 ,when i connect Samsung Galaxy Ace plus to PC it is not recognized by Ubuntu and USB icon does not appear in phone screen, so i cannot connect my phone to PC.  Please help about it.


How to set the process won't be terminated when the terminal stops

[Edit]  Make it simple.  I invoked java xxx... on Machine A using putty to connect from Machine B. However I cannot reach Machine B. How can I connect Machine A from Machine C to set the running process java xxx... could not be terminated when Machine B shuts down?  [Original]  I'm connecting to a server(Machine A) using putty, and I'm running a process on it. However I have to reboot my computer(Machine B), which could terminate the connection as well as putty. Because I didn't set nohup on the process which I'm running, this could be terminated. I cannot use putty to set disown for some reasons. So I want to use Machine C to open putty to connect to the server(Machine A) and set the process I'm running that it won't be terminated when I reboot Machine B.  Is there any way to do this? I know I can use disown if I'm using the same shell process. But now is not this case.


Pokemon keep running at first throw and the pokestops won't Roll and just stay blue

This might be late but my Pokemon all run away after the first throw. What is causing this?


What can I do when getting "We are no longer accepting questions/answers from this account"?

If you are reading this, you may have been affected by one of our post quality bans. If so, it is important that you  to understand what has happened and how to regain the permissions that you lost. While trying to ask a question, one could see:  We are no longer accepting questions from this account. See  to learn more.  Likewise, for answers:  We are no longer accepting answers from this account. See  to learn more.   Why am I getting this message? Are deleted posts taken into account too? Is a question/answer ban the same as a suspension? How do I avoid getting a question ban? How long do I have to wait before I can post again? What can I do to release the ban? How can I reactivate my account? Can I simply create a new account? I'll just ask somewhere else on the SE network, and they'll migrate my question to the correct site! Will a ban on one Stack Exchange site affect my standing on other sites in the network? Does this apply to meta sites too? My account is in good standing. Why am I still blocked?


Prove that the solutions $y_1$ and $y_2$ for the initial value problem   $y'=$${-x+\sqrt{(x^2+4y)}}\over 2$ , $y(2)=-1$  are:  $y_1=1-x$  $y_2={{-x^2}\over 4}$  And explain why the two solutions not contradiction with the theory of existence and uniqueness.  ( sorry I don't speak English well )  My answer:  For the initial condition :  $y_1=1-x$ Satisfy the initial condition  $y(2)=-1$  $y_1=1-2=-1$   And Satisfy the differential equation  ${y_1}^{\prime}=-1$  ${{-x+\sqrt{x^2+4y}}\over 2}={{-x+\sqrt{x^2+4(1-x)}}\over 2}$  $={{-x+\sqrt{(x-2)^2}}\over 2}$  $={{-x+x-2}\over 2}=-1$  L.h.s.=R.h.s.  $y^{\prime}={{-x+\sqrt{x^2+4y}}\over 2}$  Also $y_2$ Satisfy the initial condition  $y_2={{-x^2}\over4}={-4\over4}=-1$   And satisfy the differential equation.   $y_2^{\prime}={-x\over 2}$  ${{-x+\sqrt{x^2+4y}}\over 2}={{-x+\sqrt{x^2+4({-x^2\over 4})}}\over 2}={-x\over 2}$  And for second part of exercise:  ${\partial f\over \partial y}={1\over \sqrt{x^2+4y}}$  and this not defined when $x=2, \ y=-1$  So $f(x,y)$ no satisfy lipshtize condition in any rectangular has (2,-1), Lipshtize condition including uniqueness of solution, so no contradict with the existence and uniqueness.  True ?  If this also wrong I well be delet it , I answered by the same way of my teacher :(


Evaluation of $\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7}$

Evaluation of $$\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7} = $$   $\bf{My\; Try::}$ I have solved Using Direct formula::  $$\sin \frac{\pi}{n}\cdot \sin \frac{2\pi}{n}\cdot......\sin \frac{(n-1)\pi}{n} = \frac{n}{2^{n-1}}$$  Now Put $n=7\;,$ We get   $$\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7}\cdot \sin \frac{4\pi}{7}\cdot \sin \frac{5\pi}{7}\cdot \sin \frac{6\pi}{7}=\frac{7}{2^{7-1}}$$  So $$\sin \frac{\pi}{7}\cdot \sin \frac{2\pi}{7}\cdot \sin \frac{3\pi}{7} =\frac{\sqrt{7}}{8}$$  Now my question is how can we solve it without using Direct Formula, Help me  Thanks


How many CPU cores should be in my MacBook Air?

It looks like something's seriously wrong...  My Air should have 4 cores. However, I saw that the number of cores has sunk to 2 when I was going to make a new virtual machine...  I checked out what System Information says and the result doesn't match with the one I get by running htop in Terminal. Please, check out these screenshots:   htop:    System Information:    I don't understand... Any help is hugely appreciated!


Prove the surjectivity of this injective linear map

I am working on the following problem.  Let $g : V\to V$ be linear and injective, where $V$ is a vector space over the field K. Prove that, if $V$ is finite-dimensional, then $g$ is surjective.  In an attempt to solve the problem, I have done the following.  I first chose a basis $\{e_1, \ldots, e_n\}$ for $V$ (assuming that $\dim(V) = n$) and considered the images under g of $e_1, \ldots, e_n.$    I then attempted to prove the required statement by contradiction. I assumed that $g$ is not surjective. Then $\exists \space v_d\in V$ s.t. (such that), $\forall \space v_c \in V \space \forall \space \gamma_1, \ldots, \gamma_n \in K$, we have that $\gamma_1 g(e_1) + \ldots + \gamma_n g(e_n) \not= v_d.$ $(*)$  My next thought was that, if I could show that the vectors $g(e_1), \ldots, g(e_n)$ formed a basis of $V$, then $(*)$ would imply that no linear combination of these vectors was equal to $v_d$, contradicting the definition of a basis. Consequently, I managed to show that $g(e_1), \ldots, g(e_n)$ are linearly independent. However, I am now struggling to show that $g(e_1), \ldots, g(e_n)$ span $V$. I would appreciate any hints which could help me progress.  NB: Firstly, the question tells me not to use the Rank-Nullity Theorem. Secondly, I am aware that, since $g$ is injective, $\ker(g) = \{0\}.$


Cannot dual boot Ubuntu 14.04 LTS along with Windows 8.1

Got a brand new Lenovo G 510 laptop with the following specs:- aled i5-4200m , 8 GB RAM ,1 TB HDD, 2 GB AMD-RADEON GRAPHICS CARD with Windows 8.1.  I installed Ubuntu 14.04, alloting  around 150 GB, inclusive of 8 gb for swap and  10 gb  for bios space( where bootloader location was set) , but I am not able to dual boot alongside Windows 8.1. I installed Ubuntu in Legacy Mode coz I couldn't boot from USB in UEFI MODE. Ubuntu is installed, but it wouldn't load. It goes directly to WIndows 8.1. I also updated grub, but wouldn't work. Please help me to sort this out.  Thanks in advance.


let response = {     data1: {        names: ["John", "jim"]     },     data2: {        ages: [34, 24]     } }  I want: data: {    names: ["John", "jim"],    ages: [34,24] }  Is there a way to merge these into 1 object without referencing response.data1 and response.data2?  I know I can do const newObj = {...response.data1, ...response.data2} or Object.assign({}, response.data1, response.data1)...  Can I do via a for in loop?


Is there a plan to introduce HiDPI images for the site logo?

It's a small irritation, but I wondered if there were plans afoot to add HiDPI images for the site logos.


How do I call one constructor from another in Java?

Is it possible to call a constructor from another (within the same class, not from a subclass)? If yes how? And what could be the best way to call another constructor (if there are several ways to do it)?


What tests to use for zero-inflated count data that does not fit a poisson distribution? (N=2500)

I have a dataset of roughly 2500 people. One of the variables I have is the number of days people shared different types of content on a social media platform. The most frequent value is 0, with low means and variance about double the mean. The range is also extremely high. I would like to test whether or not a number of variables (mostly nominal and ordinal) have an effect on the number of days people share data. I checked to see if my data fit a poisson distribution but it does not. Can someone please recommend a test I could use for this overdispersed zero-inflated data? Or a transformation?  EDIT: I was actually not looking to build a regression model, but test for significant differences (similar to a t-test). I've tried recoding the shared days into a binary variable (0 days shared and 1 or more days shared) but did not see any differences.  Thanks, Geo


You probably know about question duplicates. I was thinking you could take that scenario, except in answers to try to prevent spam answers and exact duplicates of an answer that already answered the question.


I am doing a zooming in and out animation for symbols. And it suppose to have an edge glow, like in the example photo.    Is it possible to achieve without volumetric lighting because the lighting of the symbol should not be affected. I also get a grainy effect for some reason and I want the background to be completely black.  p.s. The symbol is floating in the air and has no objects around it, so emission on the sides wont be visible.


Getting 'no such file or directory' even though the file is clearly there

I'm having a perplexing issue. If I try to run a script via:  root@myServer:~/dig# ./minerd.sh   I get:  -bash: ./minerd.sh: No such file or directory   If I try:  root@myServer:~/dig# ~/dig/minerd.sh   I still get:  -bash: /root/dig/minerd.sh: No such file or directory   If I do:  root@myServer:~/dig# ls ~/dig/minerd.sh   Then I get:  /root/dig/minerd.sh   So, the file is clearly there. I have also previously done chmod +x on it. But still, its not allowing me to run it for some reason. What am I doing wrong?  Edit: Even moving the file to a different name doesn't work:  root@myServer:~/dig# mv minerd.sh test.sh root@myServer:~/dig# ./test.sh -bash: ./test.sh: No such file or directory


I am working with Drupal Profile 2 . Based on User Input Yes/No . I would like to place the selection fields accordingly .  Like If the experience Field if YES. I want to present Employer details Fields and if no . No Fields displayed.  Please suggest if this is possible or any modules available to do this.


A sphere of radius R is rolling without slipping with a velocity v and collides inelastically with a step of height h < R. What is the minimum velocity for which the sphere will be over the step?    Relevant equations  Total kinetic energy (maybe): $\frac{1}{2}I\omega^{2}+\frac{1}{2}mv^2$  Gravitational potential energy: $mgh$   Moment of inertia about a point a distance d from the CM from de center of mass: $I=I_{cm}+md^{2}$ Rolling without slliping  $v=\omega R$  A discussion of the problem This problem is confusing to me: I know the collision is inelastic so there is no conservation of kinetic energy, there is torque when the sphere pivots the step so the angular momentum is not conserved either, the linear momentum doesn't give a lot information and even though I tried to see what condition needs the torque about the pivot point (to give a net torque in the direction of rotation and thus passing the step), I'm not able to see which torque can overcome the one from gravity which doesn't let the sphere slide up:    The sphere has an angular velocity, but I'm missing something conceptual because I can't figure out how to formally state that the angular momentum changed the right amount so that the sphere made it past the step.  The attempt at a solution  My (almost certainly wrong) attempt was to say that the sphere lost kinetic energy because of the change on potential energy:  $\frac{1}{2}I\omega^{2}+\frac{1}{2}mv^2 +mgR = mg(R+h)\\ v=\sqrt{\frac{10}{7}gh} $  I hope you can help me :)


prove of sum of n real numbers greater than n given product is one

If the product of $n$ positive real numbers is $1$.Then prove that their sum is never less than $n$.


Passport or driver license when travelling from California to Seattle?

Do I need my passport to travel from California to Seattle? I'm planning to travel on October 7,  2019.  I need an answer if I don't need my passport to travel seattle or do I just need ID to present to travel Seattle.  I am US citizen.


Hydrostatic pressure at the center of a water planet

If we take an imaginary planet which consists entirely of water (i.e. a big ball of water in space), what would be the pressure at the center of it?  My friend argued that it would be zero, since the forces coming from every direction would cancel out, furthermore, at the center gravity is zero. I find this very hard to believe, but couldn't point out the fallacy in his argument (I'm a biologist).  What is the true answer?


Obfuscate or remove source from Python Wheel?

I want to distribute python code in packages, however it is proprietary code that will be stored on client's servers so I do not wish to share the source.  Is it possible to produce a Python Wheel with obfuscated code or removed code?


Is a 37 minute layover in MSP(Minneapolis Saint Paul International Airport) enough time?

I am buying a flight to KIX (Kansai International Airport) from CMH (Columbus Ohio) which runs through MSP. I am an Australian Citizen currently in the USA. There is a layover time of 37 minutes at MSP.  The whole trip from CMH to KIX was made in a single purchase, but I did book it through student universe rather than the airlines themselves.  I will not have any checked baggage (only hand luggage).   Will I have enough time to make the tranfer?  I have 72 hours to cancel the flight if need be so I can rebook if necessary, but I'd rather not as the other options are a lot more expensive.


Direct installation of eclipse neon in ubuntu 16.04 LTS

I just installed Eclipse Neon for ubuntu without using terminal , I unarchived it and ran the program and it installed like in windows. Now when I type eclipse in terminal it can't open it.  I am thinking that any software that is not installed using terminal can't be accessed from it, am I right?   It asks me to install eclipse by using sudo apt install eclipse-platform , which means Terminal otherwise my OS has no idea if any program named eclipse is already installed.


I need to select entities with specific dates.   How should the following be formatted. Do I need to parse 15-May-2010  Also how I get the error page.   function events2() {  $query = new EntityFieldQuery(); $query   ->entityCondition('entity_type', 'node', '=')   ->propertyCondition('status', 1, '=')   ->propertyCondition('type', 'event')     ->propertyCondition('field_event_date', '15-May-2010', '=');  $result = $query->execute();   return $result;  }


I have had some  wireless USB problems and I have decided to just try and use the piggyback-a-laptop method.I have an Ethernet cord, a Ubuntu 15.04 Desktop and a Peppermint 5 laptop.I have tried the usual methods, I have not done any IP address and I am kinda frustrated, I've heard stuff about gateway problems, I might go crawling back to windows after 6 years of Linux  All help is greatly appreciated


LASERS: How do we get all the emitted photons of equal wavelength & equal phase?

As far as the working of lasers is concerned, I was convinced till the part that the light flashes on a ruby stone and the electrons are excited and then again go back to their ground state and then they emit the photons(stimulated emission). This emitted photons in turn are absorbed by electrons of other atoms and this continues...   The photons emitted are emitted in all the directions. But they are reflected again and again such that they all get in a straight line. But, each reflection would have taken up some energy from photon hence, wavelength would change. And it is not certain that all the photons will undergo same number of reflections and it isn't certain either that all the excited electrons will undergo same transitions. Then how do we get resultant light that is of one wavelength.  Nor, am I convinced that all the emitted photons will be in phase with each other. That is coherence, right?  P.S.: I am not getting this concept well :(


Getting all posts from an XMLRPC request

I'm using the  module fetch posts from my website like so:  #!/usr/bin/perl use XMLRPC::Lite;  my $result = XMLRPC::Lite->proxy('http://example.com/xmlrpc.php)    ->call('wp.getPosts', '', 'admin', 'xxxxx', {post_type => "tribe_events', number => 20});   This returns 20 posts. If I don't include the number property, it returns 10 results by default. Let's say I want to get all the posts. Is there a way to do it without setting some arbitrarily large number for the number property? Are these results paged somehow?


Infinite number of intermediate fields between K(u,v) and K

$K$ is an infinite field with char $K =p >0$ and suppose $L=K(u,v)$ where $u^p, v^p\in K $and $[L:K]=p^2$. Show that there exist infinite number of distinct intermediate fields between $K$ and $ L$.   This is a homework problem.  Attempt: If we can prove $K(u+av)\not=K(u+bv)$ for $a\neq b$ with $a,b\in K$, then clearly we have infinite number of intermediate fields. Now suppose: $K(u+av)=K(u+bv)\implies (u+av) - (u+bv) \in K(u+av)\implies (a-b)v\in K(u+av)$  Don't know where to go from here. Also would appreciate if the proof is elementary and does not use Galois Theory.


I'm working on implementing a workflow which will start automatically on change/creation (which is working). The issue is that there are a few folders which need cross-department approval. Is there a way for a workflow to check which folder in the document library the file is in before assigning Approval tasks?   Ex) In the below structure, I would need File A to be approved by Ann, Bob, and Chris. Meanwhile, File B would need to be approved by Dan, Eric, and Fred.  Dept 1 | |- Folder 1 |  | |  |- File A | |- Folder 2 |  | |  |- File B


Why is "hopefully" treated so mercilessly?

Is the word "hopefully" unjustly treated? We don't like the sentence:  "Hopefully, my ship is just over the horizon and due in real soon now."  But we don't mind saying:  "Happily, the tree fell on that eyesore shed."  "Sadly, the swallows have not returned."  Why is "hopefully" so unwelcome at the adverb party?  ObJoke: From The New Yorker a few years ago, to illustrate proper use of "hopefully:"   Dad (shaving):   Ouch! Damn! Son:             What's wrong? Dad:             I cut my chin! Son (hopefully): Off?


What is the name of this Ubuntu program?

A couple month ago I installed a bunch of clipboard manager programs in Ubuntu, tried them out and then removed them. I must have missed one of these and now it keeps bug me in my daily usage. I need some help to identify the name of this program because the program itself provides very limited information.  This clipboard program has below characteristics: 1. It occupies hotkey Ctrl+;. When I press this hotkey, the clipboard history will pop out. It happens in bash, Chrome, Eclipse IDE, and etc, wherever it is text inputable. This is kind of annoying because it overrides my other hotkeys inside these applications. 2. Very laconic UI. Like below picture, with only a line "Select to paste", then listing out the clipboard history. There is no program information whatsoever. Right clicking on it and no menu are shown at all.      So far I have tried below ways to identify this program: 1. Browse system monitor for processes with names that could be correlated. 2. Browse through my installation log (dpkg.log) to find my installation history. Without luck, the log is lost. But I was not successful.


Can a non-resident tourist buy a gun for use back in his country?

Can a non-resident tourist buy a gun for use in their countries? I need to buy one for use in Tanzania.


execution of BeforeUpdate caused by: System.StringException: Invalid id: in trigger

I want to update the field in multiple records based on the unique_pile_id__c that is unique for all the multiple records. I am trying to write trigger like this:  trigger opMetricsTrigger on Operational_Metrics__c (before insert,before update)  {     Operational_Metrics__c[] op=null;     Set<Id> opIds = new Set<Id>();     public static boolean run = true;      if(run)     {         run=false;         for (Operational_Metrics__c e : Trigger.new)          {             if(e.Unique_Pile_ID__c != null)                 opIds.add(e.Unique_Pile_ID__c );         }          Map<Id, Operational_Metrics__c> y =              new Map<Id, Operational_Metrics__c>([select Unique_Pile_ID__c,unique_id__C,                  Project__c,Composting_Method__c,Pile_Monitoring_Date__c,Average_Temperature__c,                 Moisture_Test__c,Pile_Monitoring_Action_Taken__c,Other_Action__c,                 Pile_Input_Register_Date__c,Total_Waste_Input_on_the_Pile__c,                 Pile_Completion_Stage__c,Date_Pile_COmpleted__c,Curing_Batch_Register_Date__c,                 No_of_Days__c  from operational_metrics__c                  where Unique_Pile_ID__c in :opIds]);          for (Operational_Metrics__c oc : [select Unique_Pile_ID__c,unique_id__C,              Project__c,Composting_Method__c,Pile_Monitoring_Date__c,Average_Temperature__c,             Moisture_Test__c,Pile_Monitoring_Action_Taken__c,Other_Action__c,             Pile_Input_Register_Date__c,Total_Waste_Input_on_the_Pile__c,             Pile_Completion_Stage__c,Date_Pile_COmpleted__c,Curing_Batch_Register_Date__c,             No_of_Days__c  from operational_metrics__c where Unique_Pile_ID__c in :opIds])          {             System.debug('oc '+y.get(oc.Unique_Pile_ID__c));         }       } }   But when I am saving a record it is throwing:      execution of BeforeUpdate caused by: System.StringException: Invalid id: 10-Ber1: External entry point    Here 10-Ber1 is the unique_pile_id__c. Could anyone help me out?


Using both “one’s” and “their” to refer to the same entity

Consider this example:     Sustainability management in large organisations is an important activity that helps to achieve one’s business goals while at the same time reducing their environmental impact and improving benefits to wider society."   Does it make sense to use both one’s and their to refer to organisations in the quoted sentence above?


Modifying cat command to number paragraphs and display last paragraph only

I have a text file for which I need to do three things:   Modify the "cat" command to highlight keywords whilst showing the complete contents of the file.  Modify the "cat" command to automatically number the paragraphs. These are separated by a single blank line.  Modify the "cat" command to display the final paragraph only.    The tricky part is that all of these need to be done by modifying the cat command.   I've seen many forum posts explaining that cat is not meant for this - and I can entirely see why. However, the challenge is that I have to use cat!


Leafpad from Snap not works and Gedit is too slow!

I have just installed Ubuntu 20.04 and get many problems. #1: I couldn't install Leafpad from apt-get. (apt-get install leafpad) I have install Leafpad from Snap and get many problems! Problems: a) Leafpad can't see my printer. I have resolved this issue with: "sudo snap connect inkscape:cups-control :cups-control" b) Leafpad screen freezes when I scroll. I can go to the bottom os the document. But the screen is not refresh in real time. When I click in a specific line to type, this line loads a different content. c) I can't edit documents outside my folder. I use to edit PHP and HTML files in: /var/www/html By now, I can't edit this files. I can't open the document using PcManFm (right button and click: Edit using Leafpad). But using Gedit it works! If I try using terminal: carlos@carlos-desk:/var/www/html$ leafpad gmaps.js  Gtk-Message: 18:48:52.837: Failed to load module "gail" Gtk-Message: 18:48:52.837: Failed to load module "atk-bridge" carlos@carlos-desk:/var/www/html$


Is a comma necessary in "What’s funny, is …"?

In the sentence     What’s funny is Cat’s dry humour.   Wouldn’t it be better to put a comma after “funny”:     What’s funny, is Cat’s dry humour.   This question entails a (at the time of writing) heated discussion in the .


Indian living in France traveling to Morocco

I'm an Indian currently living in France. I have an Indian Passport and a French Titre de Séjour (Resident card) valid up to the end of 2019. I wish to travel to Morocco in May.  First of all, can I travel to Morocco with my French carte séjour? If not, what is the actual process? Can I apply for the Moroccan visa here in France?