No grub with windows 8/ubuntu & boots to windows (boot repair & os boot manager do not work)

Getting straight to the point, I am trying to install Ubuntu 14.04 LTS alongside a pre-installed Windows 8 (now updated to 8.1). I am a newbie (even though I used Linux and Ubuntu for some time now, I still see myself as a newbie), so I would appreciate as much help and clarity as I can get.   I am using a Toshiba Satellite L850-1L1 Laptop with the following specs  · Processor Intel(R) Core(TM) i7-3630QM CPU @ 2.40 GHz  · 8 GB RAM  · 64 bit Operating System, x64-based processor  · 1 TB HDD (No SSD), GPT Partitioning scheme (GUID Partition Table)  · System BIOS Version 6.7 / EC Version 6.00 (no idea if this bit of info will help or not)  I removed about 60 GB of the C partition that has windows. I left it as a new unallocated volume (I left it as free unpartitioned and unformatted space). As for the Secure Boot and UEFI settings in the BIOS, I left them enabled (since I read in ask Ubuntu that it is always better to try installing with both options enabled) and shut down the laptop. Something worth mentioning, I read an article that said I should switch to CSM Mode before shutting down and then install Ubuntu; I did not do that. When I change the boot manager from UEFI to CSM Boot, it does not boot anything coz of copyright issues. Plus, Ubuntu boots in legacy mode and not UEFI Mode.  With try Ubuntu I was able to boot the live version without problems, then started installing Ubuntu and when I got to the system installation window there was no option that said “install alongside windows 8”. So I picked “something else”, made a 5.77 GB partition (read somewhere that it is supposed to be 10% the size of the main system partition) for swap area and 51.22 GB for booting the main system ( / ). After Installation GRUB menu opened and I could open Ubuntu without problems but with windows, it gave me an error and did not want to boot it. I ran boot repair and it closed with an error and gave me a pop out message saying I should turn off secure boot. After that, there was no GRUB and it boots straight to windows.  Here is the first boot repair link: paste.ubuntu.com/7517709  I then formatted the partitions again and did the whole thing again with secure boot disabled this time. Again no GRUB menu and boots straight to windows 8 (yes windows 8 on my laptop works with secure boot disabled), so I entered the live version and ran boot repair again. This time it did not tell me that I should disable secure boot, but it did not solve the problem either. Same problem, no GRUB and boots straight to windows.  Here is the first boot repair link: paste.ubuntu.com/7536732  A couple of more points:  · I cannot change the OS boot manager in BIOS, i.e. I cannot choose boot priority between windows 8 & ubuntu. Simply because that option does not exist  · Boot Manager in BIOS allows me to choose between CSM and UEFI only  Appreciate any help to make the dual boot work. Thanks


Is there a ring homomorphism $M_2(\mathbb Z)\to \mathbb Z$?

I have the following problem:  Is it possible to construct ring homomorphism from $M_2(\mathbb Z)\to \mathbb Z$, or in other words, a homomorphism from ring of all $2\times2$ matrices over the integers into integers?  I tried determinant, trace and mapping that maps matrix to it's element in the position $(1,1)$ but none of that obviously works, which led me to believe there might not be such a homomorphism. Determinant doesn't work because it is obviously not a linear map.  Trace doesn't work because it doesn't respect multiplication.  And the mapping to the position $(1,1)$ also doesn't work because $$\begin{pmatrix}1&1\\1&1\end{pmatrix}\begin{pmatrix}1&1\\1&1\end{pmatrix}=\begin{pmatrix}2&2\\2&2\end{pmatrix}.$$


Randomly populating procedural shape (or Image Texture) in Cycles

TL;DR  How to take a shape or Image Texture and multiply it with random Location, Rotation and Scale along object:    Background  I have created my first procedural shape on my own from this function: $(x^2 + y^2 - 1)^3 - x^2y^3 = 0$   (big yay for math idiot)   Here is the result:    And I want to do something useful with it.  Research  I've tried to find something similar over the web (this is trending right now) and I'm surprised that this question wasn't asked before or I'm looking with wrong terms. I've tried random pattern, duplicating texture, populating image, random tiles, custom tiles and such. There is a lot about tiling textures but each and every Q&A I've stumbled upon are about non overlapping ones. For example:            Tryout:  The only way I can think of this is to duplicate shape as a group and manually change values in Mapping Nodes:    As you can see this is... Well. Bad.  I've tried messing with Modulo, mixing Noise between vectors, using custom node groups for LocRotScale (thanks Gandalf) but results was none, thus nothing even to show.  Question  I want to populate this shape (or any other) along the object with random Location, Rotation and Scale - with control over its number/density and maybe variation strength.  Edit: I'm not looking for alternative methods of creating this setup such as Particles, Image Textures generated in 3rd party software, OSL shaders (CPU only) and such. My intention is to use this in procedural texture generation in Cycles with GPU support.  Blend file  Nothing really needed for this question but here - have this heart from me :)


I use keyup but it does not fire. I populate innerHtml of div via GetRecords() from webmethod with a table and input text as a search.  I click a button GetRecords fires, then webmethod is called. Then I create a table format on c# as table and input text.  function GetRecords() { PageMethods.GetSavedList(onSucess, onError); function onSucess(result) {     document.getElementById('allRecordsDiv').innerHTML = result; } function onError(result) {     alert("error.."); } }   script side;  $("#mySearchInput").keyup(function () { alert("aasdasd") });   c# side;      [WebMethod]     [ScriptMethod]     public static string GetSavedList()     {         DataTable dt = DBoperation.GetAllRecords();         string html = "
";         //add header row         html += "
";         html += "
  <input class=\"form-control\" id=\"mySearchInput\" type=\"text\" placeholder=\"Search..\">
";         html += "
";         html += " 	";         for (int i = 0; i < dt.Columns.Count; i++)         {                 html += "" + dt.Columns[i].ColumnName + "	";         }         html += "  	";         html += "
";          html += "
";          //add rows         for (int i = 0; i < dt.Rows.Count; i++)         {             //some rows         }         html += "
";          html += "
";         return html;     }


Please help check that $\int_0^{\pi/2}\frac{1}{\sqrt{1-k^2sin^2\theta}}d\theta$ is equivalent to $-\log\sqrt{1-k^2}$ for $k\to1$.  I really have no clue how to do this. Could anyone kindly help or provide some hint? Thanks so much!


How many solutions does the equation $x+y+z=11$ have?

How many solution does $x+y+z=11$ have where $x, y, z$ are non-negative integers. In light of the restrictions, its clear that $x,y,z \in \{0,1,2,..11\}$. So, at face value I would assign a value for $x$ and determine the different combinations that $y$ and $z$ can hold. For example,  For $x=0$, we have $y+z=11$. With writing them out I found that there are $12$ different assigned combinations for $y$ and $z$ that satisfy the equation. For $x=1$, I got $11$. Consequently, the pattern becomes clear whereby each one takes a value less by one. Hence, the number of solutions is $1+2+3+4+5+6+7..+12=78$. I was wondering if there is an easier method perhaps with combinations equation $C(a,b)$..?


Not Able To Check Already Existing Username

import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement;  import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;  @WebServlet(name = "SimpleServlet", urlPatterns = { "/SimpleServlet" }) public class SimpleServlet extends HttpServlet {      private static final long serialVersionUID = 1L;      public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {          response.setContentType("text/html");         PrintWriter out = response.getWriter();          String username = request.getParameter("username").toString();         String password = request.getParameter("password").toString();         String repassword = request.getParameter("repassword").toString();         String ph = request.getParameter("phone").toString();         double phone = Double.parseDouble(ph);          String address = request.getParameter("address").toString();          int status = register(username, password, repassword, phone, address);          if (status > 0) {              RequestDispatcher rd = request.getRequestDispatcher("Register_success.jsp");             rd.include(request, response);         } else {             RequestDispatcher rd = request.getRequestDispatcher("Register_fail.jsp");             rd.include(request, response);         }          out.close();     }      static int status = 0;      @SuppressWarnings("null")     public static int register(String username, String password, String repassword, double phone, String address) {          PreparedStatement ps;         Connection con;         con = GetCon.getCon();         try {             Statement st = con.createStatement();             ResultSet rs = st.executeQuery("SELECT username FROM newuser where username='" + username + "'");              while(rs.next())             if (rs.getString("username").equalsIgnoreCase(username)) {                 System.out.println(username);                 HttpServletResponse response = null;                 response.sendRedirect("UserAlreadyExist.jsp");             } else {                  ps = con.prepareStatement("Insert into newuser values(?,?,?,?,?)");                 ps.setString(1, username);                 ps.setString(2, password);                 ps.setString(3, repassword);                 ps.setDouble(4, phone);                 ps.setString(5, address);                  status = ps.executeUpdate();             }         } catch (SQLException e) {              e.printStackTrace();         } catch (IOException e) {              e.printStackTrace();         }         return status;      } }   Hello,    I have a problem with executing above code. When we enter existing username it throw an NullPointerException. Please someone help me to find error. The code work fine with new username but not with existing.  Thank You !


How to make X less sensitive when right clicking?

Whenever I right click in X, I almost always seem to trigger the first option in the menu unless I am thinking about what I am doing because I:   Mouse down; menu appears Accidentally drag mouse 1-3 pixels down and/or to the right Mouse up; menu item selected   Is there any way to tweak this so the menus don't trigger quite so easily? If it matters, I am using Gnome 3/Cinnamon on Gentoo Linux.


I am using MikTex and WinEdt 8.1 on Win8.1 X64. I am trying to compile a tex file which was previous complied on another PC without any problem. But I am having multiple  LaTex Error: File `paralist.sty` not found LaTex Error: File `pdfpages.sty` not found   and so on. I installed basic MikTex package, and it should automatically install any missing package but failed this time. The WinEdt console asked me to Enter file name: or Type X to quit or RETURN to proceed. So I am wondering how to solve this issue.  ps. I finally solved this issue by trying to download the missing packages multiple times as it is sometimes not able to connect to the package repository.    cheers


One word to describe = 'era inappropriate'

One word to describe a 'tangible thing' (like tool, technology, architecture), 'concept or ideology', etc. that does not belong to a period. Like: envisioning crusaders riding into battle wearing a Timex watch - or - trying to enforce religious, social order/doctrine/clothing that is/are just impractical for the current age/era. Something to convey = 'era inappropriate'.... in the sense that it either did not exist or is impractical.


Proof that $3 \mid \left( a^2+b^2 \right)$ iff $3 \mid \gcd \left( a,b\right)$

After a lot of messing around today I curiously observed that $a^2+b^2$ is only divisible by 3 when both $a$ and $b$ contain factors of 3.  I am trying to prove it without using modular arithmetic (because that would be way too easy), but finding it very difficult to do so.  Is there an easy way to prove this without using modular arithmetic?  I am also interested in a more general statement.  Namely, I want to find the values of $Z$ for which $Z \mid \left( a^2+b^2 \right)$ necessarily implies that $Z \mid \gcd \left( a,b\right)$.  We know that $Z$ cannot be 5, because $3^2+4^2=5^2$.  More generally, if $Z$ is the largest element of a pythagorean triple then the above implication does not hold.


How does the Golden Ratio/Spiral Work? Is it useful with Logo Design?

