[after edit 1] I have seen the other answers here in SO, and from looking at my code, I find that I am adhering to the principle of Java's pass-by-value-of-reference. But still my array is not getting sorted. Please can someone point out any errors I am making in my code?  [after edit 2] Found the problem. It was nothing to do with array passing. In my merge method, it should be if (end-start<=0) not the other way round!   I am trying to implement mergesort. However, I am unable to display values of my array and am unsure of how to pass my arrays in Java such that the original array can be modified.   How can I modify my current code to display the values of the sorted array?  I , but doesnt this mean that the original array gets modified?  CODE:  I am calling mergesort method from my main method.  public static void main(String[] args) {         int[] qn = {10,22,33,4,5,6,1};         qn= mergesort(qn,0,qn.length-1);         for (int i=0;i<qn.length;i++){ //print to see values if sorted/not                System.out.print(qn[i]+ " ");         }      }  public static int[] mergesort(int[] arr,int start,int end){             int mid = (end+start)/2;         if (end - start<=0){             return arr;         }             else if (end-start>=1){                  arr=mergesort(arr,start,mid);             arr=mergesort(arr,mid+1,end);          }             arr=merge(arr,start,end);             for (int i=0;i<arr.length;i++){                    System.out.print(arr[i]+ " ");             }             System.out.println();             return arr;     }      public static int[] merge(int[] arr,int start,int end){             int mid= (start+end)/2;         if(start-end<=0){             return arr;         }          int a= start; int b = mid+1;         while (a<=mid && b <=end){             if (arr[b]<arr[a]){             int tmp = arr[b++];                 for(int i=++mid;i>a;i--){                 arr[i]=arr[i-1];                 }             arr[a++]=tmp;                     }             else if (arr[b]>arr[a]){             a++;             }             else{ //arr[b]=arr[a]                 if(a==mid && b == end){                 break; //all between mid and end will be equal too                  }                 int tmp= arr[b++];                             a++;                 for (int i=++mid;i>a;i--){                 arr[i]=arr[i-1];                 }                 arr[a++]=tmp;                 //a++;                 //b++;             }                     }             return arr;     }     }   modified my answer based on Manu's below. but it's still not working. Attaching code below:  public static void mergesort(int[] arr,int start,int end){         int mid = (end+start)/2;     if (end - start<=0){         return;     }         else if (end-start>=1){              mergesort(arr,start,mid);         mergesort(arr,mid+1,end);      }         merge(arr,start,end);         for (int i=0;i<arr.length;i++){                System.out.print(arr[i]+ " ");         }         System.out.println();         return; }  public static void merge(int[] arr,int start,int end){         int mid= (start+end)/2;     if(start-end<=0){         return;     }      int a= start; int b = mid+1;     while (a<=mid && b <=end){         if (arr[b]<arr[a]){         int tmp = arr[b++];             for(int i=++mid;i>a;i--){             arr[i]=arr[i-1];             }         arr[a++]=tmp;                 }         else if (arr[b]>arr[a]){         a++;         }         else{ //arr[b]=arr[a]             if(a==mid && b == end){             break; //all between mid and end will be equal too (pearl)             }             int tmp= arr[b++];                         a++;             for (int i=++mid;i>a;i--){             arr[i]=arr[i-1];             }             arr[a++]=tmp;             //a++;             //b++;         }                 }         return; } }


How to get only the name of the path with python?

I have the following string :   a = "/home/user/Downloads/repo/test.txt"   My goal is just to create a string which contains only test, hwo can I do this ?  actually a comes from   f = tkFileDialog.asksaveasfile(mode='w', defaultextension=".txt")   and a is equal to a = f.name  but I realized f.name does not give me just the name of the file.


Can I transfer or sync purchased as well as non-purchased songs from my iPhone to my computer?

So, I wiped my drive clean on my MacBook and reinstalled the OS. Happily the best of my music was safe on my iPhone and I figured it would easily flow back to my iTunes library.  Not so happily, I can't seem to figure out how to get this music, which is mine, to the laptop, which is mine, from the iphone, which is mine.    I don't want to jailbreak my phone just for this one task, I'm running iOS 4.2.1 on an iPhone 3G and my MacBook 5,1 runs OS X version 10.6.5.  I would like my music back.  How to do this?


The scale of my map is wrong, no matter what coordinate system I use in my project. The map and all objects show the correct coordinates but the scale of the map shows nonsense and the measurement tool gives wrong dimension.   The map should be like 1:10000 but qgis shows 1:1. Anyone an idea?


Are there any galois fields which consist of product of two primes, as in $\mathrm{GF}(2\cdot 3) = \mathrm{GF}(6)$?


Hi I wrote that html codes and I want change selected item by using jQuery  <select id="slc">  <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select>   I tried this but I can't change  $("#slc").val("2");  $("#slc").prop("selectedIndex", 1);


I'm Trying to make a door that opens when you shoot an arrow in the middle, but I can't find a way to add coordinates to the parameters. Is there a way? (the current working command is /testfor @e[type=Arrow] )


deleting a package from apt package list

when ever i run apt-get update i got this  E: The repository 'http://ppa.launchpad.net/and471/kazam-daily-stable/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default.  when i went to that link i found that there was no release for ubuntu focal so i think that's why its giving this err so what ache me is that i don't even need this package anymore and I've deleted it in a while (that's at least what i think ) and this message is really annoying me  what should i do pls help that noob !


I've got Windows 7 with Wubi 11.10 installed. I would like to upgrade to 12.04 but I'm not sure what the best path would be.  I'm not skilled enough to use Ubuntu all the time, and my iPhone requires me to run some Windows version for the damn iTunes software. I would love to run Windows XP but I can't figure out how to install it via USB -- my computer has no cd drive.  I'd like to run Windows XP and Wubi 12.04 on top of that. Or, perhaps, Ubuntu 12.04 natively and Windows XP alongside of that. So I guess I have 2 questions:   (lazy) Should I upgrade my Wubi from inside Ubuntu, or should I remove Wubi 11.10 from within Windows and install a brand new Wubi 12.04? (proper) How can I install Windows XP and Ubuntu 12.04 alongside each other?   Update: I am going to create a separate question post about the above #2 question... I realize it's wrong to ask two questions in one post when they are that different.


What is the difference between String and string in C#?

Example (note the case):  string s = "Hello world!"; String s = "Hello world!";   What are the guidelines for the use of each? And what are the differences?


I'm making a Nintendo NES console. I'm using the latest version of blender, 2.9. All the other versions before this wouldn't work either.  I have modeled the ENTIRE console, but when i add the bevel modifier, nothing happens, literally nothing, the edges are still just as sharp and i see no effect when i try to add segments. I even tried to bevel it manually with CTRL + B, it works but i can't bevel a big complicated model with that many verts, even when i select the whole object and do the CTRL + B it ends up bad. what exactly is the problem? Also the bevel modifier works with simple cubes and simple shaped objects that don't have so many cuts in them but that's it. I researched tons and couldn't find anything. Here is my NES, it looks ok, but it is too sharp on the edges, not smooth like the real console. When I apply the bevel modifier, it still looks exactly like this with no change.


Is total boundedness a topological property?

If a metrizable topological space is totally bounded with one metric, is it totally bounded with all others? A related, stronger question: if every metrization of a topological space is bounded, are they all totally bounded?


Importance of function prototype (declarations) in header files

I was writing some code in a project spanning multiple *.c and *.h files (i guess I can call the *.c and *.h as modules or programs) and forgot to declare a newly created "getter" function in the header file for particular module/program. The header file was included in another module which needed access to that getter function.  Somehow the program worked fine!   I would like to know what is the importance of the declaring function prototypes in the header if the linker is able link object files to sort things out for itself. Duplicate function resolution??? This would mean that linker links by function name by matching it to what is called in function.  How does linker treat the extern variables?


why is everything heavily responding while transferring data to a 32GB USB stick?


Unfinished A Killed/Rollback Transaction

I have killed a transaction 2 days ago but it hasn't finished yet. You can see the situation in the pic. What can i do?


The Wikipedia page () proves that $$f(x) = \begin{cases}  \exp(-1/x),  & \mbox{if }x>0 \\ 0, & \mbox{if }x\le0 \end{cases}$$ is a non-analytic smooth function. But I don't understand why the fact that "the Taylor series of $f$ at the origin converges everywhere [where does "everywhere" mean here?] to $0$" implies the Taylor series converges to $0$ when $x>0$? Can someone explain this in greater detail? I guess there should be a gap in my understanding of power series.


Does a planet/star itself lose mass when it 'emits' gravitational waves?

Orbiting planets and stars can create gravitational waves, . But are they also losing mass-energy. Beside that, the kinetic energy associated with their orbital angular momentum is reduced.  For instance, in September 2015 the LIGO detected the merger of two black holes with masses of $35^{+5}_{-3}$ times and $30^{+3}_{-4}$ times the mass of the Sun (in the source frame), resulting in a post-merger black hole of $62^{+4}_{-3}$ solar masses. The mass–energy of the missing $3.0±0.5$ solar masses was radiated away in the form of gravitational waves.  So it looks like 3 solar masses were lost. But is that mass coming from the stars itself, or from their kinetic energy?


I guess most of you missed the point.  You're suggesting that I have to exploit the system to farm reputation to be able to start using the site productively, rather than start using the site productively to gain reputation.  The system is fundamentally flawed.  Yes, it works; of course it works.  Sort of.  But it works because so many people use it, NOT vice versa.  And so many people use it because it was the first to fill this niche, not because it's fundamentally well-designed.      This discussion aimed primarily at mathematical (and similar) Stack Exchange sites. What I am saying may not apply to others.    How will new users like myself be able to fully participate in Stack Exchange given its current rules and status quo?   Most of the features are locked until a significant reputation threshold is met (voting, commenting, ...) Pretty much all "easy" to "moderate" level difficulty questions have already been asked many times on here, which means:   New users will find it nearly impossible to gain reputation by asking questions, since all simple/common/general questions have already been asked.  This leaves very specific questions to be asked, which, even if they are very good questions, will only glean a few votes/responses. New users will also find it nearly impossible to gain reputation by answering questions, because the new questions that pop up will be very specific in nature (less likely to match our domain of proficiency), difficult to answer (more complicated, deeper), AND we have to compete with a very high volume of users to give an answer that ends up among the best answer(s).    As a result, I feel that Stack Exchange is dominated by a small community of users who built their reputation by "farming" easy questions when the question base of the site was relatively sparse (or even asking then answering their own questions during the site's inception). For the rest of us, it is pretty much an encyclopedia. We are cut off from almost all the interactive components unless we expend a great deal of effort, or perhaps find certain sub-sites to exploit for easy reputation farming (I'm not sure exactly how cross-site reputation functions, so I don't know if this is valid - either way, it's a waste of our time and intelligence).  @Comments saying the above implies I have nothing to contribute to Stack Exchange so the system is working perfectly:  Please think a little more carefully before berating and downvoting this discussion. I can have plenty to contribute just by writing comments to people's answers (often answering other people's questions in the comments to an answer).


Number of generators of $Z_n$ is $\varphi(n)$