I will be looking to create a Logo very shortly.  I am not formally educated in this principle, where I am self learning through a variety of online resources.  Through my learning, I have come across the term 'Golden Ratio' and the 'Golden Spiral'.  I have read and watched countless resources but my only taking is that the ratio is set at 1:1.618 and its purpose is to help inform the creation of something that is visually pleasing.  I understand how ratios and proportionality works.  Where I am at a loss, is on where and how these ratios and spirals are integrated into the design process.  Due to not actually getting anywhere with my understanding, I thought I would look at some images that claim to abide by these ratios and spirals.  Using Photoshop, I then placed the Spiral on top of the images as an overlay as follows ...       I understand the ratio of 1:1.618.  When it comes to the Grid approach, would I be right in saying that each Box is simply in proportion of its adjacent Boxes by a ratio of 1.618?  Does it matter where the Grids are and how many Boxes the image includes?  For example, I could place many more Boxes within the Grid approach, as long as they follow the 1.618 ratio?  Obviously, the more Boxes being added, the smaller they would have to be.    Assuming I have understood the Mathematics/Technicalities of the Golden Ratio Grid, I am still at a loss of its implementation.  What exactly should I look out for and what would I need to ensure was in each Box for example.  That still leaves the question ... How does the Spiral work?       Maybe its just the frustrations within but it often seems to be that many resources try and make the Spiral fit an image rather than the Spiral informing the ideation and creative process.   Any clarification, on this, would be greatly appreciated since I am at a loss at its usage.


I have a problem with getText() method. When I run this app and enter any number, also 9 it displays vcx. Is my if statement invalid or what?  public class Quadratic extends Fragment {  @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,         Bundle savedInstanceState) {     View rootView = inflater.inflate(R.layout.fragment_quadratic, container, false);        // layout     Button calc = (Button)rootView.findViewById(R.id.calcbtn); //main  button     final EditText etfx2 = (EditText)rootView.findViewById(R.id.etfx2); // x^2 etf      final TextView tbefs = (TextView)rootView.findViewById(R.id.tbefs);        calc.setOnClickListener(new View.OnClickListener()     {          public void onClick (View v){             String a= etfx2.getText().toString();               if(a=="9")             {                 tbefs.setText("asd");}             else             {                 tbefs.setText("vcx");             }           }      });     return rootView; }}


How to ensure only one instance of a java program can be executed?

It is requited that only one instance of a JAVA program can be executed at a certain time. I have observed a good number of solutions proposed in stack overflow in different earlier posts.  The solutions are based on:   By opening socket: To open a socket connection.  Based on the file locking: To create a temporary file and to hold a lock. And to add a shutdown hook to unlock that file when the JVM shuts down.   I do not want to use port locking as it can cause a possible conflict in ports usage.   So I was thinking to use file locking. After searching a bit, I have found the proponents of the port locking based mechanism has mentioned file locking can be unreliable if application crashes and for other IO errors.  What I need is to find a solution which will work consistently in cross platform and in multiple JDK. My intended platform is Windows and Linux and JDK is Sun and IBM JDK.  Can anyone shed some light on to this?


Helpless after exhausting daily limit for reviewing Suggested Edits

I have faced this problem earlier. But today I got to face this problem twice in a span of couple of minutes.. I have unfortunately finished my daily quota of reviewing Suggested Edits. But I want to further edit a post for which an edit has already been suggested by another user having less than 2000 Reputation.  I come across a post and it says that an edit has already been suggested which is pending for Review:   I click on edit (1) and a pop-up of Suggested Edit appears:    However, the problem is this Suggested Edit doesn't thoroughly deal with the post. It just fixes some capitalization and nothing else — no grammar fixes, no sentence restructuring to make it more clear, no code formatting, no dividing it into lists, etc. — in short, perfect candidate to be rejected. (The image for the suggested-edit I have uploaded didn't have those problems - however, there were those problems in the edits that I encountered earlier.) The problem before me is that I am helpless. I can't approve, reject or improve the edit since I have already gone past my daily quota of Reviewing them. Neither can I make the edits to the post since this suggested edit is pending review. I am completely helpless!! Whats the opinion of the community in this matter?  Should we (those with more than 2000 Rep) be able to edit them? Don't count it in our Review Progress obviously - not sure what should be done with the suggested edit already proposed.  Or, Let it be, someone else would come and edit them and other Reviewers would deal with the Suggested Edit appropriately.  Or, Something else.    Note: This might not be much of a problem for Stack Overflow since the Review Queue is very busy here. However, this is a bit of a problem for smaller sites. So, treat it as a question posted at Meta.SE and not so much at Meta.SO.  Dirty Hack: Ah... found a dirty hack to work around this situation. However, this shouldn't be used unless absolutely necessary. Credit goes to  in . To edit a post enter this link in your browser: http://${site_url}/posts/${post_id}/edit. So, to edit this particular post one would enter: http://meta.stackoverflow.com/posts/171129/edit. I repeat, the hack shouldn't be used unless necessary.


Kids movie came out in 90s with wrist watch set alarm for wrestling show but by end is used in another time period

I have been trying to find the title of this kid's movie involving these 2 scenes and the best description from what I can remember. Each of the scenes are connected by the use of the watch but in two different time periods in 1980s/1990s and then in the past.  First it’s about two best friends (I think both are male) who both set their wrist watches at a certain time to remember to watch a TV show (I think wrestling?) each week and after confirming the exact times on their wrist watches they say yeah air alright and possibly high five.  The show somehow had to do with time travel to the past. Only one of the friends goes back but I'm not sure how. While being stuck in the past and trying to solve a problem to help the people in the past, his alarm for the TV show goes off and he remembers the title of the TV show by hearing the alarm uses the battery to solve the problem. The watch didn’t cause the time traveling only that the battery of the watch was used in the past after traveling there.  But other then those scenes I don’t know the whole main plot and around the time it came out in the early 90s or late 80s.  It's not A Kid In King Arthur’s Court.


same code not work after i use it with $("#id").append.the code look like the code that not load jquery and jquery moblie

I use this html code and it works well. The button can be clicked and change a page like I want to.

          #id	          name	          info

       1	       jui co.	       <button style="background-color: #FAF0BA; color:#00CCA5;" data-role ="button" data-mini="true" data-inline="true" data-icon ="info" class="info" value="1">info</button>

   now i want to add id and name into sqlite database. After i add i wan to show is under div id="my_data" using$('#my_data').empty().append(). my code that append is the same as code i use above.  function renderList(tx, results) {     var htmlstring = '
\n';      htmlstring += "
\n";     htmlstring += "

\n";     htmlstring += "
\n";     htmlstring += "#id	\n";     htmlstring += "name	\n";     htmlstring += "info	\n";     htmlstring += "
\n";     htmlstring +="
\n";     var len = results.rows.length;     for (var i = 0; i < len; i++) {         htmlstring += "
";         htmlstring += "" + results.rows.item(i).cid + "	";         htmlstring += "" + results.rows.item(i).name + "	";         htmlstring += "<button style=\"background-color: #FAF0BA; color:#00CCA5;\" data-role =\"button\" data-mini=\"true\" data-inline=\"true\" data-icon =\"info\" class=\"info\" value=\"" + results.rows.item(i).cid + "\">info</button>	";         htmlstring += "
";     }       htmlstring +="
";       $('#my_data').empty().append(htmlstring); }   It shows on screen but is look like when I did't import jquery and jquery mobile (which I did and it works well on the first code) and went I click the button, it doesn't work. It look like it isn't loading jquery and jquery mobile. It looks the same when I remove jquery and jquery mobile import and run the first code. How to make it work?  ps.my click code.  $(document).ready(function () {     $(".info").on("tap",             function () {                 document.location.href = "./customer_info.html" + "#id=" + $(this).attr("value") + "&name=" + uid;             }); });   --------------------------update1------------------------  i try the code below but it still don't work  $(document).ready(function () {     $('#my_data').on("tap",".info",             function () {                 document.location.href = "./customer_info.html" + "#id=" + $(this).attr("value") + "&name=" + uid;             }); });


Reading the recent ScienceAlert article "", it is stated that despite the relative abundance of silicon in the surface of the Earth, there are no silicon based lifeforms.  Specifically, the article asserts:     Why silicon has never be incorporated into any kind of biochemistry on Earth has been a long-standing puzzle for scientists, because, in theory, it would have been just as easy for silicon-based lifeforms to have evolved on our planet as the carbon-based ones we know and love.   I have read the question and answers "", which looks at the importance of carbon, what I am seeking information of is why carbon and why not silicon in the first place. So, therefore my question:  Why is it thought that silicon based lifeforms never flourished on Earth?


How to set the key animation down from 250

I see in the animation bar it goes up to 250. how can I put these down?


I have two classes that are inter-dependent. I am pretty sure, I am designing it in a wrong way but I don't know how to fix it.  So, I have a situation like following- My car class includes the truck class.  #include "stdafx.h" #include "truck.h"  using namespace std;  class car {     int wheels;     float speed;  public:     car(int wheels, int speed);     int numberOfWheels();     float speedRate();      bool isFaster(truck & truck); };   and then my truck class needs to include the car class-  #include "stdafx.h" #include "car.h"  using namespace std;  class truck {     int wheels;     float speed;  public:     truck(int wheels, int speed);     int numberOfWheels();     float speedRate();      bool isFaster(car & car); };   I am getting the include itself error and I know why but I can't find a way to get around that.  Can anyone please help me with it.


Prove that a group of order 45 is necessarily abelian by Sylows' Theorems

So far, my attempt of proof looks like this:  $\#G =45=3^2\times 5$, so:   By the 1st Sylow Theorem that G has p-subgroups of order 5, 9 and 3. By the 3rd theorem, the p-subgroups of order 5 and 9 have to be unique:  $$n_5 = 1 \text{ (mod } 5), n_5 |9 \implies n_5=1$$ The proof is analogous for $P_9$ and so they're both normal in G (by adding the 2nd Theorem, all the p-subgroups are conjugate and there can't be any conjugate of $P_5$ or $P_9$ that isn't the group itself, since we've already shown they're unique).   For every p-subgroup, we know it's center is not trivial, so $\#Z(G)>1$   Now, I'm having trouble linking the information about its p-subgroups to the equation: $$\#G = \# Z(G) + \sum_{i=1}^\infty[G:N(x_i)]$$  I feel like there's something quite obvious I'm missing but I can't put my finger on it.   I've looked into  post also, but the example they give has references to a "Corolary 15" to show that the center has either order 6 or 48, but the theorem isn't there so idk what theorem they're refering too.


Proof of proposition 5.3.1 of Ravi Vakil's notes on algebraic geometry

I am reading the proof of proposition 5.3.1 of , and I have a problem with the last sentence : "If $g' = g''/f^n$ ($g''\in A$) then $\textrm{Spec}((A_f)_{g'}) = \textrm{Spec} (A_{fg''})$, and we're done."  Noting $V = \textrm{Spec} (B)$ and $V' = \textrm{Spec} (B_g)$, and noting $D_Z (h)$ the distinguished affine open subset of an affine scheme $Z$ associated to a section $h\in\Gamma(Z,\mathcal{O}_Z)$, I understand perfectly that if we note $U' = \textrm{Spec} (A_f)$ then the inclusion $U'\subset V$ induces a morphism $f : \Gamma(V',\mathcal{O}_X)\to \Gamma(U',\mathcal{O}_X)$ and that if we note $\varphi$ the associated morphism of affine schemes then $\varphi^{-1}(V') = D_{U'}(g')$ where $g'$ is the image of $g$ by $f$, but as $\varphi$ is the the inclusion $V'\subset U'$, we have $\varphi^{-1}(V') = V'$ because $V'\subset U'$ so finally $V' = D_{U'}(g')$ and $V'$ is distinguished in $U'$. I guess that the last sentence of the proof is supposed to show that this $V'$ is also distinguished in $U$, but I don't understand why.


Why doesn't the first list do the same as the second?

result_list = [[]]*3 print(result_list) #output [[],[],[]] result_list[0].append(0) result_list[1].append(33) result_list[2].append(2) print(result_list) #output [[0,33,2],[0,33,2],[0,33,2]] # ???????????  list = [[],[],[]] print (list) #output [[],[],[]] list[0].append(0) list[1].append(33) list[2].append(2) print (list) #output [[0],[33],[2]] #normal  I want to make a list, where I can say, how many [] there should be (like in the first example with *3), but I want that list to behave like the second example, so that I can append to each [] individually.


We have apex predators for animals that have no natural predators.  But it only applies to animals that are themselves predators.  Are there more concise or pithy terms for "animals/organisms with no natural predators" that would encompass herbivores?


Rename files by incrementing a number within the filename

I have a directory which contains numbered image files, something like this:  01.png 02.png 03.png 03.svg 04.png 05.png 06.jpg 07.png 08.png 09.png 09.svg 10.png   Sometimes there may be multiple versions of a file in different formats (eg. a png and svg version of the 03 and 09 files above) but the numbers are otherwise consecutive.  Typically there are 40-80 such files in each directory.  The numbers correspond to the order these images appear in a manuscript (a Word document, but that's not important).  There is no other way to determine the order of the images.  If I add a new image to the manuscript I need to place a copy of the image in this directory with the correct numbering.  So if the new image is the fifth in the manuscript I need to rename the files in the directory to this in order to make room for it:  01.png 02.png 03.png 03.svg 04.png 06.png 07.jpg 08.png 09.png 10.png 10.svg 11.png   What is the most straightforward way from the command line, or from a script or macro to renumber all the files starting at a certain number?  I have a standard Fedora Linux install using bash.


Click even not triggering even though I'm using "on"

I have the following code:    if(amStatus === "Logout") {     $('#row-qfauto-1 .large-9').append('Next')     $('#next-password').click(function() {       $('#row-html2-0').addClass('next-visible')       $(window).resize()     })   }    $('.button-next').on('click', function() {     $(this).hide()     $(window).resize()   })   As you can see button-next is being added dynamically with jQuery. So in order to make the button disappear when clicked I decided to use on.  However, the button doesn't disappear. It just stays there. When I do     $('.button-next').click(function() {     $(this).hide()     $(window).resize()      })   twice in the console, then the button disappears. Weird. What could be the problem?  Live site:


Let $(a_n)^{\infty}_{n=m}$ and $(b_n)^{\infty}_{n=m}$ be convergent sequences of real numbers. Let $x$ and $y$ be the real numbers $x:=\lim\limits_{n\to\infty}a_n$ and $y:=\lim\limits_{n\to\infty}b_n$. Show that the sequence $(\max(a_n,b_n))$ converges to $\max(x,y)$; in other words: $$\lim_{n\to\infty}\max(a_n,b_n)=\max\bigl(\lim_{n\to\infty}a_n,\lim_{n\to\infty}b_n\bigr)$$  I was not able to prove it and would appreciate your help.


How to clear the history of Ubuntu Software Center

In the USC window and go to the History tab at the top, it records every of your installations, update, removal, please tell me how to clear them    I tried this:   But it didn't work, after deleting var/log/apt/history.log /var/log/dpkg.log, there are sill many text files in the folders which referred to the history of USC.


How do I efficiently create closed shapes with shared boundaries in Inkscape, e.g. countries on a map?

In the drawing you see five paths (orange pink green blue and red), which define the boundaries of 4 regions (a b c and d).  I now want to create those regions so they are fillable, and without crazy "op-art" effects due to differing directions. For instance, to create region b, I need to use the pink path (which is shared with c), the green path (shared with a) and part of the blue path (shared with d).  What is a process for doing this that is efficient?  My actual drawing has dozens of regions and I'd like a process that doesn't take a week.


Witch hunting was standard practice for muggles of old. One can argue that the main reason was fear of the unknown, but it is established (Beedle tales) that one major component of said fear was religious.  How about the other way? Do magic folk follow any religious practices?


Book about a world where things improve when being used

In the '90s, I read a book that about a world where things improve when being used. In the book, people on Earth have some kind of device that remotely scans the universe, looking for worlds/civilizations. They find one and send a one-man mission there through some kind of teleporter. The man gets stranded in the world. When exploring the world, he finds a human, medieval-looking civilization. The people seemingly have some remarkable technology. On the other hand, he finds the people lack any technological skills or knowledge. Over the time he realizes that they did not build the technology. On this world, things improve when being used. So the people start with stone age-grade tools, and by intensively using them, the tools improve. Conversely, when the tools are abandoned, they degrade over time. For example the people start with an axe from stick and piece of stone. Or they make window glass by taking a piece of quartz and staring at it long enough for it to become a transparent glass sheet. Some common people make stuff this way for living for rich people/aristocracy. I believe at the end of the book, the explorer realizes that this mechanism of the world is somehow related to the kind of birds that live there. Also he realizes that he is not only on a distant planet, but also in the future. The planet was inhabited by explorers/refugees from Earth who wanted to live a different and isolated way (possibly without technology, but I've forgotten the details). They struggled to survive, so the rest of the humanity helped them by sending genetically engineered birds that changed the world mechanics as described. Can anyone identify the book from this description? Thanks.


Increase UiTextView size as text increases

I want my UITextView size to be increased according to the text in it and if the text is long then it should allow scrolling. How can this be achieved? Any help will be appreciated.


I want to know if it's possible to get the ID of a page with a specific template. Is this possible to get the ID of a page that assigned to "page-special.php"?


Accessing WPF UserControl child element property

Let's say I have a UserControl with several child controls  <UserControl x:Class="Any.AnyControl"     <Grid>         <Label Name="label1" Background="Black" />         ... more controls here       </Grid> </UserControl>   and I use it in MainWindow like so:  <Window>     <Grid>          <local:AnyControl/>          // I want to access AnyControl label1 Background property here      </Grid> </Window>   I know how I can access AnyControl label1 Background property in code-behind, but is there any way I can access it in parent XAML?  my code now: in parent XAML  <local:AlertControl LabelBackground="Blue">                              in UserControl    <Label Background="{Binding LabelBackground, RelativeSource={RelativeSource AncestorType=UserControl}}" />   and try with this too  <Label Background="{Binding LabelBackground, RelativeSource={RelativeSource AncestorType=local:AlertControl}}" />


Create Task in loop but all tasks take the same parameter

I'm trying to create tasks in a loop and each task uses different values as method parameter. However, I found all tasks are having the same parameter              for(int i = 0; i < threads; i++)         {             tasks.Add(new Task( () => DownloadFunc(i) ));         }          WATCH.Reset();         WATCH.Start();         Parallel.ForEach(tasks, t => t.Start());


Do users get more reputation for edit on an answer with score > X?

I met  and I saw he just received +4 reputation for one single edit 2 days ago.   I'm curious, is there anything behind this behavior is it just a favorite cache/"recalculation needed" problem?


How to find one unknown number while LCM and GCD is given?

help me find unknown integer number n such as  LCM(n,50) = 200  and  GCD(n,50) = 10  how do you solve?  I tried factoring each numbers such as   $200 = 2^3*5^2$  $10 = 2*5$  $50 = 2 * 5^2$  but idk whats next...  edit:   ok thanks for the help I am now able to solve this type of question:) thanks a lot!


Limit of $\sqrt x$ as $x$ approaches $0$

What is the limit of $\sqrt x$ as $x$ approaches $0$? I asked a few people and they all gave me two different answers. Some said that the limit is $0$, and other say that the limit is not defined because the right-hand limit is $0$ while the left-hand limit is undefined. I'm confused. please help!!


Possible Duplicate:          Yeah I could  (and probably will) just escalate to root, but I'd like to know why this doesn't work?  sudo cat .mplayer/config >> /home/griff/.mplayer/config zsh: permission denied: /home/griff/.mplayer/config   sudo is configured to be able to run any command, I've placed no restrictions on it.


SF TV movie or mini-series, human boy and various aliens fight against alien conqueror

As a kid in the eighties I saw (part of) a TV movie or mini-series that I'm trying to track down. It was live-action in English. A human boy somehow ends up as one of the pilots on a selection of various space-fighters. The other pilots/crew are members of various alien species. The ships are all different too. They are the last free people fighting an alien conqueror. The alien bad guy has the charming habit to chop body parts of the various people he has killed and use them as replacement parts for his own body. He is basically a random collections of mismatched body parts at this point. Among the good guys there is a female pilot from a very warlike and aggressive race (she is possibly the last survivor of her people). She has a very large chip on her shoulder and considers herself the ultimate warrior. I think she was a Valkyrie or some similar name and wore a winged helmet. Another of the good guys is a group of 6 or 7 white skinned aliens that have a collective mind and telepathic powers. Very notable scene (and the only one I really remember well): One of the white guys from the hive mind gets killed and one of his arms is used as a replacement by the bad guy. The others of the group combine their psi-powers to remote control the arm and they try to strangle the bad guy with the arm. I can't recall if they succeeded or not. EDIT: The Last Starfighter isn't it. I should have mentioned that straight away. Even though it also has a severed arm strangling someone it is NOT the movie I'm looking for.


If I know coordinates of point $A$, coordinates of circle center $B$ and r as the radius of the circle, is it possible to calculate lines that are passing through point $A$ that are also tangent to the circle?    A is the green point, B is the center of the red circle and I am trying to find out the blue lines.


I need to render roads and some direction marks on top of them. I render roads as triangled geometry, same goes for marks (see picture - road is purple, mark is red, ignore z-fighting).  Problem goes for edge of road. Is too much "jagged" and not straight. Is it result of perspective projection (thats what I believe). And how can it be improved? There is no texture, colors are filled directly in fragment shader.    EDIT:  I have tried solution from duplicite answer, but jagged edges are still there. Even if multisampled EGLConfig is selected.


I have the following paragraph:     We often write hundreds of lines of code to express simple concepts. This code takes time to develop and maintain - and if you’re writing  tests, then that time doubles.   I've pasted into both Grammerly and Word, but neither offer a correction.   I'm not confident if it should be this or that.


After it was reinstalled, updates downloaded but it won’t start even from the terminal. This is the error message it gives:  Running Steam on ubuntu 16.04 32-bit   STEAM_RUNTIME is enabled automatically   [2016-04-25 09:12:35] Startup - updater built Mar 31 2016 19:10:48   SteamUpdateUI: An X Error occurred   X Error of failed request:  BadValue (integer parameter out of range for operation)


Calculate $\sum\limits_{k=0}^{\infty}\frac{1}{{2k \choose k}}$