Let $G=Z_n$. How can I show that the number of generators $G$ is $\varphi(n)$ whereas $\varphi$ is Euler's totient function?  I know That I need to show here a start of a solution but all my edges had diverged.


How to force a sysadmin to store data in schema other than dbo?

I am using a GUI tool to upload data in my SQL Server 2016 database. The user being used for above task has been granted sysadmin permission I created a dedicated schema to store above data. This schema is owned and default to above said user. The issue is, when i upload data it stores in dbo schema instead of dedicated schema and i couldn't revoke sysadmin priv from this user.  Kindly let me know how to upload data to this dedicated schema without revoking sysadmin priv ?  Thanks


How do i know the shaders and opengl version required are in my pc?

The following question/answer(s) do not fully cover my question  I have a similar PC I am using for internet, but I would like to try gaming (steam-low spec) too. Here is the result of glxinfo | grep OpenGL: OpenGL vendor string: Intel Open Source Technology Center      OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 400 (BSW)      OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.0.8      OpenGL core profile shading language version string: 4.60      OpenGL version string: 3.0 Mesa 20.0.8      OpenGL shading language version string: 1.30      OpenGL context flags: (none)      OpenGL ES profile version string:  OpenGL ES 3.1 Mesa 20.0.8  OpenGL ES profile shading language version string:  OpenGL ES GLSL ES 3.10  I added some extra specs from glxinfo: Vendor: Intel Open Source Technology Center (0x8086) Device: Mesa DRI Intel(R) HD Graphics 400 (BSW) (0x22b1) Version: 20.0.8 Accelerated: yes Video memory: 1536MB Unified memory: yes Preferred profile: core (0x1) Max core profile version: 4.6 Max compat profile version: 3.0 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.1  In the question someone asked earlier, there was no matching answer. Both answers (one in comment) do not match each other. one says profile shading language version string: 4.60 OpenGL version string  determines the shaders your pc has and another answer says to look at OpenGL shading language version string: 1.30  my pc has similar specs, so I would want to know what shaders my pc supports. Also another question: does my pc have OpenGL 4.6 or 3.1? i see two values along two different results from glxinfo?


How much power can be drawn from Apple Lightning port for a device?

I need some help and would love to find a developer to help me figure out how much power can be drawn from the Lightning port for a powered device ... similar to a fan or a camera connected to the Lightning port and how to do it.


query_posts different amount of posts per page

I have a posts_per_page query to paginate multiple post types, which works great! Now though, as it paginates it to show (in this case) 100 posts per page, I'm wondering if you can show 100 on page one, then 300 on page 2 onwards. My markup is as follows:  <?php query_posts( array(      'posts_per_page' => 100,      'post_type' => array( 'regularproducts', 'wpsc-product' ),      'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ), )); ?>  <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>      <?php if ( 'regularproducts' == get_post_type()  ) : ?>          //CONTENT HERE      <?php endif; ?>      <?php if ( 'wpsc-product' == get_post_type()  ) : ?>          //CONTENT HERE      <?php endif; ?>  <?php endwhile; endif; ?>  <?php wp_reset_query(); ?>   I'm not sure if it is at all possible or not, but yes I'd like to show 100 posts on the first page, and 300 on each page thereafter. Any suggestions would be greatly appreciated!


V is a linear space of n dimensions, show that V has subspaces of every dimension between 0 and n.

I think I need to be using induction in this case. i prove the subspace with dimension 0, then assume there is a subspace of k dimensions and then prove that k+1 holds under addition/scalar multiplication aswell.  any hints/advice?


Different output with \useinnertheme in Texlive 2017 and 2018 [beamer]

The following code shows two differents outputs with TeXLive 2017 and Texlive 2018  \documentclass{beamer} \useinnertheme{rounded}  \begin{document}  \begin{frame}{With Texlive 2017}  \begin{enumerate}[a)]   \item  aaaa   \item  bbb \end{enumerate}  \begin{enumerate}[$\bullet$]   \item  cccc   \item  ddd \end{enumerate}  \end{frame} \end{document}   Why is there this difference?


Why didn't R2-D2 and/or C-3PO spill the beans?

In the prequels we see that both C3PO and R2D2 are Anakin's droids and they clearly both know that he's gone over to the dark side.  I would like to know an in-universe answer for the question; Why did they not tell Luke?      that Vader is Anakin?


Setting up the triple integrals for a solid given by $y + x = 4$ and $16 - 4z^2 = y^2$?

I'm trying to set up all six triple integrals to find the volume of the solid that lies in the first octant bounded by the coordinate planes, the plane  $y + x = 4$, and the cylinder $16 - 4z^2 = y^2$.  $3$D graph    I've been able to set up the triple integrals for every other combination except for $dydxdz$ and $dydzdx$, which I am struggling to find the bounds for. I know the volume is $8\pi - 32/3$, but I keep getting an incorrect answer when I set up and calculate dydxdz and dydzdx.  Here's my equation for the projection onto the $xz$-plane, but I'm not sure it is correct/complete:  $xz$-plane projection?    I'd appreciate any help regarding how to find the bounds of dydxdz and dydzdx.


Is displaying a working Field Widget Form on its own possible?

I'm interested in embedding a Field Widget Form out side the context of the whole node edit form.   I have displayed full forms in the past using  but that doesn't seem to apply for solitary Field Forms.   Is displaying a working Field Widget Form possible? What would be the best way to do so?  Both field widgets and "normal" forms seem very alike, so if this is not possible, what would be required to "change" a widget form into a normal form?  This  appears to be asking for something similar but I don't understand the answer.  That answer specifies using ; what I don't understand is how to get the Field Form to be displayed not how to hook it once it is being created.


How to identify if two List are equal regardless of the order?

I have the following 2 objects  List<string> list1 List<string> list2   On list 1 I have 3 items On list 2 I have the same 3 items in a different order.  I need a simple method to return that both lists are equal when they contain the same elements regardless of order


How to insert a date in the database in JavaEE?

I have a variable named targetdate and I would like to insert a value in my form.   In my Controller, I have this:  public static int addStudent(Student studentBean){      int status=0;      try{          Connection con=getConnection();          PreparedStatement ps=con.prepareStatement("insert into students (targetdate) values(?)");          ps.setDate(1,studentBean.getTargetdate());            status=ps.executeUpdate();      }catch(Exception e){System.out.println(e);}      return status;   }   My problem is the line below:   ps.setDate(1,studentBean.getTargetdate());    I have an error message:      the method setDate(int, java.sql.Date) in the type preparedstatement is not applicable for the argument (int, java.util.Date)   I am beginner in Java, I don't understand the problem.