Calculate $$\sum \limits_{k=0}^{\infty}\frac{1}{{2k \choose k}}$$  I use software to complete the  series is  $\frac{2}{27} \left(18+\sqrt{3} \pi \right)$  I have no idea about it.  :|


I brought my P.C from a shop here in kochi.I asked them to install ubuntu 13.04. After i brought system to home I understood that they didnt gave me User password to login.(They had created a user named USER during installation).So i set new password by typing commands in to terminal in recovery mode.(Activated root user and set new password for the USER).but later while using some applications it is asking for login keyring.My new password doesn't. matches the keyring password.Help me


You call randomly a family with two kids, and ask if there is a kid called Tom. The answer is yes. Then what is the probably that the family has two boys.  So we want that $P(2 \text{ boys } | \text{ one of the children is called Tom })$. We can have: \begin{array}{c} Tom, B \\ B, Tom \\ Tom, G \\ G, Tom \\ \end{array}  So then since we know one of the kids is Tom then the probability must be $\frac{1}{2}$. Now if the question were to ask if we are given we know there is one boy and then we are asked to find the probability of two boys then we have: \begin{array}{c} B (known), B \\ B(known), G \\ G, G \\ \end{array} So then this would be $P ( 2 \text{ boys } | \text{ one of them is a boy} ) = \frac{1}{3}$  Are these reasonings correct?


How can I make ubuntu ask for my password before mounting usb-drives?

THIS POST IS NOT A DUPLICATE ALTHOUGH IT HAS BEEN MARKED AS SUCH. NO WHERE ON THE ALLEGED DUPLICATE PAGE DOES IT MENTION EXTERNAL DRIVES OR HOW TO DIFFERENTIATE THEM INSIDE POLKIT  I did some research and found my question asked already. It is a duplicate of   the problem is, they did not answer that persons question, at all. He did not ask about encrypting a drive. His issue, as is mine, is not protecting a single flash/usb drive, it is protecting his Ubuntu system from someone inserting a usb/flash drive  He, as well as I, want Ubuntu to prompt for our password before mounting any USB drive that gets inserted. How can I do this?  I found this topic  but that is for either all drives, or for specific ones. All drives will not work for my setup, as I do not require it to mount internal drives. The individual drives setup will not work either, because in this case the UUID is unknown, so setting it up ahead of time is not possible.  I thought the original poster stated the problem well, and it was not a case of misunderstood question, the person answering just did not answer the question asked.  I went to add to that already started topic, but the guide that popped up suggested I not ask further questions if the topic is not answered. I hope I did the right thing by creating a new topic.  EDIT: More explanation was asked for. I have internal drives, that do not get mounted when the machine boots. They are dm-crypt encrypted drives that get mounted when I enter my key at the cryptsetup prompt, after the machine is booted and logged in. So requiring the password for ALL drives will not work. As I mentioned the UUID of an unknown usb/flash drive is well, unknown, so the specific drive setup in fstab will not work either. Is there a way to require it for all External drives, but not the Internal ones?  I appreciate all the suggestions, even the off-topic ones that do not answer the question I asked  EDIT again: Thinking about it, could udev be used to write some rule for this? I do not understand udev well enough yet, but it seems like that could be useful  EDIT: Anders not sure what on that page I should be looking at, but I do not see how to accomplish my goal, with info on that page. Please share your idea


Do I need to sand my pressure-treated deck before staining?

I just got a new deck built using pre-treated wood. Do I need to sand it down before staining? I was told it was already sanded since it was pre-treated and it looks smooth and feels smooth so I don't think it needs sanding, but I would appreciate any feedback.


Polearm Master Paladin casting spells with a polearm in hand

Can a Polearm Master Paladin cast spells while holding their polearm (e.g. a Glaive)? Considering the weapon is Heavy AND Two-handed, I think they wouldn't have a free hand to clutch the holy symbol.


Can points on an integer lattice form the vertices of a regular hexagon

Is it possible for six points in the integer lattice to form the vertices of a regular hexagon


Why can we not just use the chain rule to derive $f(x) = x^x$?

I know that in order to derive $f(x) = x^x,$ you have to take the log of both sides first and then derive it to get $f'(x) = x^x(ln(x)+1).$ I know that if you take the derivative directly using the chain rule, you get the wrong answer. Why is this? I assume it has something to do with the fact that the definition of the derivative has $h\rightarrow 0$ and we would potentially have $(x+h)^{x+h} \rightarrow 0^0$ somehow (which is indeterminate form), but I'm not immediately seeing this.  EDIT: So as has been pointed out, this question has been answered elsewhere. Additionally, I did not provide enough information. Specifically: how am I applying the chain rule to get the wrong answer? (And I suppose 'What wrong answer am I getting?')  As it turns out, I couldn't decide which function is the "outside" function and which function is the "inside" function. Initially, I did the power rule first to get $$f'(x) = x\cdot x^{x-1} \cdot (x^x\cdot \ln(x))= x^{2x}ln(x),$$ which we've seen is wrong.


Will concerns regarding the move to CC BY-SA 4.0 elicit any further dialogue from Stack Exchange, Inc.?

Fifteen days ago, it was suddenly announced that .  The change took immediate and retroactive effect and is still in place.  However, .  To date, there has been no further engagement from Stack Exchange, Inc. on this subject, and consequently there is no indication as to whether these concerns are being considered.  Due to the legal nature of the issue I would understand if Stack Exchange, Inc. has opted to consult their legal partners before making any further statements on the topic.  If that is the case, I respectfully suggest that (at the very least) a short statement to that effect would be in order, as it has already been more than two weeks that the content has been [potentially illegally] re-licensed network-wide. Every day that this is the case, more content is posted, and if indeed the re-licensing of older content is ultimately deemed non-compliant, the technical can of worms involved in remedying the situation grows in mass and squirmishness.  If it is not the case, are there any plans to revisit this topic and feed back to the community as to what the next steps may be to resolve this dispute?  If there are no such plans, please consider that this is not just bikeshedding or whining or complaining or trolling. Licensing of our content, which to a large degree is the Stack Exchange Network, is a serious issue and deserves to be treated seriously.  And, if Stack Exchange, Inc. deems the concerns to be without merit, will we hear a confirmation of that so that we can proceed on that basis?


What do we see while watching light? Waves or particles?

I'm trying to understand quantum physics. I'm pretty familiar with it but I can't decide what counts as observing to cause particle behave (at least when it's about lights). So the question is what do we see with our eye-balls?   We point a laser (or any kind of light source) to the wall. We see its way from point A to B. Do I "see" a particle or a wave? Let's see an average object. It pretty much looks like their "pieces" a observing that influences their behave. Does this means while we're watching a light it acts like particle in quantum level?


Prove the sequence $a_n=\sum_{k=1}^n \frac {\sin(k)}{k^2}$ converges

I'm stuck at this question. I tried proving that the sequence converges through proving the sequence is Cauchy but I'm stuck there too. My try : Let $\epsilon>0$ and $n\ge m$. $$|a_n-a_m|=\left|\sum_{k=1}^n\frac{\sin(k)}{k^2}-\sum_{k=1}^m\frac{\sin(k)}{k^2}\right|\\ =\left|\sum_{k=m+1}^{n}\frac{\sin(k)}{k^2}\right|$$ And exactly there I'm stuck. How to prove it ? Thanks.


What measures does Cognito Forms take to ensure Privacy/ Security Level for Completed Forms/ User Data?

Some forms may contain confidential information - even something basic like where a person lives.   What measures do Cognito Forms take to ensure that data stored within its site is secure?


How does Newtonian gravitation conflict with special relativity?

In the Wikipedia article , it says     After Newtonian gravitation was found to be inconsistent with special relativity, . . .   I don't see how Newtonian gravitation itself is inconsistent with special relativity.  After all, Newton's Universal Law of Gravitation is completley analogous to Coulomb's Law, so it would seem that, if there were an analogous "gravitational magnetic field", one could formulate a theory of gravitation in exact analogy with Maxwell's Theory of Electromagnetism, and of course, this would automatically be consistent with Special Relativity.  What about this approach to gravitation does not work?  The only problem I could see with this is the lack of evidence for a "gravitational magnetic field".  That being said, gravity is "weak" as it is, and my guess is that it would be extremely difficult to set up an experiment in which a massive body were moving fast enough for this "magnetic field effect" to be obsevable.  EDIT:  As has been pointed out to me in the answers, Newton itself is inconsistent with SR.  Similarly, however, so is Coulomb's Law, yet, electromagnetism is still consistent with SR.  Thus, how do we know that it is not the case that Newton's Law is the special "static" case of a more general gravitomagnetic theory exactly analogous to Maxwell's Theory:  Let $\mathbf{G}$ be the gravitation field, let $\rho$ be the mass density, and $\mathbf{J}$ be the mass current density, let $\gamma _0$ be defined so that $\frac{1}{4\pi \gamma _0}=G$, the Universal Gravitation Constant, let $\nu _0$ be defined so that $\frac{1}{\sqrt{\gamma _0\nu _0}}=c$, and suppose there exists a field $\mathbf{M}$, the gravitomagnetic field, so that the following equations hold: $$ \vec{\nabla}\cdot \mathbf{G}=-\frac{\rho}{\gamma _0} $$ $$ \vec{\nabla}\cdot \mathbf{M}=0 $$ $$ \vec{\nabla}\times \mathbf{G}=-\frac{\partial \mathbf{M}}{\partial t} $$ $$ \vec{\nabla}\times \mathbf{M}=\nu _0\mathbf{J}+\gamma _0\nu _0\frac{\partial \mathbf{G}}{\partial t} $$ where theses fields would produce on a mass $m$ moving with velocity $\mathbf{v}$ in our inertial frame the Lorentz force $\mathbf{F}=m\left( \mathbf{G}+\mathbf{v}\times \mathbf{M}\right)$.  This theory would automatically be consistent with SR and would reduce to Newton's Law of Gravitation for the case of gravitostatics:  $\frac{\partial \mathbf{G}}{\partial t}=\frac{\partial \mathbf{M}}{\partial t}=\mathbf{J}=0$.  (To be clear, you can't just set the time derivatives equal to $\mathbf{0}$ as it seems I have done.  Upon doing so, you obtain the corresponding static theory, which is technically incorrect (as you can easily see because it won't be relativistically invariant), but is nevertheless often a useful approximation.)  My question can thus be phrased as:  without appealing directly to GR, what is wrong with this theory?


Will server side redirect for mobile devices satisfy google?

Because our client base is largely government agencies, we have been way behind on mobile support for our site. Now with google making mobile readiness a core part of their search rankings, it is suddenly a priority.  A truly responsive design would require a complete redesign, which in all honestly is desirable anyway, but it is proving to be a tough sell, and management wants to leave the existing desktop-oriented site as-is and use redirects to host completely separate versions of our pages for mobile users.  Before I dig my heels in and fight for the more time consuming responsive redesign, is there a concrete SEO advantage to either approach?


Listing churches with their administrative location using Overpass

I'd like to extract a list of churches from OSM with their name, their coordinates and the name of the lower administrative division they belong to. I managed to get the first ones with:  area["name"="Mayenne"]->.boundaryarea; way(area.boundaryarea)["building"="church"]; out tags center;   I deliberately ignore nodes and relations as they don't seem relevant in this case.  I can't find a way to retrieve the name of the lower administrative division. Is there a way to do it?


How do I add a refresh option in the right click menu in Ubuntu 16.04?

I'd like to have an option on the right-click menu to refresh Nautilus.  How can I achieve that?


I've never really had to think about this problem before, and to be honest complex analysis isn't my strongest suit, so when I suddenly needed to know where $z^z$ is holomorphic, I didn't know where to begin to start proving my hunches. My guess is that it's holomorphic away from $0$.  More generally, given two entire functions $f$ and $g$, where is $f(z)^{g(z)}$ holomorphic? Again, my hunch is that it is away from the zeroes of $f$. This isn't a time sensitive question, so any help you can provide would be appreciated, from proofs to thoughts to hints!


I was asked to design a 3 feet x 10 feet banner but I'm not sure what resolution and what not

I'm making the design in photoshop. I was asked by my employer to design a 3ft x 10 ft banner for an event. It's my first time designing a banner. I was thinking if I could use 3 inches by 10 inches canvas to work on at a 768 resolution(ppi).   Is it still going to look alright after printing as the image is going to stretch 12 times the original working size?


A question in my assignment asks: Suppose that $X$ and $Y$ are independent with a common uniform distribution over $(0,1)$. Find the probability distribution function of $X+Y$. First I assume that I have a variable $a$ such that $a = X + Y$, and $ 0 < a <2$. I can then formulate the following: $$f_{X+Y}(a) = \int^\infty_{-\infty} f_X(a-y)f_Y(y)dy$$ So far so good, mostly just putting in formula. Now I'm stuck. A quick reference to the answer key tells me that the above is also: $$=\int^1_0f_X(a-y)\times1dy \\=\int^1_0f_X(a-y)dy$$ Can someone kindly explain the logic between the jump of converting the $(-\infty, \infty)$ to $(1,0)$, then assuming $f_Y(y) = 1$? How does that work, and does it have anything to do with the fact that I'm integrating w.r.t. $y$? Thank you in advance!


Fan is always on, CPU usage is rather low and can't find the fan or thermal_zone proc files

I have an Asus N76VB notebook with Ubuntu 14.04 and TLP for power managment. However, the fan is always on. It's not really loud, but it's annoying. My CPU usage is around 1-2%. It's clocked at 1.20 GHz.  I've added acpi=force to my boot parameters but it doesn't change anything.  /proc/acpi/fan: No such file or directory /proc/acpi/thermal_zone: No such file or directory   I've loaded all Asus ACPI modules.  lsmod | grep asus:  asus_nb_wmi            16990  0  asus_wmi               24191  1 asus_nb_wmi sparse_keymap          13948  1 asus_wmi video                  19476  2 i915,asus_wmi wmi                    19177  2 mxm_wmi,asus_wmi   Somehow, it can read the temperatures.  sensors:  acpitz-virtual-0 Adapter: Virtual device temp1:        +43.0°C  (crit = +108.0°C)  coretemp-isa-0000 Adapter: ISA adapter Physical id 0:  +44.0°C  (high = +87.0°C, crit = +105.0°C) Core 0:         +44.0°C  (high = +87.0°C, crit = +105.0°C) Core 1:         +42.0°C  (high = +87.0°C, crit = +105.0°C) Core 2:         +39.0°C  (high = +87.0°C, crit = +105.0°C) Core 3:         +39.0°C  (high = +87.0°C, crit = +105.0°C)  asus-isa-0000 Adapter: ISA adapter temp1:        +43.0°C     I really hope someone knows how to solve this. Almost all information I could find was about saving power to create less heat.    I got Intel and NVIDIA (GeForce 740M) graphics but I'm almost anytime on Intel.  $ sudo lshw -c display   *-display                       description: VGA compatible controller        product: 3rd Gen Core processor Graphics Controller        vendor: Intel Corporation        physical id: 2        bus info: pci@0000:00:02.0        version: 09        width: 64 bits        clock: 33MHz        capabilities: msi pm vga_controller bus_master cap_list rom        configuration: driver=i915 latency=0        resources: irq:43 memory:f7400000-f77fffff memory:d0000000-dfffffff ioport:f000(size=64)     fwts fan:


Why is the title of a question linked to the same page?

I already asked a related . Please see the reference.  What's the benefit especially for the Stack Exchange network to link the title to the same permanent page?


Is a (common) CPU faster at computing low values than great ones?

Question is that simple: Would combining two low values with a common basic operation like addition, division, modulo, bit shift and others be combuted faster than same operation with greater values?  This would, as far as I can tell, require the CPU to keep track of the most significant bit (which I assume to be unlikely) but maybe there's something else in the business.  I am specifically asking because I often see rather low primes (e.g. 31) used in some of Java's basic classes' hashCode() method (e.g. String and List), which is surprising since greater values would most likely cause more diffusion (which is generally a good thing for hashfunctions).


Is there a way to call "access callback" with parameters?