I am preparing a talk and compiled my beamer slides with the handout option:  \documentclass[a4paper,handout,final]{beamer} \usetheme{TUC}   My file beamerthemeTUC.sty says the following:  \mode<all>{   \usefonttheme {TUC}   \usecolortheme{TUC}   \useinnertheme{TUC} }  \mode<presentation>{   \useoutertheme{TUC} }  \mode<handout>{   \useoutertheme{TUC-handout}   But the log file says:     (/Users/tmjb/Library/texmf/tex/latex/TUC/tuc-cd/TUC-Beamer/beamerthemeTUC.sty   (/Users/tmjb/Library/texmf/tex/latex/TUC/tuc-cd/TUC-Beamer/beamerfontthemeTUC.sty)   (/Users/tmjb/Library/texmf/tex/latex/TUC/tuc-cd/TUC-Beamer/beamercolorthemeTUC.sty)   (/Users/tmjb/Library/texmf/tex/latex/TUC/tuc-cd/TUC-Beamer/beamerinnerthemeTUC.sty)   (/Users/tmjb/Library/texmf/tex/latex/TUC/tuc-cd/TUC-Beamer/beamerouterthemeTUC.sty)   (/Users/tmjb/Library/texmf/tex/latex/TUC/tuc-cd/TUC-Beamer/beamerouterthemeTUC-handout.sty   As you can see, besides the fact, that option handout is set, LaTeX loads both style files.  Of course, I have tried different orders, without any change.  What was my mistake?  (The normal TUC theme uses navigation elements, which I wanted to suppress in the printed handout.  It is of absolutely no use in that case ...)


Divisibility question: If $m=a_1x+b_1y$, $n=a_2x+b_2y$ and $a_1b_2-a_2b_1=1$, then prove that $\mathrm{GCD}(m,n)=\mathrm{GCD}(x,y)$

If $m=a_1x+b_1y$, $n=a_2x+b_2y$ and $a_1b_2-a_2b_1=1$, then prove that $\mathrm{GCD}(m,n)=\mathrm{GCD}(x,y)$  May I get a hint, please?


After a longer period of time, I went to visit one of my sites, tasmamiandevilz and a security alert popped up. Never happened to me before, so I did some Googling.. and apparently the sso.anbtr.com is quite common.  The issue is, that all the information I was able to find was on how to remove it from my PC.  The issue is, I am pretty sure it's not a problem of my PC, but rather the website itself. This is the only website where I get the error and I don't seem to have any other symptoms.   Is it possible that the malware would be directly on my site ? How can I get rid of it ?  Thanks.


Null pointer Exception even though setter method is present in Java

I wrote a code for keeping record of indices even after sorting but it is showing me null pointer exception.I read other threads on same topic but still couldn't find.  import java.io.*; import java.util.*;  public class Solution { class Order{     public int index;     public int sum;      public void setIndex(int index){         this.index = index;     }     public void setSum(int sum){         this.sum = sum;     }     public int getSum(){         return this.sum;     }     public int getIndex(){         return this.index;     } } public static void main(String[] args) {     /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */     Scanner sc  = new Scanner(System.in);     int N = sc.nextInt();     Order array[] = new Order[N];     int index = 0;     int sum = 0;     while(index<N){         int input1 = sc.nextInt();         int input2 = sc.nextInt();         //line 32         array[index].setIndex(index);         array[index].setSum(input1+input2);         index++;     }     ArrayList<Order> list = new ArrayList<Order>(Arrays.asList(array));      Collections.sort(list, new Comparator<Order>(){         @Override         public int compare(Order o1, Order o2){             return(Integer.compare(o1.getSum(), o2.getSum()));         }     });      System.out.println(list);  } }   error is like this :  Exception in thread "main" java.lang.NullPointerException at Solution.main(Solution.java:32)   I am passing i, still null pointer why?


My problem is "Prove $\mathbb{Q}(\sqrt{2},\sqrt{3},\sqrt{5}):\mathbb{Q}$ is a simple extension"  I met a similar problem "Prove $\mathbb{Q}(\sqrt{2},\sqrt{3}):\mathbb{Q}$ is a simple extension" and I showed that it is equal to Prove $\mathbb{Q}(\sqrt{2}+\sqrt{3}):\mathbb{Q}$. I let $u=\sqrt{2}+\sqrt{3}$ and deduce that $u-\sqrt{2}=\sqrt{3})$, then square it and prove $\sqrt{2} \in Q(\sqrt{2}+\sqrt{3})$. However, the same technique cannot be applied in the first problem since we have 3 square root.  I actually found a proof for the first problem, by letting $u=\sqrt{2}+\sqrt{3}+\sqrt{5}$ and calculating $u,u^2,..., u^5$ and prove $\sqrt{2},\sqrt{3}\in Q(u)$. Though it's not so nice. Looking for a simpler answer


How check if elements exist in timer sequence

I was wondering would there be a way for me for do a check if an id exist and if exist do my function then check if next id exist  an example: if log2627251 exist do my function then check or wait for log2627252 exist then do function and keep going    var checkExist = setInterval(function() {    if ($('#log2627251').length) {       console.log("if exists do function then find next id");       clearInterval(checkExist);    } }, 100);
Text

Text

Text

Text
     sorry bad english


Rather basic, I'm afraid, but when would you use a relay, and when would you use a transistor?  In a relay the contacts wear out, so why are relays used at all?


Simple linear regression without intercept - Expected Value and Variance Estimator (Slope)

I'm solving an exercise while studying for exam, I have been asked to find the estimator of simple linear model without intercept estimator, its expected value and variance. I got for the Estimator B1 = Sum(xi.yi)/sum(xi)2  Which I think is correct. For Expected value I think E(B1)= E(Sum(xi.yi)/sum(xi)2)=B1 Because numerator is constant and denominator is definitely constant, no? Estimator's Variance I got: 1/(sum(xi)2)2 * var(Sum(xi.yi)) which is constant so, Sum(xi.yi)/(sum(xi)2)2 If this isn't right then for yi should I substitute for the model I got with the estimator and see what i get?


Can i used stock images in a portfolio for university?

I want to get in to a graphic design course in university. I have alot of projects in mind, however i dont know if im allowed to use stock photos...would it be ok if they were in the final piece as well (such as in a magazine cover or a brochure). I also want to do photomanipulation, but i dont know if could use stock photos for that either. Thankyou so much


How to create a shortcut to Windows Update?

I know how to create a shortcut to the configuration screen of Windows Update with this command:  %windir%\System32\rundll32.exe url.dll,FileProtocolHandler wuapp.exe     However is there any way to specifically open this window?    If so, how?


How to place several equations side by side with line breaking

How can I place several equations side by side inside the gather environment with the line breaking working to avoid this equations to exceed the page size. Here goes one example:  \documentclass[12pt,oneside]{report} \usepackage{geometry} \geometry{a4paper,total={170mm,257mm},left=20mm,top=20mm} \usepackage[utf8]{inputenc} \usepackage{amssymb, amsmath, amsthm}  \begin{document} \begin{gather*} u'(x) = p(x)u(x) \rightarrow  \frac{u'(x)}{u(x)} = p(x) \rightarrow \int\frac{u'(x)}{u(x)}dx = \int p(x) dx \rightarrow \ln |u(x)| = \int p(x) dx + k \rightarrow |u(x)| = e^{\int p(x) dx + k} \rightarrow |u(x)| = e^{k}e^{\int p(x) dx} \rightarrow |u(x)| = ke^{\int p(x) dx} \end{gather*} \end{document}   Which generates the equation     that extrapolates the page margins.


Towards the end of , how do I get  $$ \frac{\sqrt{8z + 1} - 1}{2} < w + 1 $$  Here $w = x + y \geq 0, t = (w^2 + w)/2 , z = t + w, x,y \in \mathbb N_{\geq 0}$.  Thanks.


How can I run an external Python function in Blender?

I have written several functions in blender scripting mode. I need to pass their variables through Matlab thanks to the py command (Matlab - Python connection). The problem is that these functions work only in Blender (I have written a simple example below). I was wondering if there is a way to call blender in each python function in order to execute them (Python - Blender connection). I have already read about the possibility to call blender from the script thanks to the "subprocess" function, but I have not understood very well how to do it. A simple function can be: def monkey(x_coord, y_coord, z_coord):     import bpy     bpy.ops.mesh.primitive_monkey_add(size = 2, enter_editmode= False, align = 'WORLD', location = (x_coord, y_coord, z_coord))  How can I modify it in order to run blender everytime the function is called from matlab? Maybe it can be understand better by looking to what happen in matlab. I write my function:  but when I call it from the command window the result is an error:  I think this is due to the fact the the bpy module is only defined in Blender. I was wondering if there was a command to place before import bpy to make Blender run and so, avoid the error.


How to Assign Background Color Using "if" Condition

How can I assign the Background color of a particular Cell in an Open Office? Likewise greater the Somevalues should having Green, and less than value should having Red background?


Union of subextensions of an Extension field is still a field.

I am currently reading Lang’s treatment of Galois theory in his algebra book. However,I am stuck on the proof of corollary 2.6 on page 232. It talks about the union of algebraic sub extensions of E over k. However, I do not see why this should be a field. I know that the set of algebraic elements in E over k is a field but why should this union be one also. Can someone care to explain?


How can I add a LinkedIn plugin script in a Stack Overflow profile's "About Me"?

I want to add my LinkedIn ID plugin to my Stack Overflow profile. I generated the plugin script, but how can I add this here?      Or HTML  <a href="https://bd.linkedin.com/pub/<name>/5a/135/489"><img src="https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x33.png" width="160" height="33" border="0" alt="View <name>'s profile on LinkedIn"/>   Something like this:


Everytime you kill things with your super the killfeed says:   "[player] Generated # orbs of light"  They don't seem to be in my inventory anywhere or on the ground to pick up, what are they for?


Why is thrombin time longer than prothrombin time?

Thrombin time (TT) and prothrombin time (PT) are two different clinical measures of blood plasma coagulation.  Both clotting tests end with the conversion of fibrinogen to fibrin; however, the TT skips directly to this conversion by adding thrombin reagent, while PT involves the entire extrinsic pathway. Despite the fact that PT involves the same clotting steps as TT plus several others, the normal range for TT is slightly longer than the normal range for PT.   Why is the normal range for TT longer than the normal range for PT when the former skips several clotting steps? Without background information about the normal ranges, it seems much more logical for the prothrombin clotting test to take longer.


What is the source of the electric field in a RF cavity that causes particle acceleration?

Charged particles are accelerated through a RF cavity:  -Is the electric field accelerating the particles from the electromagnetic field itself?  -Or, is the electric field accelerating the particles from charges on the surface of the conductive cavity being moved to form a capacitor by interaction with the electromagnetic field?


To make a long story short, I have a small cluster that I will be setting up as an MPICH cluster. However, the cluster will not have an internet connect so, I will have to transfer the files via usb drive.  I was wondering if anyone knows where the packages are for installing nfs-server, nfs-client, and keychain?


I tried to install amdgpu-pro in Zesty but encountered an error when building the kernel module:  Setting up amdgpu-pro-dkms (16.60-379184) ... Loading new amdgpu-pro-16.60-379184 DKMS files... Building for 4.10.0-13-generic Building for architecture x86_64 Building initial module for 4.10.0-13-generic ERROR (dkms apport): kernel package linux-headers-4.10.0-13-generic is not supported Error! Bad return status for module build on kernel: 4.10.0-13-generic (x86_64) Consult /var/lib/dkms/amdgpu-pro/16.60-379184/build/make.log for more information.   The contents of /var/lib/dkms/amdgpu-pro/16.60-379184/build/make.log are as follows:  DKMS make.log for amdgpu-pro-16.60-379184 for kernel 4.10.0-13-generic (x86_64) Thu Apr 13 15:09:27 PDT 2017 make: Entering directory '/usr/src/linux-headers-4.10.0-13-generic'   LD      /var/lib/dkms/amdgpu-pro/16.60-379184/build/built-in.o   LD      /var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/built-in.o   CC [M]  /var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/amdgpu_drv.o In file included from /var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,                  from /var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/../backport/backport.h:5,                  from <command-line>:0: /var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/../amdgpu/amdgpu.h:37:25: fatal error: linux/fence.h: No such file or directory  #include <linux/fence.h>                          ^ compilation terminated. scripts/Makefile.build:294: recipe for target '/var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/amdgpu_drv.o' failed make[2]: *** [/var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu/amdgpu_drv.o] Error 1 scripts/Makefile.build:567: recipe for target '/var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu' failed make[1]: *** [/var/lib/dkms/amdgpu-pro/16.60-379184/build/amd/amdgpu] Error 2 Makefile:1524: recipe for target '_module_/var/lib/dkms/amdgpu-pro/16.60-379184/build' failed make: *** [_module_/var/lib/dkms/amdgpu-pro/16.60-379184/build] Error 2 make: Leaving directory '/usr/src/linux-headers-4.10.0-13-generic'   How do I get the driver working in 17.04?


How to redirect node on paypal for payment before save in drupal 7?

I need to add payment functionality on specific node type. After registration user can create a node. But node will be shown when user will pay. And after first time payment user got a role .. Means next time he will create node without payment.


Prove or disprove : Every factor ring of an integral domain is an integral domain

I want to know      Every factor ring of an integral domain is an integral domain   is true or not.  Is there any relevant theorem or cor, to prove or disprove this statement?


tikz variable value not change in foreach loop

Just for demo purpose, below logic only run into if clause but never run to else clause.  \documentclass[tikz,border=2pt]{standalone} \usepackage{ifthen} \begin{document}     \begin{tikzpicture}     \pgfmathtruncatemacro{\x}{10}     \foreach \i in {1,...,4} {         \ifthenelse{\x = 0}{             \pgfmathtruncatemacro{\x}{1}              \draw (0,0) circle (\i);          }{             \pgfmathtruncatemacro{\x}{0}             \draw[red,line width=2pt] (0,0) circle (\i);          }          }     \end{tikzpicture} \end{document}   Maybe the variable \x define is wrong! how can I get the varialbe \x value changed each time the if check run? Now the if clause always think \x = 0. but actually I changed it in the if clause.


We know that $0^0$ is indeterminate.  But if do this:  $$(1+x)^n=(0+(1+x))^n=C(n,0)\cdot ((0)^0)((1+x)^n) + \cdots$$  we get $$(1+x)^n=(0^0)\cdot(1+x)^n$$  So, $0^0$ must be equal to $1$.  What is wrong in this? Or am I mistaking $0^0$ as indeterminate?  Other threads are somewhat similar but not exactly the one I am asking.


Where is the documentation for the KDE Desktop (Plasma?)

I know people rarely bother to document their stuff these days, but I'm still hopeful.


How do we access the second last copied stuff on our clipboard?  (Windows Vista Home Premium 32-bit sp2)  I am still interested if the solution is not a straightforward one and requires hacks


This is an identity put forward by Ramanujan (often used as "proof" of his genius):  $$ \frac{2\sqrt{2}}{9801} \sum_{k=0}^\infty \frac{ (4k)! (1103+26390k) }{ (k!)^4 396^{4k} } = \frac1{\pi} $$  How does one go about proving this? Alternatively, what does one need to know to be able to do so?  Any help is appreciated.


How to get material_index from individual faces in a Blender 2.8 Script

Did you know, you can assign different materials (eg:colors) to different faces in a polygon? Before Blender 2.8 you could get a list of the materials used for each Face with: for aFace in anObject.data.polygons : print ("material: ", face.material_index)  However, in Blender 2.8, I guess 'material_index' is no longer a property of polygons. I'll show you: >>> anObject.data.polygons.material_index Traceback (most recent call last):   File "<blender_console>", line 1, in <module> AttributeError: 'bpy_prop_collection' object has no attribute 'material_index'  How can I walk through polygons or faces and get the material_index for each? Trying to write a file exporter for faces and their colors.


How are hyperlanes operated or controlled in Star Wars?

In Star Wars,  are:  A hyperlane, also known as a hyperroute, hyperway, hyperspace route, hyperspace lane, spacelane, star-route, or trade route, was an area of space that had been deemed safe for hyperspace travel. The largest were known as super-hyperroutes.  And the wikia's more extensive answer is:  Hyperlanes were routes through space in which a spaceship could safely travel without colliding with a body in space, or some other phenomenon such as a black hole. There were about eight major routes in the galaxy, with hundreds of secondary routes and thousands of minor ones. Scouting new hyperspace routes was an incredibly dangerous task for an explorer. In many parts of the galaxy hyperlanes also involved periodic re-entry into realspace. This was so as to manually maneuver the ship towards the next hyper-point. It was in these spots that pirate raids were common. The Galactic Empire and other governments often sought to lessen this threat by constructing deep-space platforms at hyper-points. Mine fields and probe droids were also deployed.  But how do they actually work?  Are they merely coordinates? Is there some reason why in vastness of space there are so few of them?  "Hundreds" and "Thousands" is actually a pittance compared to the incredible size of the Galaxy. Why are they so rare and valuable?  From the description of :  During the height of the Sith Empire, two Republic hyperspace explorers stumbled upon the Sith mausoleum planet of Korriban by chance. The siblings, Gav and Jori Daragon, hoped to discover a lucrative new hyperspace route that would help them pay off their enormous debts.  How would one "sell" a new hyperlane?  It seems like once one other person has the coordinates, it diminishes in value exponentially as the coordinates are "sold" again.  Once someone knows the coordinates are safe, they can share or sell those coordinates.  In fact, it is baffling to why droids couldn't be used to the same thing the Daragons are doing to unlock virtually every possible route in a region in a relatively short period of time. Especially considered the rather lowly peg on the totem pole droids occupy in Star Wars culture.  Both sentient and expendable?  Seems like a good explorer to me. I can't remember a single point in movies or books where traveling by hyperspace is controlled in any way.  We don't see ships being stopped for tolls, we don't see anyone buying a new hyperlane or even really worrying about them - they just punch in some numbers and...


Let $G$ be a set and $*:G\times G \rightarrow G$ an operation with:  (i) $(G,*)$ is associative  (ii) There is a $f \in G$ with $f*a=a$ for all $a \in G$  (iii) For every $a \in G$ exists a $b \in G$ with $b*a=f$  First show that from $b*a=f$ concludes $a*b=f$  Then show that $(G,*)$ is a group.


If T is a linear transformation on $R^n$ with $||T - I||<1$, prove that $T$ is invertible and that the series $\sum_{k=0}^\infty(I-T)^k$ converges absolutely to $T^{-1}.$ (Use the geometric series)


I want to delete this question. The results I had trouble with while proving them are false. Furthermore, the question was marked as duplicate by (at least) five users.


Given $n \times n$ matrices, $A$ and $B$, show that ${\rm rank}(AB) \leq {\rm rank}(A)$

I don't know if I'm missing something out but is this just not proved by saying ${\rm Im} (AB)$ subspace of ${\rm Im}(A)$ so ${\rm rank}(AB) \leq {\rm rank}(A)$?


How to charge a newly bought Nexus 5X(lithium polymer)?

I just bought a new Nexus 5X, how should I first charge it? (It's a lithium polymer battery)  I plugged it in the charger and the phone turned on. Phone almost had a full charge already though (out of the box).  I usually left my new phones to charge for 12 hours before using them or unplugging them from the charger. Now I know batteries have evolved, so I'm not sure this is beneficial anymore.  I'm not sure what I'm supposed to do for the first charge and it doesn't come with instructions about it.  Any advice?  Thanks!


Why doesn't the normal force make things move?

Why won't two blocks kept in contact on a horizontal frictionless surface move, due to the normal force? No exterior force is applied to them from any direction (except for gravity).    Ok here's more info  Actually in our physics text there were numerical where two boxes of mass m1 and m2 are kept on frictionless surface and a force is applied to one of them and we have to calculate their acceleration(a = F/(m1+ m2)) and normal force(N = m2/(m1+m2) *F)   And my physics teacher also said that "whenever two bodies are in contact there always exist normal force"(exact words)  So I thought if no external force is applied horizontally or vertical upwards to such a system of blocks(here m1 and m2) on a frictionless surface then why they don't move?  And what is the max N for a system of blocks(for simplification lets take two blocks only) and can that max N overcome friction if kept on a surface with friction  I hope you guys understand my confusion here


Finite abelian groups - direct sum of cyclic subgroup

Let $G$ be a finite abelian $p$-group. It is quite elementary to see that if $g \in G$ is an element of maximal order (and thus its span is a cyclic subgroup of $G$ of maximal order) then $G$ can be written as the direct sum $G=\langle g \rangle \oplus H$ for some $H \leq G$ (subgroup of $G$). For a proof see  for example (page 2).  My question: Do we need that $G$ is a $p$-group or does it also work for arbitrary finite abelian groups?   I think it is wrong for general groups because I looked around quite a bit and always only found the above theorem, but I could not find a counter-example.


Problem regarding proving a field to be finite.

The question is -     If multiplicative group $F^\ast$ of nonzero elements of a field $F$ is   cyclic, then $F$ is finite.   I have proved this problem partially, which goes as follows- $F^\ast = F\backslash\{0\}$, let $F^\ast =<\alpha>$ where $\alpha\in F^\ast$ Now, if we can prove $F^\ast$ if finite, then we are done. Let us assume on contrary $F^\ast$ is infinite. Case 1: If $\operatorname{Char}(F)=p\ne0$. Then $F=F_p(\alpha)$ where $F_p\simeq \Bbb{Z}_p$. Now, $1+\alpha\in F$, if $1+\alpha=0\implies \alpha^2=1\implies O(a)$ is finite, contracdiction. So, $1+\alpha\ne 0\implies1+\alpha\in F^\ast\implies1+\alpha=\alpha^r$ for some $r\in\Bbb{Z}\implies \alpha$ is root of the polynomial $x^r-x-1\in F_p[x]\implies \alpha$ is algebraic over $F_p\implies [F_p(\alpha):F_p]$ is finite(say $m$)$\implies |F_p(\alpha)|=p^m\implies |F|=p^m\implies F^\ast$ is finite, contradiction. Case 2: Now, if $\operatorname{Char}(F)=0$. Then as per hint provided on the book  Since $-1\in F^\ast$ and $\operatorname{Char}(F)=0$, we get a strict positive or strict negative integer $k$ such that $\alpha^k=-1\implies \alpha^{2k}=1$, which contradicts the fact that order of $\alpha$ is infinite. But, I can't understand how using $\operatorname{Char}(F)=0$, we can get such strict positive or strict negative integer $k$(i.e. $k$ is nonzero integer) such that $\alpha^k=-1$? Can anybody clear up my doubts? Thanks for assistance in advance.


Can I enter the UK on my expired British passport if I have a valid South African passport?

I have a valid South African passport and an expired British passport - it expired 18 October 2009. I need to travel to the UK in March 2015. Do I need a visa to get into the UK?


I am using LaTeX version 3.77. I am trying to label my equations but every method appeared online won't seem to work for me for some reason.  \begin{document} Below is the equation I am typing, and I would like it to be numbered [1] \[A_t = P_t^K + B_t + M_t\]  Below is the equation I would like to be numbered [2] \[a_t = p_t^K + b_t + m_t\]   \end{document}


Let $$0 \overset{d_{n+1}}{\rightarrow} G_n \overset{d_n}{\rightarrow} G_{n-1}\overset{d_{n-1}}{\rightarrow}\ldots\overset{d_2}{\rightarrow}G_1 \overset{d_1}{\rightarrow} 0$$ be a sequence of modules and homomorphisms over the commuative ring $R$ such that $d_i \circ d_{i+1}=0$ for all $i=1,..,n-1$, and suppose that $G_i$ has finite length for all $i$. Set $H_i=\ker d_i / \text{im} \, d_{i+1}$. Show that $H_i$ has finite length for all $i$ and that $$\sum_{i=0}^{n} (-1)^i l(H_i)=\sum_{i=0}^{n} (-1)^i l(G_i)$$  It's obvious to see that $H_i$ has finite length by the exact sequence $$0 \to Im \; d_{i+1}\to Ker \; d_i \to Ker \; d_i / Im \; d_{i+1}\to 0$$ But I can indicate that $\sum_{i=0}^{n} (-1)^i l(H_i)=\sum_{i=0}^{n} (-1)^i l(G_i)$. Can anyone help me?


Can I move a working OS (W10) partition nearer the beginning of disk?

I have this disk partition layout - with 2 working W10 OS's. One on the 40GB partition and one on the 400GB partition. I want to use the additional 34GB in the OS on the 40GB partition.  I dont mind reinstalling the OS on the 40GB disk, but want to keep the 400GB W10 OS intact.  Is this possible somehow?


When I read essays from Eliot, I find him using "that which" frequently, e.g.        the combination which is the murder of Agamemnon is probably as complex as that which is the voyage of Ulysses.   A very small part of acting is that which takes place on the stage!   They belong to a different race. Their crudity is that which was of the Roman, as compared with the Greek, in real life.      I can kind of guess its usage, but I want to know more about this grammar structure. Searching on Google mostly gave me the simple difference between "that" and "which", and some examples using "that which":        that which we call a rose (from "Romeo and Juliet")   that which we persist in doing      It is a pity that Google search does not direct me to any useful page about "that which".  Can someone explicate its grammar for me?


Is There a Difference Between Taxonomies and Categories?

I've been reading the codex for WordPress closely and am confused about the vague definitions between what a Taxonomy is and what a Category is. For that matter, term is also a word that is used in the description of Taxonomies, but seems used in a manner that hints that it isn't solely limited to a Taxonomy.   Both are described as a way to classify and group together posts. I do understand that Taxonomies are a more general form of categories, but how exactly do they relate to each other?   Is there a subtle difference I'm just not picking up on?


What is the purpose of an Ethernet coupler that reverses all the pins?

As the photo shows, the pins are wired "straight across", rather than diagonally. This means that it does not work as an Ethernet/8P8C coupler because the transmit pins are  (for 10/100 Mbit/s at least). Likewise, it doesn't act as a crossover either.  Is it wired wrong? Or is it a special form of a 1000Base-T crossover? Or is it perhaps used to correct the pins from another reversed device...?


We all are used to think that the lowest base for numeral system is 10 2. But is it possible to do math in unary system?   I found the funny section in MS windows registry:  If you want to add monospace font to console font set, you must create entry wich name is filled with exact numbers of '0'. Is that example of unary numeral system?  But i have no idea how to write 'zero' or negaitve numbers in such a numeral system.


Ubuntu 17.10 Keyboard not working after login following upgrade from 17.04 (Gnome version)

I have just upgraded from Ubuntu 17.04 (Gnome flavor) to Ubuntu 17.10. All appears to have gone well in the upgrade, but I find after logging into either a gnome (wayland) gnome on xorg, ubuntu (wayland) or ubuntu on xorg, I lose all keyboard input. The mouse works fine, but keyboard fails to work at all. If I then logout of the session and return to gdm, the keyboard no longer works and so I cannot login to another session as I cannot enter any password.   I installed MATE and that works fine. I can login and the keyboard works fine. I also have stumpwm installed and that appears to work fine. So the problem seems to be Gnome specific either 'standard' gnome or Ubuntu flavoured gnome. Note that it was gnome I was using previously.   One other 'odd' bit of behaviour is that the main account I was using seems to have an additional session issue - when I try to log into this account, the desktop screen flashes up and then I'm returned straight back to the GDM login screen. This may be related to the fact I use zsh rather than bash as my shell on that account. I also see the same issue with keyboard e.g. once I have tried to login to that account and am returned to the gdm screen, I can no longer enter anything using the keyboard. Mouse works fine.   keyboard and mouse are both USB. This would appear to be something specific to Gnome and not related to the X server (or wayland) as other environments (stumpwm and MATE) work fine.   I did notice one other minor 'oddity'. I tried to use the on-screen keyboard. At first this seemed to be working, but then I noticed that when I tried to enter an '@' symbol, I just got a '2'. Something seems to be screwed up with input methods, but I quickly get out of my depth in this area. My region is set to English (Australia) with English (US) and English as fallbacks.   My next step will be to create a completely new/fresh account and see if that has any issues (in case the problem is due to some old gnome setting in .local, .cache .gnome etc.   Where to start to diagnose this issue?   UPDATE: I tried using a different keyboard and that seems to have resolved one problem. I can now login to a new account without loosing keyboard input for gnome or ubuntu sessions (wayland or xorg). So for some reason, the Logitech gaming keyboard I was using is not compatible with new versions of gnome (but still works fine under MATE). The replacement keyboard is an Apple aluminium USB, which seems to be working fine so far (though I have to yet verify alt/hyper etc all map correctly).   I still cannot login to accounts which existed previously with gnome or ubuntu sessions. I can login using MATE. This would seem to indicate there is something incompatible in the gnome environment beetween the gnome setup from 17.04 and 17.10. Still trying to work out what that might be.


I was trying to do updates and it only let me do partially. The next time I turned on my computer, it had refused to load and I got this error after a long page of info. I'm a pretty basic user, so I don't know what this is or how to fix it.   The last line of my screen says:    [1.146512] --- [end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)   How do I fix this?


I am very beginner in Blender Cycles. I am trying to imitate this in cycles:  Not sure if this scene is CG or an actual photograph. I have modeled the eggs (easy), now I just want to imitate the lighting setting of this scene. I have tried adding:   One White Plane emitter above the eggs Same Plane emitter behind the camera, directly facing the eggs. Two Plane emitters on either sides of the camera facing the eggs. Turned Ambient Occlusion ON for the world.    I am getting either too crisp shadows or crossing shadows but never the same as in the scene.  So my question is which lamp should be used and where ? Please also explain why ?  I am currently here:   If I make the plain larger, the whole scene gets too bright:


My below formula is showing a syntax error, Can anyone plz suggest where its gone wrong in syntax. I am using it in process builder.  I have a month picklist field in lead " renewal month", if the month choosen is less than current month, the task due date is next year, previous month. But if my choosen month is greater than current month (i.e now november & if i choose December), then it should be current year and previous month. Now all is perfect , only showing issue in second part i.e if my month is greater than the current month ( i.e choosen is December). , So most probably issue is my last part of the formula, for me seems its all perfect, can anyone plz try to figure out where i went wrong. thanks  IF( CASE( [Lead].Renewal_Month__c, "January",1, "February",2, "March",3, "April",4,      "May",5, "June", 6, "July", 7, "August", 8, "September",9, "October", 10, "November", 11, "December", 12,NULL)< MONTH(TODAY()), IF(TEXT([Lead].Renewal_Month__c)="January",DATE(YEAR(TODAY()),12,1),  DATE(YEAR(TODAY())+1,CASE([Lead].Renewal_Month__c, "January",1, "February",2, "March",3, "April",4,  "May",5, "June", 6, "July", 7, "August", 8, "September",9, "October", 10, "November", 11, "December", 12,NULL)-1,1)),  DATE(YEAR(TODAY()), CASE([Lead].Renewal_Month__c, "January",1, "February",2, "March",3, "April",4,  "May",5, "June", 6, "July", 7, "August", 8, "September",9, "October", 10, "November", 11, "December", 12,NULL)-1, 1))


I have a string like this:    17, the day is beautiful , day  .  And I want to split this string in the first ','. For example I want to take 2 strings. one for 17 and two for the day is beautiful , day


USO Call Options $ 4.5 Call (1/15/21) Questions

I bought $4.5 Call (1/15/21) on 4/27 for $ .17 the day before the split. Today the value of the options is $.09. The crude oil has increased since 4/28. Would anyone help to explain on this ?


How to use the same antenna to receive and transmit on the same frequency with an SDR [Half-Duplex]?

Considering that the SDR board has one TX/RX output/input and one RX input, I am wondering how could I use one antenna for a half duplex communications on the same frequency.  The idea is to use the TX/RX output for transmitting and the RX input for receiving. The problem is that the required output power is around 47dBm (which is achieved after a HPA) and if I use a fairly good circulator (for joining Rx with TX) as  one, it gives a 20dB isolation and that is not enough as it would burn the whole thing with the reflected power (max. input power of the SDR is -15dBm after the LNA!). Scheme:     As an alternative, I have thought of using a electronically controllable switch that could open one path while closing the other. The problem with this option is that so far I have only found very expensive solutions and my budget is limited.  Can anyone give me some guides on building a PC controllable switch for this purpose (should withstand around 50W of power while offering the typical 50\Ohms of impedance)?  Otherwise, any different ideas/approaches on how could I solve the problem?


$$ \lim _{x \rightarrow 1}\left(\frac{1}{1-x}-\frac{3}{1-x^{3}}\right) $$ I am trying to evaluate this and so far this is what i have done - $$ \lim _{x \rightarrow 1}\left(\frac{1}{1-x}-\frac{3}{1-x^{3}}\right) =  \lim _{x\to 1}\left(\frac{\left({1-x}\right)\left(1+x^2+x-3\right)}{\left(1-x\right)\left(1-x^3\right)}\right) $$ From above, I cancel out (1-x) from denominator and numerator. $$= \lim _{x\to 1}\left(\frac{\left(x-1\right)\left(x+2\right)}{\left(1-x\right)\left(1+x+x^2\right)}\right)$$ Now I am stuck how to proceed further as x $\rightarrow 1$ .


Can 1801-1831 censuses in England be viewed online?

Can the 1801-1831 censuses in England be viewed online?  If so, where and how?


Which Issue Did Barry Allen Travel At His Top Speed?

I am trying to find the top speed of each Flash in any continuity.  What is the fastest that we have seen Barry Allen travel?  I'm interested in the issue number and page (image if possible) that he actually travels at his top speed rather than a quote saying "because of this power he can travel at this speed".


Boot drops to a (initramfs) prompts/busybox

I am running an HP pavilion dv6000 dual boot win7 and Ubuntu 12.04. (well, up until today).  After a reboot, the boot process drops to the BusyBox shell and I end up at the prompt:  BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell (ash) Enter 'help' for a list of built-in commands.  (initramfs)   I've been researching others who have had this same problem, but haven't been able to find any of those solutions to work for me.  I tried the method described , and after the final command   mount -t ntfs-3g /dev/sda1 /root -o force   it does nothing and gives me another (initramfs) prompt.  I can boot to a live CD (USB) and get to a terminal, but it doesn't seem to do much good, as I can see the /dev/sda1 in the ls command, but it doesn't recognize it when I try to cd to it.  One more question: using the command fdisk -l how can I tell which mount point (sda1/sda2) is my windows partition and which one is Ubuntu?


how to add mysql to path global variables

I have recently installed MySQL and am trying to access it through my command prompt by simply typing in MySQL.  I believe I need to add it to my PATH globals. How can I do this?


How to measure the impedance of a given coil?

What's the best way to measure the resistance and inductance of a coil at a given frequency? I need these parameters for my LTSpice-Simulation which assumes an RL series circuit.  The coil has 8 windings and is printed on a PCB. The eDesignSuite from STMicroelectronics estimates an inductance of 1.72µH. DC-resistance is approx. 1.27Ohm (measured).  Will the resistance at 13.56MHz be equal to the DC-resistance? (How can I verify this?) How can I verify the inductance of the coil at approx. 13.56MHz?  Thanks!


Ubuntu 19.04 Screen Tearing with Nvidia Gtx 1660 ti

I have tried forcing full composition pipeline through the Nvidia X server settings but it does not seem to change anything. I'm on the latest 418 driver and the official release of 19.04 that came out today.


Change Text Color in Blender Game Engine?

I want to change the color of some text in my game. I've tried adding materials, but whenever I press P to play the game, the text stays the same white color. Any ideas?


Is there dynamic virtual desktop on Ubuntu Unity?

As far as I know, there is virtual desktop on Ubuntu, but the number of them are constant.  Can I have the dynamic virtual desktop like Gnome3, elementary OS or Windows 10?   elementay OS's virtual desktop is the easiest for me to use.


This cannot be right, can it?  It seems that the tracking is not synchronized with the actual badge awarding mechanism.  Perhaps there is a bug in the awarding and I should have this badge already, or I am ineligible for it for a reason that the progress tracker is unaware of.


How can I prove that all rational numbers are either terminating decimal or repeating decimal numerals?

I am trying to figure out how to prove that all rational numbers are either terminating decimal or repeating decimal numerals, but I am having a great difficulty in doing so. Any help will be greatly appreciated.


Finding the value of this integral $ \int_{-\pi/4}^{\pi/4}{ (\cos{t} + \sqrt{1 + t^2} }\sin^3{t}\cos^3 {t})dt$?

I stumbled on this problem and I'm stuck.   Any hints on how I could approach evaluating this particular integral?  $$ \int_{-\pi/4}^{\pi/4}{ (\cos{t} + \sqrt{1 + t^2}\sin^3{t}\cos^3 {t})\,dt}$$  What I've tried prior to asking is using $\sin{t}\cos{t} = \frac{1}{2}\sin{2t}$ and $\sin^2{t} = 1 - \cos^2{t}$. I end up with:  $$ \int_{-\pi/4}^{\pi/4}{ (\cos{t} + \frac{1}{8}\sqrt{1 + t^2}\sin{2t} - \frac{1}{16}\sqrt{1 + t^2}\sin{4t}\cos{2t})\,dt}$$


When a fund drops significantly, how can I research what went wrong?

A mutual fund I have (Vanguard Health Care Inv - VGHCX) dropped around 8% in one day...which is kind of unusual for a fund.  All the while the general stock market rose slightly.  Which brings me to my question...  How do I research why it went down?  What specifically caused it to do so.    I don't have any specialized tools other than Google/Yahoo/MSN finance sites...


Hosting of static content without server, only through CDN

My content is fully static, using only HTML, CSS, JS. It's only one page, which needs to load really fast from any country, and should be online for only 3 months.  I already have the domain name.  I just need a CDN where I would keep my HTML, CSS, JS and image files, to be served really fast in Japan, China or USA.  Do I still need to have a web server? Do CDN provider also offers simple hosting?


Is better healthcare a bane to the long-term survival of the human race?

The theory of natural selection has it that individuals with better genes tend to survive and reproduce, passing their genes to their offspring. This gradual process results in a population more adapted at survival. However, due to the advancement in medical science, humans with poorer genes tend to survive and reproduce just as well.  For example, in the past, many people, excluding those with natural immunity due to some genetic mutations, would have succumbed to illnesses such as malaria and typhoid. But with better hygiene and medical treatment, these patients tend to survive.  Now, imagine a future where all illnesses including cancer can be treated. How would it impact the survival of the human race? Would we become more and more vulnerable such that our survival hinges heavily on medical technology, analogous to how an astronaut's survival is dependent on his spacesuit?


Can't delete files or folders on partition

I have an NTFS partition. The idea is I can use this for data on either Ubuntu Mate or Windows 10 dual boot. It worked fine when I first installed Mate, but recently I no longer have the delete option when I right-click on a file or folder. The delete key does nothing. I also can't paste into the partition (Paste greyed out). It's as if the whole partition is read-only. In Gparted, the partition is marked with a key. Does this mean anything? I'm not aware of having changed anything, however, Windows recently did a big update - have they hijacked my drive?  I've read related posts, but people speak of returned errors - I have no errors, just nothing happens. Also, suggested solutions seem far too technical for what must surely be a simple tick-a-box fix!  Please note - for me the Terminal is where I get off a train and Sudo sounds like a Japanese noodle dish. ;) GUI's preferred if possible! Thanks for your patient help!


How can I pass values to xUnit tests that accept a nullable decimal?

One of my unit tests has this signature:  public void FooWithFilter(string fooId, decimal? amount)   When I test it with null, it works:  [InlineData("123", null)]   But if I use an actual value, such as:  [InlineData("123", 610)]   I get an error:  System.ArgumentException Object of type 'System.Int32' cannot be  converted to type 'System.Nullable`1[System.Decimal]'.   I tried using 610M as the attribute value, but that's not allowed as an attribute value:  An attribute argument must be a constant expression, type of expression or array creation expression of an attribute parameter type.   Is there a way to use a nullable decimal here?


How does load affect frequency on the power grid?

about the use of battery/freewheel based Frequency Regulators confused me about how the 60hz frequency of the North American power grid was set--saying that it was kept at that frequency by balancing load and supply. I used to think that it was only voltage which was affected by this balance, and that the frequency was determined by the speed of the rotors in the generator. EG see .   Can someone help me understand the physics behind this?


Is there any way to ensure that a specific USB key always gets the same drive letter?

Depending on what's currently connected to a PC, a USB key does not always get the same drive letter.  This is an issue for me because I want to use this key as a backup destination, and I thus have to change the path that's used from time to time.  Is it possible to make sure that a specific key always ends up with the same letter?


Conditional expectation for a sum of iid random variables: $E(\xi\mid\xi+\eta)=E(\eta\mid\xi+\eta)=\frac{\xi+\eta}{2}$

I don't really know how to start proving this question.  Let $\xi$ and $\eta$ be independent, identically distributed random variables with $E(|\xi|)$ finite.  Show that $E(\xi\mid\xi+\eta)=E(\eta\mid\xi+\eta)=\frac{\xi+\eta}{2}$  Does anyone here have any idea for starting this question?


I was installing ubuntu 12.04 on my system. There were 4 partitions on my system and I selected one of the four partition for the installation and chose the option of resizing the partition. Initially my partition was of size 100+GB and i created another partition out of it of size 15GB (EXT4). Now the moment I changed this partition structure my original partition got lost along with its data and I am left with 50GB partition and 50GB unallocated free space.   Now the data that I have lost is meant a lot to me and I want to recover that data. So is there any way I can recover it? And I haven't checked "format" option while resizing the partition.


Warning: oci_parse(): ORA-01756: quoted string not properly terminated - Where? I cannot find it

I am getting this error:  Warning: oci_parse(): ORA-01756: quoted string not properly terminated in <DIRECTORY> on line 200 Warning: oci_execute() expects parameter 1 to be resource, boolean given in <DIRECTORY> on line 201  In reference to this code (line 200/201 marked):          $testSQL =  "insert into INTOXDM.JOINT_USE (RECEIVED,                  REGION,                  PERMIT,                  CUSTOMER,                  TO_BUSINESS,                  TO_PERMIT,                  POWER_ADDRESS,                  COMPANY,                  MAPSECTION,                  POLES,                  FEE,                  INVOICE,                  DATE_LARRY,                  DAYS_LARRY,                  PI_PON,                  DATE_PD,                  DAYS_LARRY_PD,                  RETURNED,                  DAYS_PD,                  ERRORS_PD,                  ERRORS_MULTIPLE,                  DATE_MAKEREADY_JU,                  DATE_MAKEREADY_COMPLETE,                  DAYS_MAKEREADY,                  DAYS_JU_PROCES,                  APPROVAL,                  DAYS_PERMIT_IN_JU,                  DATE_PLANNING,                  DAYS_OPEN,                  DATE_ROUTED,                  DAYS_TOTAL,                  COMMENTS) values (                 '$RECEIVED',                  '$REGION',                  '$PERMIT',                  '$CUSTOMER',                  '$TO_BUSINESS',                  '$TO_PERMIT',                  '$POWER_ADDRESS',                  '$COMPANY',                  '$MAPSECTION',                  '$POLES',                  '$FEES',                  '$INVOICE',                  '$DATE_LARRY',                  '$DAYS_LARRY',                  '$PI_PON',                  '$DATE_PD',                  '$DAYS_LARRY_PD',                  '$RETURNED',                  '$DAYS_PD',                  '$ERRORS_PD',                  '$ERRORS_MULTIPLE',                  '$DATE_MAKEREADY_JU',                  '$DATE_MAKEREADY_COMPLETE',                  '$DAYS_MAKEREADY',                  '$DAYS_JU_PROCESS',                  '$APPROVAL',                  '$DAYS_PERMIT_IN_JU',                  '$DATE_PLANNING',                  '$DAYS_OPEN',                  '$DATE_ROUTED',                  '$DAYS_TOTAL',                  '$COMMENTS')";         $testParse = oci_parse($objConnect, $testSQL); //LINE 200          $testExecute = oci_execute($testParse); } } //LINE 201   However, I cannot find what I am missing. I have been at it for an hour, it is very frustrating. Are there tools that you can post source into that assist in finding these errors?


Add HTML Inputbox Dynamically using button

this is my code to generate input boxes, it generate boxes but the generated add more button will not work. New files can only be added using the first static button


I'd like to get rid of the bibliography heading:   Please note that I'm using the thebibliography environment.


"What day is it today?" vs. "What day is today?"

Which of the following is grammatical?        What date/day is it today?     What date/day is today?


How can I backup everything from iCloud Photo Library on Windows?

I don't want to pay Apple any more to upgrade my iCloud storage, so I want to clean-up the photos that are stored with iCloud Photo Library. I cannot find any way to download and backup my photos easily so that I can delete them from my cloud storage.  From Apples website:     If you enabled iCloud Photo Library, your photos and videos are   automatically uploaded to iCloud at full resolution. To make copies of   these photos and videos:     In iOS 8 or later, select Download and Keep Originals, then import the photos to your computer.   In OS X Yosemite v10.10.3 or later, open the Photos app, then select Download and Keep Originals.  Use iCloud.com to download the most recent version of photos and videos to your computer.   So, obviously I've tried the last option, but if one selects multiple photos and then click Download, it downloads all the files at the same time with garbage file names and without file extensions! You have to manually rename every file and guess the extension (usually .jpg for photos and .mp4 or .mov for videos).  Is there a better way to get a copy of my photos? The first option won't work because I have 20 GB of photos and my iPhone doesn't have room. The second option won't work for me because I don't have a Mac.


Prove $9 \mathrel| (4^n+6n-1)$ by induction

I know that this question was already answered, but I would like to know if the second step of induction its okay the way I did it.  This question is different from  and  since it is just about to check a part from a proof that I did (if the way I thought is correct or not).  Suppose that   $9 \mathrel| (4^k+6k-1)$ is true for $k\in \mathbb{N},  k\geq1$. I want to prove $P(k+1)$: $ 9 \mathrel| 4^{(k+1)} +6(k+1) - 1$  Since $9 \mathrel| (4^k+6k-1)$, I can rewrite as:  $4^k+6k-1 = 9q$,  where $q \in \mathbb{Z} $. By the definion of Divisibility.   Multiplying the equation on both sides by 4, I'll get:   $4^{(k+1)} +24k-4 = 36q$   Adding 3 on both sides   $4^{(k+1)} +24k - 1 = 36q + 3$   Subtracting $18k$ on both sides   $4^{(k+1)} +6k - 1 = 36q + 3 -18k$   Adding 6 in order to have $6(k+1)$ as a factor   $4^{(k+1)} +6k + 6 - 1 = 36q + 3 -18k + 6$  $4^{(k+1)} +6(k+1) - 1 = 36q + 9 -18k $  Note that $36q + 9 -18k$ can be written like this: $9(4q + 1 - 2k)$. Thus $9Q$, $Q=(4q + 1 - 2k), Q \in \mathbb{Z}$.  Therefore:   $4^{(k+1)} +6(k+1) - 1 = 9Q$. Which means that $4^{(k+1)} +6(k+1) - 1$ is also divided by 9.   Does my proof look fine? If there is a problem, please tell me. All help is appreciated.


Macbook 2015, 8,1 -- how to get the keyboard and trackpad working with Ubuntu 18.04?

Are there any instructions how to install the keyboard and trackpad when using Ubuntu 18.04 on a Macbook?  I've tried searching and I get a lot of Macbook Pro or other strange answers.  The recommended answer for 16.04 indicates that kernel 4.14 solved the issue, however 18.04 uses kernel 4.15


Relation between parent of son with his father or mother in-law?

Is there a word for the relation between the parents and parents-in-law of a child?


It is from discrete mathematics notes.  These are part of the biconditional tautologies.   E29. (∀x)A(x) →B ⇔ (∃x)(A(x)→B)   E30. (∃x)A(x) →B ⇔ (∀x)(A(x)→B)   I don't understand how these formulas are said to be equivalent.  What is the difference in interpretation between (∀x)A(x) →B and (∀x)(A(x)→B) ?  How should I interpret those formulas? and how can I prove it? Thank you!


Why does Meta Stack Exchange have a separate reputation system while the other meta sites do not?

I know that meta sites are meant to be a place for discussion and feature requests. Which is why the meta sites do not have a separate reputation system and anything on the meta site will not affect the reputation on the main site.  However, Meta Stack Exchange is different. It has a separate reputation system, but it is a meta site! I heard someone says that votes on meta sites have different meanings from the ones on the main sites. The votes on meta sites mean agreement to the OP's idea. So I guess it's more opinion-based. Because of this, votes do not affect your reputation on the main site.  So I just want to ask, if the posts and votes are opinion based and are mainly just discussions, why does Meta Stack Exchange have a reputation system?


How could humans have interbred with Neanderthals if we're a different species?

To be clear, I'm not doubting that homo sapiens and homo neanderthalensis did interbreed: of that much I'm convinced.   Within the past few years I've seen an upcropping of pop-sci articles discussing the interbreeding between pre-historic species of humans. In everything that I see in these articles, as well as in scientific literature (my college Bio textbook, among others), I see these different humans being referred to as separate species.   This conflicts with my understanding of a species. Given the following definition, wouldn't homo sapiens and homo neanderthalensis be the same species?     A species is often defined as the largest group of organisms where   two hybrids are capable of reproducing fertile offspring, typically   using sexual reproduction.      Is this definition incorrect?  Are the publications using "species" colloquially, as opposed to scientifically?  Is "species" still a poorly defined concept? (see )   Thanks!


Consider the slight modification of the construction from the solution to this question:   \documentclass{minimal} \usepackage{tkz-euclide} \begin{document}  \begin{tikzpicture}[scale=3] \tkzDefPoint(0,0){O} \tkzDrawCircle[R](O,1 cm) \def\sectors{20} \foreach \i in {1,2,...,\sectors} {     \tkzDefPoint({\i*360/\sectors}:1){P\i}        \tkzDrawSegment[color=black](O,P\i)     \tkzLabelPoint(P\i){\i} %modified here! } \end{tikzpicture} \end{document}   This gives me the following output:    Now my question is, if it is possible to position the labels in extension of the radial lines.   Is it possible to rotate the labels additionally corresponding to the orientation of the respective radial line? (so that for example the 5  on my output would be rotated by 90° counter-clockwise).


How Can I test in C# if a node exists in an XML FILE ? I read my xmlfile like these :  XmlDocument docxml = new XmlDocument();  docxml.LoadXml("test.xml");  XmlNode root = docxml.DocumentElement;  And I want to test if a particular node exists in my file. How can I do that ?


Is Ubuntu 14.04 secure against heart bleed bug

I have read that there is a bug in SSL called heart bleed bug. Has Ubuntu 14.04 shipped along with this bug or has it been resolved in this release?


In sentences like "Two questions are what I wanted to ask", should I treat the subject, "Two questions", as singular or plural?   It seems more natural to treat it as plural. But when I reverse the subjects I'll need to use the singular form instead : "What I wanted to ask is two questions" and this doesn't look very natural. Does the same apply to chronological sentences like "5 months is/are what I have left to finish this project of mine"?


Does using egg+yolk in a chocolate chip cookie recipe make a big difference?

Some recipes I've seen use an egg + yolk combination. A lot of them just use one egg. Does it make a big difference, as long as there is enough liquid in the batter? Would big brands use egg + yolk for a chocolate chip cookie? Wouldn't that waste a lot of whites?


When will Ubuntu Touch be available for Xperia Tipo release? I am aware that it does not have a 1 GHz Processor, but I have successfully overclocked it to over a GHZ.


For my writing I am using MS Word and Zotero as bibliography manager. But now I think I am going to move to LaTeX on a  Linux box. I just toyed with Texmaker to generate my documents and it works fine so far. But I do not know how to manage my citations.  I found BibDesk and  with TexMate, but it's for Mac.   Are there any similar tools which I can use in Ubuntu ?


I am trying to understand how exactly structures work in C. More precisely, the size of a structure.  When I print the size of the following structure:    struct Test {    char tab[14]; };   I have the output 14.  But the size of       struct Test2{          uint16_t  a;          uint16_t  b;          uint16_t   c;          uint64_t  d;      };   is equals to 16.  I read in a previous post that there is a "padding added to satisfy alignment constraints". Then why this padding isn't apply to the first example ?


An example of a field extension where every polynomial has a root but is not algebraically closed

Let $F\subset E$ be an algebraic extension of fields and suppose that every polynomial $f(x) \in F[x]$ has a root in $E$. Is it possible that $E$ is not algebraically closed?  Note that such an example must necessarily be of prime characteristic since over char $0$, $E$ is necessarily algebraically closed. Proof:  Let $g(x) \in E[x]$ be a polynomial with a root $\alpha$ (after fixing an algebraic closure of $E$). Let $f(x)$ be the minimal polynomial of $\alpha$ over $F$ and let $L$ be the splitting field of $f$. By the primitive element theorem, $L=F[\beta]$ and if $h(x)$ is the minimal polynomial for $\beta$, it has some root $\gamma \in E$. Since $F[\beta] = F[\gamma]$, this shows that $L\subset E$.  In particular, if we are looking for counterexamples, we would like $L$ to not be a primitive extension.


Using parameters to build sql statement IN?

I'm trying to find a proper way to do this instead of simple string concatenation.  I have a (simplified) SQL statement as follows:  SELECT * FROM Zones WHERE id in (@zoneIDs);   I plan to insert an @zoneIDs value like such: 100000,100001,100002  I'm using VB in this particular instance, but it should apply to any .Net language using the MySQL connector. What I'm trying is this:  Private GetZones As String = "SELECT * FROM Zones WHERE id in (@zoneIDs)" Dim Param As MySqlParameter = New MySqlParameter("@zoneIDs", MySqlDbType.String) Param.Value = "100000,100001,100002" Dim adapter As MySqlDataAdapter = New MySqlDataAdapter(GetZones) Dim dt as DataTable = New DataTable() adapter.Fill(dt)   But what's getting filled in dt is just the row for ID 100000, as if none of the others were in the query. My guess is that it's running a command like this:  SELECT * FROM Zones WHERE id in ("100000,100001,100002");   Instead of  SELECT * FROM Zones WHERE id in (100000,100001,100002);   I personally prefer to use Stored Procedures instead of strings like this, but I believe I would hit a similar wall there. What is the proper way to fill an IN clause using parameters like this?


The number $2^{29}$ has exactly $9$ distinct digits. Which digit is missing?   I came across this question in a math competition and I am looking for how to solve this question without working it out manually. Thanks.


Display reference name, label number and target name with cleveref

I want to reference a section with cleveref like in the following example:  \section{Foobar} \label{sec:foobar}  See \cref{sec:foobar}.   The output of this is:     See section 1.   But what I would like is this:     See section 1 Foobar.   I understand that there is no command by default, that produces this output.  So I tried to build my own command like suggested for the hyperref package in . However, I could not find an equivalent command to hyperref's \nameref in cleveref's documentation.  Is it possible to create a new command, that produces my desired output?


Two Instances' Attributes Refer to the Same Memroy Location in Python 3

How can this be possible in Python 3? k1 and k2's a attributes refer to the same memory location in IPython console  class K():      def __init__(self, a):         self.a = a   k1 = K(4) k2 = K(4)  hex(id(k1)) # 0x10d77b668 hex(id(k2)) # 0x10d77b6a0  hex(id(k1.a)) # 0x10d41caa0 hex(id(k2.a)) # 0x10d41cac0  id(k1.a) == id(k2.a) # True   I am mostly concerned about the object reference issue going on here rather than the 'is' operator test, which I believe is not the problem I am trying to solve. Because, both k1.a and k2.a would pass the is test because the two references refer to the same object. But what I would like to know is, why that happens.


I would like to create an array of number equally spaced (0.1) between 0.1 and 100  step=0.1 range_a=numpy.arange(step,100+step,step)   why my first element is   range_a[0] Out[27]: 0.10000000000000001   and not 0.1?  and how do I get an array equal to [0.1, 0.2, 0.3, ..., 100]


Apply for PhD with low undergrad GPA and good grad GPA

i have poor ungrad GPA (2 of 4), and good grad GPA (3.88 of 4)  What are my chances if I apply for PhD study at Germany?  B.Sc pure mathematics  M.Sc financial mathematics (i love it)


How do "cash giveaway" scams on Twitter work?

I noticed that some people are giving away cash to "first 500 to re-tweet this" or something like that. Sometimes it looks legitimate, e.g., the account is verified, old, and has real messages as well. Then, there are hundreds if not thousands of accounts that look robot-like and which are definitely trying to scam people:  Today is a good day and I’m gonna be doing a $900 give away to anyone who want to be my sugar baby: First 25 people to like, retweet and follow me on will receive $900. Cash app/PayPal only. Text me on [redacted] to receive your payment  How does that scam work? Is it usual to "transfer money using reversible method - ask for prepaid gift card or legit transfer - original transfer is cancelled" type of fraud?


What is the difference between Θ(n) and O(n)?

Sometimes I see Θ(n) with the strange Θ symbol with something in the middle of it, and sometimes just O(n). Is it just laziness of typing because nobody knows how to type this symbol, or does it mean something different?


initialised or initialized which one is correct spelling?

I have often seen initialised in lots of text, but when I want to write it in Microsoft office word, it says it was misspelled and it should be initialized instead of initialised.     so here is my question:        Which one of them is the correct spelling?     and if both of them are correct, when I should use one or the other? Is there any rule regarding this?    Additional note: when I was writing this post, it would give me a spelling error notice each time I wrote initialised.


Hardware Enablement Stack (HWE) out of support

From yesterday my update manager gives me this message:     Your current Hardware Enablement Stack (HWE) is going out of support   on 07/08/2014.  After this date security updates for critical parts (kernel   and graphics stack) of your system will no longer be available.      For more information, please see:    But when I try to upgrade the HWE with the command suggested by hwe-support-status --verbose that is  sudo apt-get install linux-generic-lts-trusty libgl1-mesa-glx-lts-trusty xserver-xorg-lts-trusty linux-image-generic-lts-trusty   I get dependency errors:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  libgl1-mesa-glx-lts-trusty : Depends: libglapi-mesa-lts-trusty (= 10.1.3-0ubuntu0.1~precise1) but it is not going to be installed  xserver-xorg-lts-trusty : Recommends: xserver-xorg-input-all-lts-trusty but it is not going to be installed                            Recommends: xserver-xorg-video-all-lts-trusty but it is not going to be installed                            Recommends: x11-xserver-utils-lts-trusty but it is not going to be installed                            Conflicts: libglapi-mesa:i386 (>= 0~) E: Unable to correct problems, you have held broken packages.   How can I solve this?  I'm running Ubuntu 12.04.4 LTS 64 bit with kernel 3.5.0-53-generic.


Asymmetry between ascending and descending chain condition on rings

One of the first results I learned about chain conditions is that Artinian rings (satisfying d.c.c.) are automatically Noetherian (satisfying a.c.c.), and in fact a ring is Artinian if and only if it's Noetherian and has Krull dimension $0$, a very strong condition.  My question is: why are these so asymmetric? Just by looking at the chain conditions themselves you would think that they're "dual" or something, but it seems like being Artinian is such a strong condition they're not even bothered to be studied that much (by which I mean, skimming the table of contents of a few algebra books I can't even see it show up).  I'm dimly aware that this doesn't hold for modules (though this is outside the scope of what I'm currently studying) -- perhaps one way to answer my question is to explain why rings and modules differ in this respect.


Passing a parameter to filter and action functions

Is a way to pass my own parameters to the function in add_filter or add_action. For example take a look in the following code:  function my_content($content, $my_param) { do something... using $my_param here ... return $content; } add_filter('the_content', 'my_content', 10, 1);   Can I pass my own parameter? something like:  add_filter('the_content', 'my_content($my_param)', 10, 1)   or  add_filter('the_content', 'my_content', 10, 1, $my_param)


Using input value in the JavaScript function name

I am trying to create JavaScript function dynamically and want to use input value as function name.    I tried:  function calculate(){ var dur = document.getElementById('duration').value; //example value: 1 var sum = document.getElementById('sum_insured2').value; //example value: 1000   `'show_d'+dur+'_sum'+sum();` }   I want like this:  `show_d1_sum1000();`   I am not getting the output what I want.


Is there generically a latex command which allows to shift images horizontally by a prescribed amount of cm for example?


How does voluntarily holding one's breath work?

The  read as follows (emphasis mine):  Suffocation A character who has no air to breathe can hold her breath for 2 rounds per point of Constitution. [...] After this period of time, the character must make a DC 10 Constitution check in order to continue holding her breath. The check must be repeated each round, with the DC increasing by +1 for each previous success. When the character fails one of these Constitution checks, she begins to suffocate. In the first round, she falls unconscious (0 hit points). In the following round, she drops to –1 hit points and is dying. In the third round, she suffocates.  These rules are clear for when a character simply has no air to breath, such as while being strangled or underwater. But what about a character choosing to hold their breath? For example, a PC enters a room with an airborne poison and begins to hold his breath. After the number of rounds he can safely hold his breath expires, he begins to make the requisite Constitution checks. What happens on the character's first failed save? Does he...  ...fall unconscious and continue to suffocate, not breathing? ...fall unconscious and begin to breath, no longer suffocating but inhaling the poison? ...remain conscious but breath involuntarily, inhaling the poison?


How can one remove a range of lines for every group of n lines?

I want to start with a file that looks like this:   1 2 3 4 5 1 2 3 4 5 1 2 3 4 5   Return only the last three of every group of five like so:  3 4 5 3 4 5 3 4 5   I've managed to get the first 2 using a code like this:   awk -vn=2 -vm=5 'NR<=i{next}; (NR-i)%m==1{c=1}; c++<=n   but I'm having trouble doing the same for the last grouping.


Does an Action Surge grant a second bonus action?

We were trying to understand how the "Action Surge" rule works, and after some discussion we came to a standstill.      Starting at 2nd level, you can push yourself beyond your normal limits for a moment. On your turn, you can take one additional action on top of your regular action and a possible bonus action   The keyword "possible" is what threw us off. Half the group thought it meant "additional action or bonus action", and the other half thought it was "additional action and bonus action".  So which is it?


How to have differently formatted author names for some items in a citation list, using biblatex?

I am looking for some guidance on how to tweak the appearance of some citations. At the moment, the format in a MWE looks like this:  In general, I want the author list for articles and books to appear as they do in items 1. and 3. above (surname, initial). So far so good. However, now all authors appear in this format such as the second item "Education, D.". Since this is not a name/surname I would like to have this one appear as "Department for Education". What's the best way to clean this up? Do I somehow need to add an exception everytime I have this kind of citation occurring? Or is there another option/field that I can make use of to do it automatically? The code to produce the MWE is the following: \documentclass{article}  \usepackage[backend=biber,             style=numeric-comp,             firstinits=true,             sorting=none,             doi=false,isbn=false,url=false,eprint=false]{biblatex} \usepackage{hyperref} \usepackage[capitalise]{cleveref}  \addbibresource{bibliography_list.bib}  \renewbibmacro{in:}{} \DeclareFieldFormat[article]{volume}{\textbf{#1}} \DeclareNameAlias{sortname}{family-given} \DeclareNameAlias{default}{family-given} \AtBeginBibliography{\raggedright} \renewcommand*{\bibfont}{\footnotesize} \DeclareFieldFormat{labelnumberwidth}{#1\adddot}   \begin{document}  Here is my first reference \autocite{horowitz1989art}, here is my second reference \autocite{DfE}, and finally my third reference \autocite{bloch2000measurement}.   \printbibliography \end{document}  and the bib file looks like this: @book{horowitz1989art,   title={The art of electronics},   author={Horowitz, Paul and Hill, Winfield},   year={1989},   publisher={Cambridge Univ. Press} }  @online{DfE,   author = {Deparment for Education},   title = {Guidance for schools: coronavirus (COVID-19)},   url = {https://www.gov.uk/government/collections/guidance-for-schools-coronavirus-covid-19},   urldate = {2020-07-24},   year = 2020 }  @article{bloch2000measurement,   title={Measurement of the spatial coherence of a trapped Bose gas at the phase transition},   author={Bloch, Immanuel and H{\"a}nsch, Theodor W and Esslinger, Tilman},   journal={Nature},   volume={403},   number={6766},   pages={166--170},   year={2000},   publisher={Nature Publishing Group} }


Is there a way to have Snow Leopard match the scrolling behavior of Lion?

I can see that I will quickly come to love the Lion way of scrolling.  My brain will soon become rewired to think of moving the content with my gestures instead of moving the controller down to slide content up in my fixed viewport.  I have several macs that need to remain on Snow Leopard for some time, and would love any suggestions on how I might change them to better fit Lion's new model for scrolling.


Is there a shortcode for linking to a user profile in an answer?

Sometimes I want to refer to a specific user in an answer.  Something along the lines of      "From the answers of UserA and UserB I have crafted this super useful solution..."   Is there a shortcode creating a link to a user profile using the user name? Similar to the @ we have in the comments, but in an answer.


I'm trying to compute the infinite sum  $\sum_{n=1}^{\infty}n(\frac{1}{2})^n$  which I believe should represent the expected amount of coin flips needed to get a head. Can someone remind me how to do this?


In metric space,  $(X,d)$  I know limit points of some set(S maybe) is closed in X  Then is set of isolated points of S is closed?   Want to make sure if closure of isolated points of S doesn't intersect with limit points of S  But i think i got it and i think i should leave it for people like me


Prove that $ \binom{n}{r} \leq \binom{n}{\lfloor{\frac{n}{2}}\rfloor} $ is true

I was trying to prove   $\displaystyle \binom{n}{r} \leq \displaystyle \binom{n}{\lfloor{\frac{n}{2}}\rfloor} $  where $r=0,1...,n$  I supposed that n is even and tried to divide: $\frac{\displaystyle \binom{n}{\frac{n}{2}}}{\displaystyle \binom{n}{r}}$ and ended up with this  $\frac{n!(n-r)!}{(\frac{n}{2})!\cdot (\frac{n}{2})!}$, but couldn't make any further progress.  Can you please help?  Thank you.


My First Authorship was Turned into a Second Authorship without Informing me

Early this year, I had a surgery-related study in rats and today I just found out my first authorship got turned into the second authorship in the final manuscript my PI planned to submit.   For the study which was my original idea, I spent a tremendous amount of time in conceptualizing the study, created the protocol and design for the stud (second and third authors also involved in this but not as much as I did), carried out all the animal surgeries and analyzed a part of the data independently (for this study, there were only two results we could get), and wrote the part of manuscripts.   The divided tasks between the first and second author for this project was I did all of the above mentionings, while the second author collected, collaborated with two other pathologists who are going to be the co-authors and wrote the discussion and conclusion section.   But all of a sudden, I was just informed today my PI is making the second author the first author because she spent so much time in collaborating with those pathologists and revising the manuscripts with her (they are very close to each other because the second author works full time but I worked the only parttime).   It was so ridiculous because it was our agreement before that she was in charge of the pathology section for the paper with other pathologist and I was in charge of other results. For the whole revision process, both the third author and I haven't been informed by any mean. And I always thought the manuscript was all done except the pathology part.   I brought up the concern to the second author and she told me she deserved the first because "I spent as much time as possible with PI in rewriting the discussion and manuscript" (without letting me know) and collaborate with other authors to put their input into the results which I don't even really need this part to make it published. (Moreover, it was my idea to work with the pathologists and I was the one who assigned her the tasks she needs to do with them).   I am so pissed off now and I would like some advice about my situation. I understand this second author spent a lot of time in revising the manuscript (she is good at writing so we agreed before she would write the discussion and edit the paper) but this was done without informing both first and third authors. And it was all because of me to make the project possible when none of the people including the PI likes the project early this year. I was the one spent every weekend and night time alone (until 10 or 11 pm can you guys image?) to carry out all the trails. I was also the one who analyzed the most important part of the data and gave all the inputs the second author needs to form the paragraphs. Now, what she did was just to put others' opinion (pathologists) into the paper, and remake the figures and table I made, so she and the PI wants to make her as the first author. Please help that this lab is so sneaky and horrible. And the similar sneaky revision happened before already to my work (Fountly, I kept my first authorship that time). I would like to take whatever I can to defend my right as I am done in the lab and I don't care if I will continue research in this field or to make the work unpublished.   *Note: Also, the PI and she added another person to the authorship who did nothing but for a "gift" because she is the new hire. but the other volunteer we had in the lab who actually contributed got nothing out of it. I feel so bad for her now too.


Is $\sin^2+\cos^2-1=0$ the only relation for $\sin$ and $\cos$?

I'm trying to figure out if for any polynomial $f$,  $f(\cos(t),\sin(t))=\sum_{i,j}a_{i,j}\cos(t)^i\sin(t)^j=0$ implies $x^2+y^2-1$ divides $f$.   Trigonometric identities are not exactly central to the class I am taking, so I believe the question simply wants me to assume this, but I'm still curious as to why it is true.  In trying to prove this, I know that through polynomial division one can get $f=qg+r$ where the degree of $x$ in $r$ is 1 or 0 and $r(\cos(t),\sin(t))=0$.   If the degree of $x$ in $r$ is zero we simply have a polynomial in $\sin(t)$, and a polynomial only has finitely many roots whereas $\sin(t)$ can take infinitely many values, so $r=0$.  If the degree of $x$ in $r$ is one, and there is only an $x$ term, one can argue that we can choose $t$ to make all the $\sin$ terms arbitrarily small and the $\cos$ term close to 1, and if the constant term is equal to -1 just stop close to 1, and if it is close to -1 stop at 1.  However, I don't know how to proceed when there are terms like $xy$ in $r$. I was thinking of looking at it as $x$ times a polynomial in $y$ plus a polynomial in $y$, but I'm not sure if that helps.  I'm sure there is a more simple way to do this that I'm not seeing, any hints?


I just started learning python and blender and I am struggling with the very basics. How do I do the following with code on the console?:  Render the Camera view Save it as a png