I have:  function hook_menu()  {     $items = array();     $items['experiment-2'] = array(         'title' => 'Experiment 2',         'page callback' => 'drupal_get_form',         'page arguments' => array('experiment_form'),         'access callback' => 'user_can_access_experiment',         'file' => 'includes/experiment-2.form.inc',         'type' => MENU_NORMAL_ITEM,       );      ...   This will call:  function user_can_access_experiment() { }   But I want to be able to call it something like:  function user_can_access_experiment($experimentID) { }   And then somehow let hook_menu call the function as user_can_access_experiment(1) or user_can_access_experiment(2) or whatever.  Is this possible?


What is the most rigorous definition of a matrix?

Is matrix just a rectangular array of symbols and expressions, or one can define it in a more formal way?


I have done everything correctly but my \begin{lstlisting} is overflowing and I did not find any method to stop it. Plz help  \begin{enumerate}[(b)]  \item To generate a 128bit WEP key. We have added a -w flag in the switch-case statement and also added a new option in the array pwgenoptions. After that, we have set the \emph{pw\_length} as 128 for 128bit WEP key. Finally, we have run the make operation again and compiled it successfully. Following the result of our modification:  \begin{lstlisting} bril@MT2012018:~/Desktop/pwgen-2.06$ ./pwgen -w 5 uGh1r eSh9A ohGh4 seeS5 AhJ2E eiQu6 iY8oe hooP7 AN7ia Ek3ak ohY7n hi5Up Yahc4 ue9Sh du4Nu ohr9I ag7oD Iyou9 Rei2m Aev4v ga8Hu Ait3e Ahph7 Om1ee Phob8 Eo2Oh io9Ai too2H joh0A ui8Iu foh0R Ze0ai Iw6wu VaJ2x ieM3I ve9aM ohd7A mee4H LueX7 OhV8u Seeh4 ohg1I Mejo1 Ook3V Eel3h ec2Co huiN2 Pie6X Raet6 Akua3 Voh8d aiG4S ivu5U teeV9 Oop9r Pai9G ox3Ei eiT8x Fei7u Phoi1 Eot6F aer2U Ga1og nai8E wee7U Eor9A oph1X Ti9ye uoF7w Joo2w cho2I Ool8Z aik8K OoV7V Eet5n AhL7U ooc3U AiSh1 Pie1x wei7X eeSh1 Ai4ae voR1a Yook8 Be9Ie Ahl9N eP1Za Zu5th Id7ai io7Oo She7m cai1W ivoY8 Quou3 taiT4 Ak2uk poh6Y Eyo2g Eis7d gol0E hu6Qu Xai9u eeZ5E Ugie6 zeo5I al7Ti ia4Ph Quiy2 Orai8 zeiY2 Ie0go Phoo6 oTh9u eWoo7 Eiph3 eed9D Caiv4 eeZ6i Shou0 gae7A uap6R ahM1a oox0E Aen2E lat9H Uj7ei Aik8w Ik1no ohP0f Oosh0 ooP1p Hau3p ooM0p oeK4o Tii1w aoC3d Ogh5E eo3EF vie1Z Hohl5 Cooy2 oD6ju Ahph2 cee8E Kex2a iCh0T Peej2 iiSh6 ith3U bohV8 So9ei Iu1ye aef8E Jue9s uGh9A kui7B au7Ae Aep8H Ie5ro jai2O ohH0o Ohco6 Quai6 lei1Y oaQu7 ooD8u Do7ie Oos8y Eexe1 Giz4J Eeh4y Aix4x pei1H ESh0i Iel2I aeN5o tahY1 ga8Ae moaC9 ieT6s ooVu4 Vohc2 ahc7H uQu9d Eigh4 xi5Ah Oof4i Yoo7e sohW0 vei8H Ouch2 UCh0v ood9V aV3to ood4S yu4Oo Eich3 eiG6u oox2A Ohy2j xea6A Ga6Oh zaTh2 aej6I voh5V Ooz8z Zahy1 een1R eeJ5j uRee8 yia2N Iyub9 xah3P oh4Ai AhT6u OB3fa Ie1ui OoGh2 if7Io eeGo4 Woo4l sa2Ta looR8 bei1E Vac2v Ooji9 Cah4l UC9ui ieZ1e Eivu5 Naeb6 ooQu9 ohFu1 OoX8i queB1 jooM5 uF2oo Ra5al coN2a uV3ee if9Ai Wee1W Iek2j tahY9 Miu4i ZuN2i Caez4 Jae2i XieY3 ohj1I IeG2b eeNg5 ish4G Eid4o eoGh2 ui8Ah Ahzi7 Chuc1 Oox4k Nah2u \end{lstlisting}    \end{enumerate}


Suppose we have functions $f:A→B$ and $g:B→C$. Prove that if $f$ and $g$ are invertible, then so is $g \circ f$. Is the converse true? I.e., if $g \circ f$ is invertible, does it follow that $f$ and $g$ are both invertible?  I know that if $f$ and $g$ are invertible, then they are both injective and surjective. Therefore, I assume from this that I have to show $g \circ f$ is injective and surjective as well, thus proving it is invertible. However, I don't know how to show $g \circ f$ is bijective based only on the information I have.


Execute a process always and continuosly in a single CPU Core

I would like to execute a process, which always has to use only one of the CPU core, and continuously run on that single core only.  I am using Ubuntu 14.04, How can i achieve this?


When I type ls -l and press enter I get a list of files, with details about each file. Next to each file there is permissions and rights for each file. What do they mean?  For example:  -rw-rw-rw-   I am thinking this means read and write access, though for whom and what? Essentially, if I needed to modify a file or change rights, I would need to know what I can and cannot change.


How many eulerian circuits are in $K_{2,n}$ ?

Hello I have been asked to find a formula of how many different Euler circuits or as it also called eulerian cycles are in $K_{2,n}$. when $n$ is an even number ofcourse otherwise there won't be any eulerian circuits.  for example in $K_{2,2}$ you have vertices $a$ $b$ $c$ $d$ so there is only one cycle possible, in other words $adbca$ is the same as $cbdac$.  thanks from advance :)


If $|f(z)|\le |f(z^2)|$ then prove that $f$ is constant

Let $\Bbb D$ be the open unit disc and $f:\Bbb D\to\Bbb C$ be an analytic function such that $|f(z)|\le |f(z^2)|$, for all $z\in\Bbb D$. Prove that $f$ is constant.   Here is my proof:   For any $0<r<1$, consider the closed disc $B=\{z\in \Bbb D:|z|\le r\}$. Then the given condition implies that $|f(z)|\le |f(z^{2^n})|$, for all $n\in\Bbb N$ and for $z\in B$. Since for $z\in B$, $|z^{2^n}|\le r^{2^n}\to 0\implies z^{2^n}\to 0$. So by continuity, $|f(z)|\le |f(0)|$, for all $z\in B$. So by the Maximum modulus theorem, $f$ is constant on $B$. By the uniqueness theorem, $f$ is constant on $\Bbb D$. Is this correct? Let me know if there is any fallacy.


I'm looking for an appropriate word to describe someone who is a man of his word.   Trustworthy springs to mind but doesn't seem appropriate, as it doesn't imply an honorable connotation associated with a person who keeps their word.


Book 7: When Lord Voldemort "killed" Harry in the Forbidden Forest, he is apparently knocked out (like Harry) for some reason.  Why?  What happened to Voldemort when he was knocked out? Did he also visit Limbo?


I'm trying to install git with   apt-get install git   it then says  E: Could not open lock fine /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   How do I get this?


Prove I know a value v in a set s.t. K = H(v)

Is it possible to prove that I know a value v in a finite set, such that the hash of the value v is K.  Where v is private and K is public


According to special relativity, has the future already happened?

According to special relativity, a photon traveling at the speed of light, does not “experience” time. It is traveling into the future at an infinite rate, right?  That would mean that everything that could ever happen (my death, Trump winning the election, death of sun, end of the universe), has already happened (from the frame of a photon). We're just too "slow" to experience this.  Is this correct? Because that would bring some weird implications about free will, and the very nature of our existence. If everything has already happened, then we're just following a predetermined path.  Edit 1: I'm genuinely fascinated by this topic, however, I am also an idiot with very superficial knowledge, gained mostly from youtube videos and Wikipedia. Bear that in mind :)  Edit 2: The nature of my question seems to leave the realm of physics and cross into a philosophical issue. I was seeking physical explanation, to help answer something of philosophical nature, as both these realms seem to coincide for this particular topic.   Some have pointed out that thinking about the frame of a photon doesn't make sense. Instead, one could assume a spaceship traveling at $0.9999c$.


JavaScript RegExp For Phone number validation that need to allowing hyphens and space in between the numbers

App.component.html  <form [formGroup]="exampleForm">
          First Name        <input type="text" formControlName="phoneNumber" class="form-control" >
   </form>   App.component.ts  exampleForm: FormGroup;    number_pattern=' ^[0-9_-]*$ ';      constructor(private formBuilder: FormBuilder) { }      ngOnInit() {         this.exampleForm = this.formBuilder.group({             phoneNumber: ['', Validators.required, Validators.pattern(number_pattern)]         });     }   I need regex for phone with following rules, I tried regex code but its not working.   Field must not be empty. Hyphens and space will accept in between the number not the starting and ending. Must not contain anything other than numbers or blank spaces or hyphens Field must not contain only blank space Field must not contain only hyphens Field must not contain only hyphens and blank space.   Thanks in advance.


Does anyone know how to do this exercise? I couldn't do it.  Let $(X,S,\mu)$ be a $\sigma$ -finite measure space and $g\in M(X,S)$ such that $gs\in\mathcal{L}_1$ for any simple function $s\in\mathcal{L}_p$, $p\in(1,\infty)$. Suppose there is $A\geq0$ such that $\left|\int gs\,d\mu\right|\leq A||s||_p$ for all $s$. Show that $g\in\mathcal{L}_p$ with $\frac1p+\frac1q=1$ and $||g||_q\leq A$.


My first language is not English and I have a question about a sentence that I recently saw. And I hope someone can help me.  Is it correct to say:  "I wish John were a myth so you could bust him."  instead of:  "I wish John was a myth so you could bust him."  And if both are correct, what are the difference between the two?


Say you have  and  out on the battlefield and you cast a 1/1 creature. Does it deal 1 damage or 3?


I have caps-lock key remapped to control, which usually works fine, but after some uptime and one/more suspend/awake cycles* this mapping breaks, and caps-lock reverts back to the default behavior -- i.e. turning on the led and capitalizing whatever I type. (Even though the Tweaks UI still shows it as being mapped to Ctrl -- see picture below.)  Questions:  Is this a known issue (with maybe a known fix)? (Could not find anything relevant with a quick search.) Is there a way to debug the problem, preferably from the command line?  *Remark: I'm not sure it is the suspend/awake cycle that causes the problem, but I can't connect it to anything else... Remark2: removing and readding the mapping (or rebooting) solves the problem, but it would be nice to find a more permanent solution.


This is an extension of a .  How many pieces can one get at most if one cut a unit cube with n plane cuts?  1,2,4,8, ???  And assuming cutting through an area 1 takes time t, what is the least time needed to achieve the maximal pieces for n cuts, asymptotically?


Is there a good way to run a shutdown hook when I shutdown my Ubuntu 18.04 machine? I need to a run a script that might take about 30 seconds, to be specific pushing to git remotes any dangling changes.


Show that $\{\frac{f_k}{n}\}$ undergoes a cycle, where $\{M\}$ is the fractional part of $M$ and $f_k$ is the $k^\text{th}$ Fibo number

Show that the sequence $\Big<\Big\{\frac{f_k}{n}\Big\}\Big>_{k=1}^\infty$ is periodic, where $\{\mathrm{F}\}$ is the fractional part of $\mathrm F$ and $f_k$ is the $k^\text{th}$ Fibonacci number starting with $f_1=0, f_2=1.$    This is how I tried to tackle the problem: Consider the numbers modulo $n$. If we show the existence of $0$ followed by $1$ or $1$ followed by $0$, we will be done. The reason is short and simple- the point of periodicity of the sequence is $(\cdots, 1,0,1,\cdots)$ modulo $n$. Now, we know that $\{F_{i-1}, F_i\}$ has $n^2$ possible pairs, since $n$ can have at most $n$ different remainders upon division of other numbers. Therefore, after the $n^2+1$th pair, there will be the recurrence of one of the pairs. But how do we know that $(0,1)$ pair will exist? How to proceed from here?


Make div use all the remaining height of the screen

I need to make the .content div use the remaining screen height. I don´t know what´s the height of .header - I can´t use calc(100vh - headerHeight)  HTML structure
header

content
         CSS  html, body {     height: 100%; }   Tried with  .content {     display: flex;     flex-grow: 1; }   using 100vh didn´t work because it generated some vertical scroll (with the height of the .header)  .content {     height: 100vh }   it should look like this  +-------------------------------+ |            header             | +-------------------------------+ |                               | |                               | |            content            | |                               | |                               | +-------------------------------+


Is a higher core count or higher clock speed more beneficial to a computer's performance?

With lowering silicon costs and rising consumer needs, manufacturers seem to be pushing one of two things: clock speed and/or core count.  With the way things are going, it doesn't seem that clock speed of processors is rising anymore, but the number of processor cores.  I remember only a few years back, I had a nice fast single-core Pentium 4 processor.  Fast-forward to today, and I don't think you can even purchase a single-core processor (not to mention the rising increase in multicore processors even in cellphones).  The way things are going, we might find computers with hundreds of cores in a few years (and I know many operating systems already have support for it).  Is it more beneficial to a system's overall performance to increase the clock speed, or increase the number of cores?  Assume we're getting into hundreds of cores all running together, or clock speeds ten times higher what we have today (regardless of whether or not that is physically possible).  What are some examples of common processes (e.g. encryption, file compression, image/video editing) that will most benefit from one or another?  Are there some processes which can be, but currently aren't (due to technical reasons) sped up by increasing their parallelism?    Assume the hypothetical processor has the exact same core design (word size, address bit width, memory bus size, cache, etc...), so the only variables here are clock speed and core count.  And again, I'm not talking about one, two, or even four cores - imagine tens to hundreds.


I am doing Oksendal's book exercises one by one. I got stuck in 3.2.  I need to prove, from the definition that   $$\int_{0}^{t}B_s^2\text{d}B_s=\frac{B_s^3}{3}-\int_{0}^{t}B_s\text{d}s,$$  where $B_s$ is Brownian motion and the integral is Ito's.  Denote $B_{t_i}$ by $B_i$, for a partition $\{t_i\}_{i=2}^n$.   $$B_t^3=\sum_{0}^{n-1}\left(B_{i+1}^3-B_{i}^3\right)=\sum_{0}^{n-1}\left(B_{i+1}^2+B_{i+1}B_i+B_i^2\right)\left(B_{i+1}-B_i\right)$$  From the third terms we get $\int_{0}^{t}B_s^2\text{d}B_s$. I could add and subtract $B_i$ to the $B_{i+1}$ to make appear sums like $\sum(B_{i+1}-B_i)^2$, which tend to the quadratic covariation ($=t$), but there remain still some sums, like $\sum (B_{i+1}-B_i)^3$ that I don't know how to handle.   Nevermind! I got the idea. I will keep the post so you can enjoy. I just looked again to the integral in the right-hand side and the $(t_{i+1}-t_i)$ that appear in the sums. Replaced them conveniently.


Diameter of the image of holomorphic $f:\mathbb{D} \to \mathbb{C}$

Suppose $f:\mathbb{D}\to \mathbb{C}$ is holomorphic and the diameter d:= $sup_{z,w\in \mathbb {D}} \vert{f(z)-f(w)}\vert $ of the image of $f$. We know that 2$\vert f'(0) \vert = d $ if and only if $f$ is linear.   If $f(z)=z+\textbf{a}z^2$ for some nonzero $\textbf{a}\in \mathbb{C}$, then $f$ is not linear. We know that $f'(0)=1$. Then, the diameter of $f$ >2 because 2$\vert f'(0) \vert \leq d$ always satisfy. However, if $\vert \textbf{a} \vert$ be very small, I couldn't  find the points $z,w \in \mathbb{\bar{D}}$ satisfying d(the diameter of $f$) > 2.  Any help is appreciated..!  Thank you.


Why are the holes in my polygons not generalized?

I have one polygon layer with many holes. I would like to generalize it. I used v.generalize of grass. With it, I used chaiken algorithm. But, only the borders of polygons were generalized, the holes in them haven't smoothed their edges.  What can I do to smooth all edges (adding hole edges) of polygon?


Typing Complete Graphs with edge and vertex label

I'm new here. I think this is the right place to ask this question.  Basically I would like to type a simple looking complete graph like this:    What I want is to place vertex and edge labels on top of the edges and vertices.   How would I go on doing that? What packages am I supposed to use and what commands should I type?    Sorry I should have included this picture to show what I have in mind. Thank you!


My scale bar in transform is in orange color

My scale transform is in orange color bar.If i apply the scale and save the project also,when i reopen it the scale is not applied and the orange color continues in the scale bar.I couldnt figure it out what mistake i have done here.So please help me to come out from this issue.


Enable/ Disable elements under 'edit' depending on role

I want some users to have access to certain items under the 'edit' tab but hide others...  I know you can allow a role to 'edit' or not 'edit' a published node content type but that enables and disables the whole of the edit tab!


How are the digits after ~ assigned in windows short file names?

Windows still uses ~ for shortening files and directories with long names. You can see the "short" name by typing dir /X in the command prompt.  My question is how are the digits assigned to the short file names? It doesn't seem to be alphabetical nor does it seem to work by file creation time.  For example:  I create a new text file: C:\reallylongfilenameB.txt  Then I run dir /X and see the short name of fileB is REALLY~1.TXT  I create a second text file: C:\reallylongfilenameA.txt  Then I run dir /X and see the short name of fileA is REALLY~2.TXT  Then I set the clock back a day, delete C:\reallylongfilenameA.txt and then re-create it, essentially making the create date of C:\reallylongfilenameA.txt 1 day before C:\reallylongfilenameB.txt.  I run dir /X and C:\reallylongfilenameA.txt short name is still REALLY~2.TXT.  Given this example, is there any way to make the short name of C:\reallylongfilenameA.txt be REALLY~1.TXT?


How to make your apache application accessible within network

I have a Windows XP machine where I have installed WAMP and made a PHP based web application. I can access the web application from within this machine by using the browser and pointing to: http://localhost/myApp/ --- and the page loads fine.  Now I want this site (http://localhost/myApp) to be accessible to all machines within the network (and may be later, to the general public as well). I am quite new to this, how do I make my site accessible to all machines within the network and to the general public in the internet?  I tried modifying the httpd.conf file in Apache (WAMP) by changing  Listen 80 to Listen 10.10.10.10:80 (where I replaced 10.10.10.10 with the actual IP of this windows xp machine). I also tried "Put Online" feature in WAMP. None seem to work though.  How do I make it accessible?


Microphone doesnt work after window 10 update

Now I am not 100% sure if this is caused by latest windows 10 update (April 2018) but it might be connected. It worked fine before.  I did search on internet but my problem looks to be different. In sound recording setting, microphone is enabled but bars doesn't go green. Interestingly, when in properties enable Listen to device, microphone work and I see green bar. So microphone works and I can hear my voice. But when I disable listening again its gone, no green bars anymore.  Problem is, none of team voice application detect any sound. Even if i keep enable listen to this device enabled, apps doesn't see any activity and friends cant hear me.  I also tried to disabled all sound effects and also disable exclusive control but none of them worked. Also reinstalled drivers (realtek installer), no difference.  Audio chip: Realtek ALC892 Drivers : Version 6.01.7848 2016/08/04 (latest from asus webpage)


can't call function on element after creating it with javascript

I 'm using coreUi static template.  So I'm manipulating a form.   I'm stuck at this form row that should contain websites, originally it contains 1row: input text, input URl, and a closeIcon.  There's also a add web button, so when I click it, another row in created. I successfullty implemented this feature with JS.  Now, when I press the closeIcon, I want the corresponding row to be deleted.  The problem is when I click the original's row close Button, the method is called, but when I press the other rows' close Buttons, that have been created with js, the function is not being called.     $(document).ready(function(){     $("#add_web_links").click(function(){                 add_web_links();          });     $('.close').click(function(){     close_row();     });  });   function add_web_links() {  var text="
Text
<input class='form-control' type='text'>
 URL
<input class='form-control' type='url'>

 <button type='button' class='close' aria-label='Close'>   &times;</button>

";    $('.web').last().after(text);   }  function close_row() { alert("closed"); }
Web Links

    Text
     <input class="form-control" type="text">
     URL
     <input class="form-control" type="url">

 <button type="button" class="close" aria-label="Close">   &times; </button>

      <button id="add_web_links" type="button" class="btn btn-link px-0">add web links</button>

     Then I inspect the created close icons, they all have the class="close".


What is the maximum value of the Process ID?  Also, is it possible to change a Process ID?


Modular arithmetic: finding "c" when it is an exponent

I am fairly new to number systems and notations. I have a problem where I need to find $c$ when it is an exponent: $a ≡ b^{c} \mod 43$ given that $0 \leq c < 43$ and, $a ≡ 27 \mod 43$ and $b ≡ 19 \mod 43$. ($a$ and $b$ are integers). I know that the procedure is to solve the right-hand side, by replacing the values: $ 27 ≡ 19^{c} \mod(43) $ But then, $c$ is on the right-hand side. Any approach arithmetic approach to take in this case? is it allowed to do:  $27^{-c} ≡ 19 \mod 43$ ???


Allow given application to run as administrator, without prompting user for credentials

At my workplace, Windows 7 machines are being rolled out, and users are not being granted administrative privileges.  My department creates applications that run locally on the user's machine, and those are working normally (as far as we've seen).  One application, on the other hand, does not.  It's the application that updates the others (our 'Update Agent').  So, when the user runs the Update Agent, they're immediately stopped with an error, since that application was not able to write to C:\Program Files\our app\  We need a way for these Windows 7 machines to allow this application to be run as administrator or with admin rights when the user executes them.  Since these users will never be given the administrator password, 'Run As Administrator' is not an option.  The user will need to click on shortcut, and it run with enough permissions to modify that folder, write to the registry, etc.  What I'm hoping for is some kind of GPO or policy or something that can be configured on the domain level that will allow this to occur; or, something configured on the client machines once.  Our applications are .net Framework 1.1 and 2.0, and signed with a key.    Any insight would be appreciated.


I added   deb-src http://security.ubuntu.com/ubuntu bionic-security main   into my sources.list, did apt update  Here's what I'm getting:  vm@vm-Standard-PC-i440FX-PIIX-1996:~$ apt-get source linux-image-4.15.0-23-generic  Reading package lists... Done Picking 'linux-signed' as source package instead of 'linux-image-4.15.0-23-generic' Need to get 17,8 kB of source archives. Get:1 http://security.ubuntu.com/ubuntu bionic-security/main linux-signed 4.15.0-23.25 (dsc) [2.050 B] Get:2 http://security.ubuntu.com/ubuntu bionic-security/main linux-signed 4.15.0-23.25 (tar) [15,8 kB] Fetched 17,8 kB in 1s (11,9 kB/s)        dpkg-source: info: extracting linux-signed in linux-signed-4.15.0 dpkg-source: info: unpacking linux-signed_4.15.0-23.25.tar.xz   it keeps downloading linux-signed  UPDATE:  If I do   apt-get source linux   it works but then I still need to do  sudo apt-get build-dep linux-image-$(uname -r)   in order to install the dependencies. However, it will install the dependencies of linux-signed. If I try sudo apt-get build-dep linux it installs a lot of things that are not necessary to build a kernel


different content, same url, bad for SEO?

I want to translate the page based on the accept-language headers, do I need to redirect to /$lang or having different content(actually same content but translated) in the same url is ok?


\textcite macro produces "Author (year)" correctly but colours first paren with hyperref

I am using a custom \textcite macro that I found somewhere. It works nicely except that it makes the opening paren of "Author (year)" part of the link (also colouring it blue) which is not desired.  This is likely just a minor change to the definition of the macro, but the solution eludes me (I don't get where the opening paren is added at all).    Opening paranthesis should not be part of link and should not be coloured.  (M)WE:  \documentclass{scrartcl}  \usepackage{csquotes}  \usepackage[backend=biber,             bibencoding=utf8,             hyperref=true,             natbib=true,             minnames=1,     %% prevent truncation to year-only             backref=true, %% TODO REMOVE before final             bibstyle=apa,             citestyle=authoryear,             ]{biblatex} \DeclareLanguageMapping{english}{english-apa} \addbibresource{bib.bib}   \DeclareCiteCommand{\textcite}   {\boolfalse{cbx:parens}}   {\usebibmacro{citeindex}%    \printtext[bibhyperref]{\usebibmacro{textcite}}}   {\ifbool{cbx:parens}      {\bibcloseparen\global\boolfalse{cbx:parens}}      {}%    \multicitedelim}   {\usebibmacro{textcite:postnote}}   \usepackage[table,svgnames]{xcolor}  \definecolor{solblue}{HTML}{268BD2}  \usepackage[pdftex]{hyperref}  \hypersetup{    pdfhighlight = /P,    colorlinks=true,    urlcolor=solblue,    filecolor=solblue,    linkcolor=solblue,    citecolor=solblue,    raiselinks=true,    breaklinks,    unicode }   \begin{document}  foobar \textcite{thesis_pockrandt} foobar  \end{document}   bib.bib:  @phdthesis{thesis_pockrandt,     author = {Christopher Maximilian Pockrandt},     title = {{Approximate String Matching: Improving Data Structures and Algorithms}},     year = {2019} }


Click event doesn't work on dynamically generated elements

     <button>generate new element</button>     I was trying to generate a new tag with class name test in the
 by clicking the button. I also defined a click event associated with test. But the event doesn't work.  Can anyone help?


how to declare a static variable inside an inline function?

Can any one please let me know whether we can declare static variables inside an inline function and if we can how it is going to work between function calls.


Turn vacuum on when another load (eg. drill/saw/etc.) is active

I need to turn ON (and OFF if possible) a vacuum when another DIY tool, like a drill, is activated/deactivated.   The idea is: "I start working and the vacuum start sucking dust automatically. Then it stop when I stop working".  The tech spec. are (both for tools and vacuum):   Voltage: 230V  Current (max): 16A   NOTE: I don't want another manual switch to turn on both. I want an automatic system which detect when the load (the tool in this case) is turned ON and turn on a "slave" switch (like via relay) to power on the vacuum.


Vertical component of moving weight at a 45 degree angle

Here's an easier one. I use the leg press machine at the gym so I don't have to worrying about hurting myself while lifting heavier weight.  The weight glides on a track that looks to be 45 degrees.  What's the equation to figure out how much weight I would be able to squat normally.  IE the vertical component of moving 400lbs at a 45 degree angle.


Integrating $ \int_2^4 \frac{ \sqrt{\ln(9-x)} }{ \sqrt{\ln(9-x)}+\sqrt{\ln(x+3)} } dx. $

Compute  $$ \int_2^4 \frac{ \sqrt{\ln(9-x)}      }{ \sqrt{\ln(9-x)}+\sqrt{\ln(x+3)}        } dx. $$ I am not sure how to start this one...I am thinking of a substitution to get started.


Is there an official rule that the minimum damage can't be negative?

A slightly humorous thought occurred to me (a recovering rules lawyer) after reading .     "None of the answers actually specify that 0 is the minimum damage."   Logically it wouldn't make sense for an attack to apply negative damage or healing, except in specific cases like hitting a flame elemental with a fire attack. Ruling that you could do negative damage would lead to an exploit to avoid costs of healing. As such I highly doubt any DM would make such a ruling. I definitely wouldn't except for the most absurd and humorous of games were failure is the expected result not success.  Another possibility (as suggested by Secespitus) is that negative damage would reflect back on the attacker. This could be seen as punching a strongman so hard (or in just the wrong way) as to injure your own hand.  This would also play well in a failure is the only option game, and if there is a rule suggesting that it would be an appropriate answer to this question as well.  Take the case of a person with less than 8 Strength, no levels in monk, and does not have a tavern brawler.  Would they do -1(1 - 2) damage on unarmed strikes? If so what would the result of the negative damage be?   "Healing" the target because such a puny hit actually raises their fighting spirits and makes them more capable of fighting Reflective Damage, the attacker actually takes 1 point of damage, representing injury to his hand or other damage   I am curious to know if there is an official rule stating that the minimum damage an attack can do is 0 or is there something in the damage calculation that I am missing that would otherwise prevent negative damage?


If I have a record type with picklist fields inside, how can I extract the enabled and non-enabled values from them through a soql query?


How can I convert my custom give command to a Minecraft villager trade command?

I just made a command for an invisibility potion that lasts 25 seconds. (3 min is way to long for the mini-game I am making.) Here is the code:  /give @p minecraft:potion{CustomPotionEffects:[{Id:14,Duration:500,ShowParticles:0b}],CustomPotionColor:16576248,display:{Name:"\"Potion of Invisibility\""}}   I just don't know how to turn it into put it into this villager trade command:  {buy:{id:emerald,Count:2},sell:{id:potion,Count:1,tag:{Potion:"minecraft:invisibility"}}}]}}\   It would be in place of the sell portion.


how to remove the double quotes in a csv


How does polymorphism work with member variables in C++?

I am learning about polymorphism in C++ and am learning about the virtual function specifier. Since the virtual specifier forces the program to use the child class's functions, why does it not force the function to use the child class's member variables? Is there a way to do this in C++?  I have tried running the following code with the following classes:  class Student { public:     virtual int returnGPA()     {         return gpa;     } private:     int gpa = 3; };  class HonorStudent : public Student { public:     virtual int returnGPA() override     {         return gpa;     }  private:     int gpa = 4;  };  int main() {      Student s = Student();     Student h = HonorStudent();     std::cout << s.returnGPA() << std::endl;     std::cout << h.returnGPA() << std::endl;     return 0;  }   I expected the output of the function to be  3 4   but the function outputs  3 3   When I change the declaration of h to be   HonorStudent h = HonorStudent();   the programs outputs what I initially expected. Any insight would be greatly appreciated.


A counterexample of a differentiable function on an interval whose derivative is discontinuous

Let $f(x)$ be a real-valued differentiable function on an interval $I$ of $\mathbb R$, then is $f'(x)$ necessary to be continuous? I don't think so and I'm trying to construct a counterexample. $\sin\frac{1}{x}$ may be the key element but $x\sin\frac{1}{x}$ failed me.


Can people in western countries do graduation and post graduation in two completely different fields?

It might be possible here in India too, I haven't researched on it, but in one movie I have seen the guy is studying mathematics in MIT but his future plan was to study medicine at Harvard. I kept wondering how could he do that.  Here at India at 11th class we have to usually choose either Mathematics or Biology and then our eligibility changes accordingly.


Eeeek! The LHC has imploded the universe!

If I use a mod-binding vote (from the context of the queue) on a post in the flag queue that has 1 close vote, I get this error:    Eeeeek!


Example of a domain in R^3, with trivial first homology but nontrivial fundamental group

Let $\Omega \subset \mathbb{R}^3$ be a domain. Is it true that if $H_1(\Omega)$ = 0, then $\pi_1(\Omega) = 0$? For a counterexample, the group $\pi_1(\Omega)$ needs to be a perfect group and so I was trying with the smallest one i.e. $A_5$. But I don't think the standard construction of the space from CW complexes, embeds into $\mathbb{R}^3$.


I just updated the Pokémon Go app and it asked me to log in. But there is no option for Google. The only option I get is trainer login aghh, please help!


Can anyone help elaborate on this paragraph in Python tutorial?

I'm new to Python. Recently I'm reading  and I've got a question regarding "import *". Here's what the tutorial says:      If __all__ is not defined, the statement from sound.effects import * does not import all submodules from the package sound.effects into the current namespace; it only ensures that the package sound.effects has been imported (possibly running any initialization code in __init__.py) and then imports whatever names are defined in the package. This includes any names defined (and submodules explicitly loaded) by __init__.py.   From my understanding, shouldn't from sound.effects import * mean "import all under sound.effects"? What does "it only ensures that the package sound.effects" has been imported" mean? Can someone give an explanation for this paragraph as I'm really confused now? Thanks a lot.


In the article about  thre is a following code snippet template <typename T> typename remove_reference<T>::type&& move(T&& arg) {   return static_cast<typename remove_reference<T>::type&&>(arg); }  Can please somebody explain the usage of typename (except  , it's clear)?


Why is stationarity of an autoregressive process contigent upon location of the roots of the backshift polynomial?

Recall that an $AR(p)$-process (with mean $0$) is defined by the following recurrence relation $$ X_t = \phi_1X_{t-1} + \cdots + \phi_pX_{t-p} + Z_t $$ where $Z_t$ is i.i.d. white noise. If we use the backshift operator $$ B(X_t) = X_{t-1} $$ then we can rewrite this recurrence relation as a polynomial in the operator $B$ $$ \phi(B)X_t = Z_t $$ I keep running into the technical claim that the process is stationary if the roots of $\phi(B)$ (when considered as a complex valued polynomial) lie outside of the complex unit circle $e^{i\theta}$. Why is this true?


Before explaining my issue, I wanted to first explain what things do make sense to me. So, statements (used at the beginning of proofs) like "Suppose $x$ is an integer" or "Assume $x$ is an integer" make sense to me. The way I read them is like: "Let's just pretend that the symbol $x$ happens to represent an integer". Statement (also used in proofs) like "Let $x$ be 3" or "Let $x$ equal 3" also make sense to me. The way I read them is like: "Let's just temporarily name 3 with the symbol $x$. My issue comes with statements like "Let $x$ be an integer" or "Let $x$ $\in$ $\mathbb{Z}$". I really do not know how I should intuitively interpret such a statement. I can't interpret it in the same way as like "Let $x$ be 3" because there is not a specific object being assigned like 3. Should I interpret it like how I interpret "Suppose $x$ is an integer"?  EDIT: So, from what I gathered from the responses, I think I understand now how I should think of "Let $x$ be an integer". I could think of it as "Assume a newly created symbol x happens to represent an integer". However, this can cause issues as then "Let $x$ be an element of the empty set" is also completely valid. Instead, I should not think of "Let $x$ be an integer" as an assumption, but an assignment/declaration, just like "Let $x$ be 3". One tangible way to think about this is to imagine myself assigning the newly created symbol $x$ to an integer chosen in secret by a friend. With this mindset, $x$ is not assumed to be an integer - it is an integer. It is just unknown to me what integer it is. I hope this made sense to anybody with similar questions. If anyone thinks I have made an incorrect finding, please feel free to correct me.


I'm attempting to lower a face with out causing a edge to be pulled down with it how can this be achieved...  I have tried extruding and moving the face downwards, but when I delete the faces that are left I'm still left with the edges present messing up the mesh...      I wish to avoid the second image


Does $AB$ and $BA$ have the same 'number' of each non-zero eigenvalue?

I know that $AB$ and $BA$ have the same non-zero eigenvalues, where $A$ and $B$ are rectangular matrices, but my question is: Is it necessary for $AB$ and $BA$ to have the same number of non-zero eigenvalues?  In other words, suppose $AB$ is a $8*8$ matrix and $BA$ a $6 * 6$ matrix. Then can $AB$ have eigenvalues of $0, 0, 0, 0, 0, 2, 3, 4$ when $BA$ has eigenvalues of $0, 0, 2, 2, 3, 4$?  Writer's edit.  Note that the question can be answered using the generalization of the Sylvester's Determinant Identity:  and the generalization process:  , meaning the answer to the original question, would be "True."


The difference between two and three equal signs in php.... or is it just I've coded it wrong?

Thanks to those who chimed in...But I modified my original program and now am even more perplexed:    Here's the new code:                   if ($_SESSION["cart_array"][$key]["Kit"]==true) {echo "
1 True
";}         if ($_SESSION["cart_array"][$key]["Kit"]=="true") {echo "
1b True
";}         if ($_SESSION["cart_array"][$key]["Kit"]==false){echo "2 True
";}         if ($_SESSION["cart_array"][$key]["Kit"]=="False"){echo "3 True
";}         if ($_SESSION["cart_array"][$key]["Kit"]==True){echo "4 True
";}         if ($_SESSION["cart_array"][$key]["Kit"]==False){echo "5 True
";}       ;}     ?>   For simplicity I created an array with just one line.  The Var_dump follows:          array(1) { [0]=> array(11) { ["groupId"]=> string(5) "25778" ["GroupName"]=> string(9) "'1canoe2'" ["StylePatternColor"]=> string(30) "A-7557-C " ["Price"]=> string(4) "5.25" ["StandardPutUp"]=> string(2) "15" ["Discount"]=> string(3) ".25" ["ListPrice"]=> string(3) "5.5" ["Quantity"]=> string(1) "1" ["PromiseDate"]=> string(10) "07/01/2014" ["DoNotShipBefore"]=> string(10) "07/01/2014" ["Kit"]=> string(5) "False" } }   See that Kit is "False".  Yet the results when I run the program are as follows: 1 True 3 True 4 True  How can this be?  1 is supposed to match if the value is true (boolean), three is supposed to match if the value is false (boolean) and four is supposed to match if True (boolean, I wanted to test for case sensitivity).  Anyway, "False" matched but False (boolean) did not.  And, note, these were all with ==, not ===.  How come?  Thanks again for your input.  I'm tearing my hair out.  I am having trouble understanding how to evaluate array variables in php.  <?php session_start();  print_r($_SESSION["cart_array"]); $NumberOfLineItems = count($_SESSION["cart_array"]); for ($key=0; $key<$NumberOfLineItems; $key++) {      if ($_SESSION["cart_array"][$key]["Kit"]==true) {echo "
1
";}     if ($_SESSION["cart_array"][$key]["Kit"]==false){echo "2
";}     if ($_SESSION["cart_array"][$key]["Kit"]===true){echo "3
";}     if ($_SESSION["cart_array"][$key]["Kit"]===false){echo "4
";} ;} ?>      session_start(); Print_r($_SESSION["cart_array"]);    I get: Array ( [0] => Array ( [groupId] => 255... [Kit] => True ) )  1  In short, the double equals does find the match, but the triple does not?  I would have thought it would have been exactly the opposite.  From what I've read here it seems like the more specific should have the least ambiguity.  Why does the exact equality fail but the double= find a match?  I've read about the differences, but I am obviously missing something basic.  Thanks in advance.  The last bit, Kit, has had me up all night.


Apparent Excel calculation error inside IF statement

I hope some of you can help me understand what's going on here, cause i'm puzzled.  I have two cells BH284 and BH287 in an Windows Excel sheet.  When I look at the two cells the values are identical down to last digit (20+ digits)  = BH284 ;output=46.25165516264020000  = BH287 ;output=46.25165516264020000  When I subtract them, I get zero:  = BH284-BH287 ;output=0  My problem is that I have this IF-statement in a cell which outputs a different value when subtracting the two cells:  = IF((BH284-BH287)<0,0,(BH284-BH287)) ;output=7.105427357601E-15  Is there something I'm missing? Is it related to numerical precision somehow? Thanks in advance.  Excel version 14.0.7214.5000 (32-bit) running on Windows 7 Enterprise, service pack 1.


Why is Git not found after installing OS X Lion?

I just upgraded to OS X Lion and now cannot initialize Git where it used to work fine:  $ git add .  -bash: git: command not found   I'm new to Git and to programming, so I'm sure it's a quick fix, any help is greatly appreciated.  Thanks guys!