Let $Y_1$ and $Y_2$ be independent random variables with   $Y_1\sim N(1,3)$ and $Y_2 \sim N(2,5).$      If $W_1=Y_1+2Y_2$ and $W_2=4Y_1-Y_2$   what is the joint distribution of $W_1$ and $W_2$?   Is my procedure correct?  $E(W_1)=E(Y_1+2Y_2)=E(Y_1)+2E(Y_2)=1+2\cdot2=5$  $Var(W_1)=Var(Y_1+2Y_2)=Var(Y_1)+4 Var(Y_2)=3+4\cdot 5=23$  $f_{W_1}(w_1)=\frac{1}{\sqrt{2\pi}23}\epsilon^{\frac{-1}{2}(\frac{x-5}{23})^2}$  I can't conclude.


Teens stranded in eco-system within alien ship, fighting for survival

Looking for the name of a book series I read in middle school, 2001-2004 roughly.  All I can remember about it was that there were a handful of teenagers who somehow ended up on an alien planet that they eventually found out to be a ship. They have to fight for survival against multiple different enemies, I think one of the kids could communicate with part of the ship telepathically. Some of the aliens were either blue or I think even transparent. There really isn't too much to work off of, but I figured someone might know what it is.


Is there a way to filter blocks by vocabulary instead of NID or CT?

Each time I filter block visibility (that is: When the block will appear in it's region), I can do so only via Node ID or Content-Type...  You might have a ready-2-go way to do so with a vocabulary term ? Here is a pseudocode of my meaning:  if (isset >=1 vocabulary->term) {isset block}   Sorry if it's a bit wired, I am just starting to learn PHP and my meaning is "if at least one term of a given vocabulary is in the node, show the block in whatever region".


Show that if $p(x)$ is reducible in $F[x]$, then $F[x]/(p(x))$ is not an integral domain.

So I know that for it to be an integral domain it has to have the following properties:    Commutative Has multiplicative identity No Zero-Divisors    and if $p(x)$ is reducible it can be written as $p(x) = (x-a)q(x)$ but I can't seem to link it together to prove that it violates one of the three properties.


Why is ATP the main nucleoside triphosphate used to exchange energy?

Out of all of the nucleoside triphosphates what makes ATP the most used? Is it its structure? The amount of energy it contains? Why is GTP not used as much? What is the deal with the other nucleoside triphosphates (dATP, dGTP, dTTP, dCTP, UTP, CTP)? Are there any artificial NTPs that can substitute for ATP? (like something that could cure Cyanide poisoning or a disease/illness that somehow de-functionalizes the Electron Transport Chain)


If Durmstrang and Beauxbatons were hidden from common knowledge, how did people from other schools go to them for the Triwizard tournament?

So in GoF, they state that Beauxbatons and Durmstrang are hidden from view and don't have their locations public.     “Durmstrang’s another wizarding school?” said Harry      “Yes,” said Hermione sniffily, “and it’s got a horrible reputation.      According to An Appraisal of Magical Education in Europe, it puts a   lot of emphasis on the Dark Arts.”      “I think I’ve heard of it,” said Ron vaguely. “Where is it? What   country?”      “Well, nobody knows, do they?” said Hermione, raising her   eyebrows.      “Er — why not?” said Harry.      “There’s traditionally been a lot of rivalry between all the magic   schools. Durmstrang and Beauxbatons like to conceal their whereabouts   so nobody can steal their secrets,” said Hermione matter-offactly.   So how do students get to the other school for the Triwizard tournament?


How can I keep my zoom at the same setting for all pages in a PDF in Adobe Reader?

I am trying to read a book in Adobe Reader, and the zoom setting defaults to 61.3%. I then set it to 100%, but as soon as I click on another bookmark, it gets reset back to 61.3%. How can I make it stay on 100%?  I have looked around but can find no setting that seems to do this.  UPDATE: I found the latest version of Foxit Reader has a special provision for this that is nowhere to be found in Adobe Reader, and thus conclude that this is not possible in Adobe. Despite the infinite deluge of frequent updates.  Under the Default zoom setting, Foxit has the following checkbox (emphasis mine):     Forbid the change of the current Zoom factor during execution of 'Go   to Destination' actions (these actions can be launched from   bookmarks)


Is it acceptable to write a reference letter for yourself?

If a student needs a reference letter for graduate admissions or that sort of thing, some profs will ask the student to write a reference letter for themself before sending it off to the prof for minor edits and finalization. This seems to be a somewhat common practice given that some graduate schools ask for several letters of recommendation even when it is not reasonable for the student to have developed deep connections with that many professors, and that most professors are just too busy to write quality letters for all the students that ask them to.  Is it acceptable to write most of the reference letter and have the prof make minor edits? Do academic institutions frown upon this practice? Would it be considered an academic offense if a student wrote a reference letter for themselves and had a prof sign it?


I have two passports with two different names, I want to travel to a third country. how should I book my tickets?

I have a US passport and a Ukrainian passport. I want to travel to Iran and with my Ukrainian passport I can easily get a visa at arrival. That's not the case with my US passport. However, my last name in my US passport is different from my Ukrainian passport (due to marriage). I want to know how to book my ticket and in what way(s) should I use my passports upon exit and entry. Thank you


When I try to use Firefox to create an account on Stack Overflow, it told me that  "Stack Overflow requires cookies for authentication -- are your browser cookies enabled for this domain?"  It works when I use IE, but I don't want to use IE.  My Question: How do I fix this?


Null Pointer Exception in getting Phone number from firebasedatabase through model class

I am trying to login with phone number and password but to get the phone number from firebase database through model class is giving a null pointer exception. Please Help  I have already tried to get all the other String variables which works properly except the phone number.  Model Class  public class Users {      private String Name;     private String Address;     private String Phone;     private String Email;     private String Password;      public Users() {     }      public Users(String name, String address, String phone, String email, String password) {         this.Name = name;         this.Address = address;         this.Phone = phone;         this.Email = email;         this.Password = password;     }      public String getName() {         return Name;     }      public void setName(String name) {         this.Name = name;     }      public String getAddress() { return Address;  }      public void setAddress(String address) {         this.Address = address;     }      public String getPhone() {         return Phone;     }      public void setPhone(String phone) {         this.Phone = phone;     }      public String getEmail() {         return Email;     }      public void setEmail(String email) {         this.Email = email;     }      public String getPassword() {         return Password;     }      public void setPassword(String password) {         this.Password = password;     }  }   Login_Actvity  private void allowAccesstoAccount ( final String phonestring, final String passwordstring){      final DatabaseReference database = FirebaseDatabase.getInstance().getReference();     database.addListenerForSingleValueEvent(new ValueEventListener() {         @Override         public void onDataChange(@NonNull DataSnapshot dataSnapshot) {             if ((dataSnapshot.child(parentName).child(phonestring).exists())) {                      Users usersData = dataSnapshot.child(parentName).child(phonestring).getValue(Users.class);                      //`userData.getPhone()` gives warning                     //while  `userData.getPassword()` works properly                       if(usersData.getPhone().equals(phonestring)){                     if(usersData.getPassword().equals(passwordstring)){                         Toast.makeText(Login_Activity.this, "Login Successful ", Toast.LENGTH_SHORT).show();                         loadingBar.dismiss();                          Intent intent = new Intent(getApplicationContext(),Home_Activity.class);                         startActivity(intent);                     }                 }                 else {                     Toast.makeText(Login_Activity.this, "Login Failed ", Toast.LENGTH_SHORT).show();                     loadingBar.dismiss();                 }             }             else {                 Toast.makeText(Login_Activity.this, "Account with this " + phonestring + " phone number does not exist", Toast.LENGTH_SHORT).show();                 loadingBar.dismiss();                 Toast.makeText(Login_Activity.this, "Try the correct one", Toast.LENGTH_SHORT).show();             }         }         @Override         public void onCancelled(@NonNull DatabaseError databaseError) {         }     });   java.lang. NullPointerException is the exception


allow html but protect from mysqli injection

i am trying to do this for past days , i tried many functions such as      strip_tags , mysqli_real_escape_string , ..etc   // Prevent MySQL Injection Attacks function cleanQuery($connector,$string){     if(get_magic_quotes_gpc())  // prevents duplicate backslashes         $string = stripslashes($string);     return mysqli_escape_string($connector,$string); }   but none gave me the result i want .  what i want is to enter an article text , allow html editing but prevent from mysqli injection ... can anyone helpout ?  as an example : i have this :  $data     = $_POST['data'];   echo "<form method='POST' action='index.php?do=check'> <textarea rows='10' name='data' cols='50'>$data</textarea> <input type='submit' value='send' name='B1'> </form>   ";    mysqli_query($conn,"insert into table(field)values('$data')");    value of data is :
test

         &nbsp;what's your name ?	         &nbsp;my name is `Jhone`	         &nbsp;

         &nbsp;	         &nbsp;	         &nbsp;

   an html input   so how can i insert that into database with no issues ?


Windows 10 This is what happens when the software first. What should I do


Should I be worried about low undergraduate grades during the COVID-19 crisis affecting grad school admission chances?

I'm currently in my undergraduate junior year studying Mechanical Engineering at the University of Waterloo in Canada. I'm hoping to apply for Top 10 US grad schools in mechanical engineering in about 18 months. In response to the worldwide COVID-19 health crisis, our institution has (as have most academic institutions) switched to online teaching and made many changes to the structure of our courses to accommodate the situation.  As part of these changes, the university has offered students the option to selectively change the grade reporting on their transcripts to CR/NCR (Credit/No Credit) at the end of this semester. Normally, my grades would be pretty good (hovering around ~3.9 GPA) and I wouldn't bother to report my grades as a CR instead of as a percentage, but this crisis has completely disoriented me and made it difficult to focus on my studies.  Furthermore, the university has allowed instructors to retroactively adjust the course breakdown/weighting away from the original syllabus--this means that tests/projects that were originally worth 15% of the grade might have been increased to upwards of 40% weighting. This has had a negative impact on my course grades as well, as I was hoping to make up for poor showings on some of these lower-weight deliverables with strong final exam performances. Instead, these final exams are going to be worth much less now.  In the aftermath of these changes, I'm contemplating using the CR/NCR option on some of my course grades, particular with any grade that ends up lower than my current GPA. However, I'm worried about how this will be interpreted in my grad school admissions in a couple years. In normal circumstances, I think changing a percentage grade into a CR/Pass grade would be a red flag that a student's performance in the class was less-than-stellar.  Given the COVID-19 crisis and its effects on academia as a whole, are admissions committees two years down the road likely to be understanding if I decide to take advantage of the CR option now? Should I make use of it and explain that this was "the coronavirus semester" in my application package, or am I dooming myself by converting my grades from percentage into CRs?


How to update 8.0.x to 8.1.x with composer?

This is excerpt from my composer.json file (trimmed for readability). It was created by running composer create-project drupal/drupal my_site_name 8.0.* as described on :  {   "name": "drupal/drupal",   "type": "project",   "require": {     "composer/installers": "^1.0.21",     "wikimedia/composer-merge-plugin": "^1.3.0"   },   "replace": {     "drupal/core": "~8.0"   },   "minimum-stability": "dev",   "prefer-stable": true,   "extra": {     "merge-plugin": {       "include": [         "core/composer.json"       ],       "recurse": false,       "replace": false,       "merge-extra": false     }   } }    If I just do composer update - core is not updated, only packages inside vendor dir. If in addition to the above, I update my composer.json file and replace core version with ~8.1 - still core not affected.   The only thing that worked for me was to:   Remove core dir, vendor and composer.lock. Edit composer.json and:   Remove replace section. Add "drupal/core": "~8.1" to require section.  Run composer install.   That worked however every installed package complained that:     Class Drupal\Core\Composer\Composer is not autoloadable, can not call post-package-install script   So I'm not sure if the whole process completed flawlessly. Also removing core directory seems like a desperate move.  What is the recommended procedure of updating core to the next minor version with composer (for example 8.0 => 8.1)? Note that I am not using  as suggested in .  Update 1  After trying to use composer require --update-with-dependencies "drupal/core:8.1.*" I got no results:  $ composer create-project drupal/drupal my_site_name 8.0.* Installing drupal/drupal (8.0.6)   - Installing drupal/drupal (8.0.6)     Cloning c5afca05cde0c94ef4d7aff5b078be27024670d2  Created project in my_site_name Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Nothing to install or update Generating autoload files > Drupal\Core\Composer\Composer::preAutoloadDump > Drupal\Core\Composer\Composer::ensureHtaccess Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]? Y $ cd my_site_name/ $ composer require --update-with-dependencies "drupal/core:8.1.*" ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Writing lock file Generating autoload files > Drupal\Core\Composer\Composer::preAutoloadDump > Drupal\Core\Composer\Composer::ensureHtaccess   I'm using composer version 1.1-dev.


Is there an alternative lock-screen available?

I'm using lockscreen that came with Ubuntu Gnome. It's called GDM. can I replace it with LightDM or lockscreen that comes with KDE , LXDE or others?  what are the names of these packages? how to install them?    If that's too broad then    How can I just install LightDM without affecting my Ubuntu Gnome Installation? How can I uninstall it and get GDM  back if I don't like the experience?


Are there any other trains or platforms in King's Cross going to the wizard world?

Harry takes the Hogwarts Express to get to school all the six years when he's attending Hogwarts (with the exception of his second year, of course; but he was trying to get on it) and boards the train from platform 9¾.   Are there any wizarding trains other than the Hogwarts Express, and are there any platforms other than 9 ¾ that witches and wizards can take from King's Cross to their world?


I want to create a shape like a pipe, like below image and blend file.  I created the mesh below in Houdini, but I could deal with it only in simple case, and I couldn't improve it any more in Houdini. So I am trying blender.  .blend file:     What "non-uniform cross-section" means both 1. and 2.   scaling independently on each axis of cross section changing the cross section shape.   I tested the below but I have trouble in all of them.   I can't use "Curve Bevel Function" (, ) because this can use only one cross section. Even if I use Bevel Object, Alt+S, Proportional Editing and Taper Object, We can't use multiple different cross section shapes and We can't scale independently on each axis of cross section. I also tried vertex group + proportional editing () but failed. I tried addons  and . These may be solution, but I have trouble when pipe length is long like this case.   Could you tell me effective way to create a pipe which has non-uniform cross-section ?  I don't think my question is duplicate of  because my question emphasises the non-uniform cross section and mentioned that Curve Bevel function doesn't allow us to use non-uniform cross section.


I made this water material and I was wondering how to export this material to use in other projects. Haven't find a concrete answer to this for some reason.


Can I downgrade to Mavericks after installing Yosemite (beta/developer preview)?

I have installed the developer preview for Yosemite.  Huge mistake. Everything in my workspace is broken.  I don't have any sort of backup image. I was wondering if I could re-download Mavericks and run the installer - would that effectively downgrade me back to Mavericks?


Can one detect cosmic ray muons with a DSLR camera?

The flux of cosmic ray muons is about 1 muon per square centimeter per minute. I was trying to see if I can detect these using a glass of water, putting it in a totally dark room and take a picture of that with a camera mounted on a tripod. I used the highest ISO setting available and exposed for about half a minute, and I let the camera perform a dark frame subtraction. Muons moving through the water should produce photons, some of which will be detected by the camera sensor.  I then converted the raw files using the dcraw program to tiff files without doing any demosaicing (so each pixel corresponds to the actual gray value detected by a sensor photosite). But I'm now a bit bogged down in analyzing the raw files (a problem here is that the Sony ARW files are not real raw files, they have build in lossy compression which is not ideal for doing this sort of analysis).   So far I have not seen any interesting, if I look at gray values that are many standard deviations above the noise then I don't see any obvious (broken) straight line patterns. So, I'm wondering if one would actually expect any signal at all. It seems to me that you would because from close up you would detect some photons from the water, but perhaps I'm too optimistic.


I cant get samba to set proper permissions on created directories

I have a ubuntu server sharing some folders using samba. When a client creates a new folder or file, the permissions aren't set according to the settings in smb.conf.   My current settings for a specific share:  [share]     path = /mnt/share     browsable = yes     guest ok = no     writable = yes     read only = no     create mask = 0774     directory mask = 0774     write list = netuser   When a samba client (a windows 7 box) uses the 'netuser' account to create a file or directory, the permissions become  drwxr-sr-- 2 netuser sambashare      4096 2012-01-22 21:14 New folder -rwxrw-r-- 1 netuser sambashare         0 2012-01-22 21:07 New Text Document.txt   The parent directory has the set group id flag, thus the sambashare group owner. The idea is that both samba users and server users belong to the sambashare group, and thus are to be able to edit, delete, and create files and directories. However, since created folders doesn't have the write flag for group set, server users cant create new files or folders in those folders without sudo.  i have tested adding and removing the directory mask, force directory mode, directory security mode, and the force directory security mode, but the behaviors still remains. Newly created files and folders doesn't get intended 774 permission, but rather 764 and 754 respectively.   What am I missing? Why doesn't samba set the correct permissions?


request.getParameter("nickname") returns null for

I'm a beginner in web-development. I want to send the data to the servlet, but I got an NullPointerException .   For example the value of nickname = admin and I can see it. When I press the button to post to the servlet I can't pass data it seams that all data are null. I can't understand why. I have load the data from another (jsp + servlet) to this that I'm posting.  Jsp           <form name="admin_view_user" action="${pageContext.request.contextPath}/admin/users/user/activate" method="POST">

          <c:choose>             <c:when test="${active =='1'}">
Ok

             </c:when>                 <c:otherwise>
Post

                     <input class="commitbutton" type="submit" alt="buttonActivete" name="buttonActivete" id="buttonActivete" value="Activet" />

             </c:otherwise>         </c:choose>

                  Nickname	                                      <c:out value="${nickname}"/>

&nbsp;
 </form>
   Servlet  @WebServlet(name = "AdminActivate", urlPatterns = {"/admin/users/user/activate"})  public class AdminActivate extends HttpServlet {  /**  * Processes requests for both HTTP GET and POST  * methods.  *  * @param request servlet request  * @param response servlet response  * @throws ServletException if a servlet-specific error occurs  * @throws IOException if an I/O error occurs  */ protected void processRequest(HttpServletRequest request, HttpServletResponse response)         throws ServletException, IOException {      ServletContext servletContext = getServletContext();     try (PrintWriter out = response.getWriter()) {         ViewUserAdminActivet controller = new ViewUserAdminActivet();         Map<String, String[]> parameterMap = request.getParameterMap();         String nickname = parameterMap.get("nickname")[0];         System.out.println(nickname + "________________________________");        // controller.execute(servletContext, parameterMap, request, response);     }     }   In this line I got the exception Map<String, String[]> parameterMap = request.getParameterMap();


Show that $\det{(A + sxy^*)}$ is linear in $s$

Suppose that $A \in \mathbb{R}^{n\times n }$, and $x,y\in \mathbb{R}^n$.    Show that there exist numbers $a,b$ so that $\det{(A + sxy^*)}=a+bs$   Show that if $\det{(A)}\neq 0$ then $a = \det{(A)}$ and $b = \det{(A)} \cdot y^*A^{-1}x$.   Is it true that if $\det{(A)}=0$ then $a=0$?    My answer so far: The third question seems trivial and silly, and I don't understand why it's on there. I have solved the first one as follows: take $\beta$ to be any basis whose first element is $x$. Then with respect to basis $\beta$, $A+ sxy^*$ has the form   $$\left(  \begin{matrix} \alpha_{11} + sy_1 & \alpha_{12} + sy_2  & \dotsb & \alpha_{1n}+sy_n \\ \alpha_{21}&\dotsb&&\alpha_{2n} \\ \vdots & \ddots &&\vdots\\ \alpha_{n1} & \dotsb &&\alpha_{nn} \end{matrix} \right),$$  from which it's clear that the determinant is a polynomial in $s$ of degree $\leq 1$.    I am less clear on the second question.   For a limited case, note that if $A$ is diagonalizable and $x$ is an eigenvector of $A$ with eigenvalue $\lambda_x \neq 0$, then adding $sxy^*$ to $A$ has the effect of preserving all the eigenvectors, bumping up $\lambda_x$ to $\lambda_x + sy^*x$, and since the determinant is the product of all the eigenvalues, the product of $\lambda_1 \lambda_2  \dotsb (\lambda_x + sy^*x)\dotsb \lambda_n $ is   $$\det{(A)} + \det{(A)}\frac{sy^*x}{\lambda_x}=\det{(A)}\cdot sy^*(\frac{x}{\lambda_x}) = \det{(A)}\cdot s y^*(A^{-1}x).$$  Note that $y^*A^{-1}x$ is $\alpha_1 y_1 + \dotsb + \alpha_n y_n$, for $\alpha_i$ such that $x = \alpha_1 A_1 + \dotsb + \alpha_n A_n$, where $A_i$ are the columns of $A$.  But this is all I've got. Can someone give me a hint? I'm not looking for you to feed me the answer. Thanks as always


Getting the error "does not have a Release file."

I keep getting the error:      E: The repository ' bionic Release' does not   have a Release file.   when I try to install llvm. At the bottom of the source file (/etc/apt/sources.list), it is (what I think should be) the repository      ...   deb  llvm-toolchain-bionic-9 main   I'm not sure if it hasn't been sourced correctly or if it's missing anything. Any suggestion would be welcomed. Thanks.


set theory proof (cartesian products/symmetric differences)

I have to prove this theorem - Let $A$, $B$, and $C$ be sets. Then, $A \times (B \Delta C) = (A \times B) \Delta (A \times C)$.  I was wondering if this was the right way to start the proof?  Let $m$ be an arbitrary element of $A \times (B \Delta C)$. Then, $m=(x,y)$ s.t. $x \in A$ and $y \in (B \Delta C)$ by the definition of cartesian products. Then, $(m \in A) \land (y \in B) \land (y \not\in C)$ by the definition of set difference. So, $((x,y) \in A \times B) \land ((x,y) \not\in A \times C)$ by the definition of cartesian product. Thus, $(x,y) \in (A \times B) \Delta (A \times C)$.  So basically the LHS = RHS because (x,y) is an element of both sides?


I want to find out what commands installing a package makes available in my console.  For example: If I want to run the command quiz in bash, I have to install a set of packages by asking apt-get to install bsdgames.


Is cloaking your site for disqus comments good for SEO?

I use "disqus" as the commenting platform on my website. There is quite a bit of SEO relevance for the comment content but since its generated through JAVASCRIPT. I can't get the best of it. Can I use cloaking as a technique so that I can display the disqus comments in a div when the googlebot is fetching it and when use the regular JS from disqus for its better user experience when a user is ....


What’s the interaction between darkvision and the Eagle Aspect of the beast, if you have Darkvision past 100 feet?

Directly based off of the question, , what happens if your Darkvision extends past 100 feet?  This question is focused around fact that the Eagle totem features states "You can see up to 1 mile away with no difficulty, able to discern even fine details as though looking at something no more than 100 feet away from you."


If $\left|z+\frac{2}{z}\right |=2$, then prove that max value of $|z|$ is $\sqrt 3 + 1$ (Corrected version)

Then the expression will be  $$|z|+\frac{2}{|z|}\ge 2$$  Solving the quadratic inequality   $$|z|\ge1+i$$ and $$|z|\le1-i$$  I don’t know how to solve further. Please help  Thanks!   this is the corrected version of an identical question asked by me. I am sorry for the inconvenience caused


I have a form and I am using Drupal 7. I need to show this form in a popup when a user clicks a link. The user should then be able to complete the form whilst in the pop up window. I can use anything like  or modals or anything. I just wanted to know which is the better option and what options do I have for Drupal.


I met a problem when I want to remove a specific Node from a NodeList,  void removeNode(Node head, int value){     if (head == null) {         System.out.println("error : Null linkedList");     } else {         Node cur = null;         if (head.item == value) {             //The problem is here.             head = head.next;         } else {             cur = head;             while( cur.next != null && cur.next.item != value) {                 cur = cur.next;             }              if(cur.next != null && cur.next.item == value){                 cur.next = cur.next.next;             }         }     } }   as you know that the form of a Node is defined:  public class Node{       int item;       Node next;   }   and my test goes like this:   void test(){     Node node1 = new Node();     Node node2 = new Node();     Node node3 = new Node();     Node node4 = new Node();      node1.item = 1;     node2.item = 2;     node3.item = 3;     node4.item = 4;      node1.next = node2;     node2.next = node3;     node3.next = node4;     node4.next = null;  }   It went well when I do       removeNode(node1,2);     removeNode(node1,3);     removeNode(node1.4);   but I can't remove the first node      removeNode(node1,1);   It doesn't work, So I set a debug point at this sentence. In debug mode, I saw clearly that after executing this sentence, "node1 " turns to be "node2" whose "item" equals to "2". But after exiting the whole "removeNode", node1 returned to original "node1" whose "item" equals "1".  I thought that the "head" I use in the method is a copy of the node1, but I learned that Java always use reference passing parameters. I am confused what "head" really is inside the method.


If $F\subseteq L\subseteq K$ are fields with $K/L$ and $L/F$ Galois, then $K/F$ is Galois?.   My intuition tells me that this is not true, but I can not find a counterexample, could someone give me one please? Thank you.


Does attacking with a magically enhanced weapon count as a magic attack?

I was fighting a , and attacked with a weapon enhanced with electricity, does this trigger the golem's immunity to magic?  Does attacking with an enhanced weapon count as a magic attack?


I have a MacBook Pro Retina Early 2015 model, that I have owned for 2 years. It was working absolutely fine just yesterday (or the day before). I consulted an Apple authorized service center that said I needed to replace the battery but I was confused how could the battery die overnight. So I contacted another Apple authorized service center. They took in my laptop for diagnosis for a couple of days and told me that the "topcase" was faulty and needed to be replaced. Of course they are also charging a hefty sum of money for it.  I have two questions:   What is a topcase? (sorry i am slightly technologically challenged) Is there any way around my problem. I really don't think I can afford a new top case.   My laptop works fine on AC power, it's just that it's not a laptop anymore if I always have to keep it plugged in.  Thanks for you help in advance.


If the dot product between two vectors is $0$, are the two linearly independent?

If we have vectors $V$ and $W$ in $\mathbb{R^n}$ and their dot product is $0$, are the two vectors linearly independent?  I can expand $V_1 \cdot V_2 = 0 \Rightarrow v_1w_1+...+v_nw_n = 0$, but I don't understand how this relates to linear independence.


procedural texture driven by image texture? Possible?

I am just messing around and trying to make some kind of object that has a bunch of hearts on it. I have an image of a simple heart and I tried mixing it with a checkerboard texture and it wasnt working. I'm just making sure I'm not wasting my time and trying to do something that isnt possible. I'm still very new to blender!!


Why does /bin/sh point to /bin/dash and not /bin/bash?

As far as I understand bash is the default shell in Ubuntu, so why does /bin/sh point to /bin/dash?


Is gksudo still in use, if not what is the replacment?

Is gksudo still in use or is it officially removed? It is still available in the Ubuntu tutorial: () and what would be the replacement for it?  Also what did the gk part stand for? Graphical?  Edit:  gksudo was Removed a replacment for it would be sudo -i


Don't display obvious clues from known good audit reviews

So there's a question in the close review queue.  Its 0 score and looks to be ok at the top, but its long and I'm scrolling down to see if there's a multi-part question or something else that is too broad being asked as I get to the bottom.  And then BLAM in big red text, it is obvious this is an audit.  There's a bounty on the question.     Yes, this is a screen shot after the review, but it was there in the audit too.  You can't place a close vote on a bountied question and so there's no way for this to be in the queue any other way than an audit.  Looks good without actually reading the actual text of the question and I pass the audit.  The feature request:  Don't show bounties on known good questions when using them as audits.  Yes, I believe a good audit system requires you to read the text rather than going off of other hints about the question.


Identify this story about the end of the world (possibly the Big Rip)?

I've read a story online in the past couple of years, possibly on Tor.com, involving the end of the world, which I would like to reread.  A female scientist has calculated the exact moment some wave of destruction, most likely the Big Rip, will hit earth. She's awaiting that moment together with her mother. A probe has been constructed that might survive, but humanity will not, so there will be no-one to read out the data. Her partner has committed suicide, since he (like many other people) doesn't want to witness the destruction.  I went through the stories on Tor.com but I haven't found it yet.


Googlebot crawls but doesn't fetch pages

I've been seeing a surge in the number of "Crawled - currently not indexed" pages in search console recently. Screenshot below:  When I look in detail to URLs one by one, I see that some of them are crawled but not fetched, like below:  Site's average response time to googlebot seems to be in the range of 200-300 ms. What can be a reason for these crawls but no fetches?


Subject says it all. I'm sure I've seen this somewhere, so if someone can link me to a wiki page or post that explains, that works for me.


Does anyone know what the series $\frac{n^x}{n!}$ converges to?

Most people in math are familiar with the conventional taylor series, $$\sum_{n=0}^{\infty} \frac{x^{n}}{n!}$$ which converges to $$e^x$$  I came across an uncommon series from working with very unusual exponents, and even though it looks simple, I'm not sure how to approach it or much less its result. This one has k in the base in the numerator instead. I am fairly certain it converges, but to what I am not sure, it's not really the same as dealing with x^n. For this specific problem, I don't need to know the method, I am wondering only what it converges to.   $$\sum_{n=0}^{\infty} \frac{n^{x}}{n!} = ?$$  Does anyone know what this converges to?


Error: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

I'm creating an app that display videos in a recycler view , I already can storage the videos in Database Firestore , but I'm getting this error when I run my app:  java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference     at com.example.carlos.trendy.FeedRecyclerAdapter.getItemCount(FeedRecyclerAdapter.java:35)   My code:  public class FeedRecyclerAdapter extends RecyclerView.Adapter<FeedRecyclerAdapter.ViewHolder> {  public List<Feed>feedList;  public FeedRecyclerAdapter(List<Feed> feedList){     this.feedList = feedList; }  @Override public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {      View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.feed_row, parent, false);     return new ViewHolder(view); }  @Override public void onBindViewHolder(ViewHolder holder, int position) {      String desc_data = feedList.get(position).getDesc();     holder.setDesc(desc_data); }  @Override public int getItemCount() {     return feedList.size();///ERROR }  public  class ViewHolder extends RecyclerView.ViewHolder{      private TextView desc;     private View mView;      public ViewHolder(View itemView) {         super(itemView);         mView=itemView;     }     public void setDesc(String descText){         desc = mView.findViewById(R.id.post_desc);         desc.setText(descText);     } } }   FeedActivity:  public class FeedActivity extends AppCompatActivity {  private Context mContext = FeedActivity.this; private static final int ACTIVITY_NUM = 0; private FirebaseFirestore firebaseFirestore;   private RecyclerView mFeedList; private List<Feed> feedList; private FeedRecyclerAdapter feedRecyclerAdapter;  public void videoPicker(View view){     Intent intent = new Intent(FeedActivity.this, postActivity.class);     intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);     startActivity(intent);  }  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_feed);      mFeedList = this.findViewById(R.id.feed_list);     feedRecyclerAdapter = new FeedRecyclerAdapter(feedList);     mFeedList.setLayoutManager(new LinearLayoutManager(this));     mFeedList.setAdapter(feedRecyclerAdapter);      feedList = new ArrayList<>();       firebaseFirestore = FirebaseFirestore.getInstance();     firebaseFirestore.collection("Posts").addSnapshotListener(new EventListener<QuerySnapshot>() {         @Override         public void onEvent(QuerySnapshot documentSnapshots, FirebaseFirestoreException e) {             for (DocumentChange documentChange: documentSnapshots.getDocumentChanges()){                 if (documentChange.getType() == DocumentChange.Type.ADDED){                     Feed feed = documentChange.getDocument().toObject(Feed.class);                     feedList.add(feed);                     feedRecyclerAdapter.notifyDataSetChanged();                 }             }         }     });        setupBottomNavigationView();   }  private void setupBottomNavigationView() {     BottomNavigationView bottomNavigationView = findViewById(R.id.bottomNavViewBar);     BottomNavigationViewHelper.enableNavigation(mContext, bottomNavigationView);     Menu menu = bottomNavigationView.getMenu();     MenuItem menuItem = menu.getItem(ACTIVITY_NUM);     menuItem.setChecked(true); }  @Override protected void onStart() {     super.onStart();   }  public static class FeedViewHolder extends RecyclerView.ViewHolder {     View mView;      public FeedViewHolder(View itemView) {         super(itemView);         itemView = mView;     }     public void setDesc(String desc){         TextView post_desc = mView.findViewById(R.id.post_desc);         post_desc.setText(desc);     } }  }   Can anyone help me?


Add new value to an existing array in JavaScript

In PHP, I'd do something like:  $array = array(); $array[] = "value1"; $array[] = "value2"; $array[] = "value3";   How would I do the same thing in JavaScript?


Is there a Photoshop (CS5) plugin that will make color swatches global?

I am trying to find a way to make global color changes in a single place.  I found another question that describes this well... .  Per the answers to that post/question, Photoshop CS5 does not support "global swatches".  So, my new question is...  Are there any plugins for Photoshop CS5 that enable "global swatch" type functionality or in some other way achieve the objective outlined in the question linked above?


Is every closed set , the set of zeroes (resp.critical points) of some smooth real valued function?

Let $A$ be a closed subset of $\mathbb R^n$ :   1) Is it true that for some smooth function $f: \mathbb R^n \to \mathbb R$ , $A=f^{-1}(\{0\})$  2)Is it true that for some smooth function $f: \mathbb R^n \to \mathbb R$ , $A$ is the set of all critical points of $f$ ?


Why some questions have yellow background when I am viewing under my interesting tag?

answered my question "why some questions has yellow background" but it raised another question. I am viewing questions under my interesting tag then what is the need for yellow background because all questions fall under my interesting tag.


Where did the phrase "scat old cat" come from?

I'm from north Alabama and grew up with the phrase "scat old cat your tail's in the gravy".  This was used when someone would sneeze.  Just was curious as to it where this originated.  Thanks, Ronnie


Is my database connection secure, so I don't get my site hacked?

I use the following PHP code to connect to MySQL.  $link = mysql_connect('127.0.0.1', 'root', '123456') or die("wrong user pass mysql"); mysql_select_db('database', $link);   This code is placed in a connection file called connection.php which is included in all PHP scripts that require access to database.  If a hacker gets the URL of connect.php (), is it possible to hack my database? How can I ensure that the PHP connection code does not help the hacker? Or which is the best secure way of connecting to the database?


Using Direct Proof. $1+2+3+\ldots+n = \frac{n(n + 1)}{2}$

I need help proving this statement. Any help would be great!


How do you apply the object transform so that scaling the object on a single axis actually scales along the correct axis?

I am trying to scale an object along the Y Axis (flipping it by -1) but I am having trouble. When I scale it by Y, it seems to be a semi-arbitrary axis. The 3D cursor shows that the object's orientation is not aligned with the world, but I want to scale it on the world's Y Axis. I've tried clearing and applying rotation but it doesn't seem to be doing what I expect. I would think that clear rotation would be what I'm looking for, but it doesn't seem to work. I want the object to stay in the same exact world location but I want its rotation to be 0,0,0. How can I zero the object's rotation without affecting its actual position/rotation?  Thanks, Warren


Can you contract the main verb '[I] have' in a sentence?

One can contract I have to I've when have is a helping verb, e.g.     I've got an octopus in my pants.   Is contracting the main verb technically incorrect or merely antiquated? My father loves to say,     I've a month-old smoked shoulder I can cook for dinner,   and he sounds like a crazy old man when he does. I would like to know if I can shut him down by informing him that he is incorrect. :)


What are the different terminal emulators available in Ubuntu?

When I type echo $TERM on my terminal it shows me xterm. From there itself I believe there are more than one terminal in Ubuntu. Is it the name of the terminal that I am using? I have seen some computer experts using terminal which is having lots of colored text and all. Actually how many types of terminals are there in Ubuntu?


I have a PageBlockTable which shows a couple of rows. On click of one of these rows I want to display the fields of row in another page block below on the same page which will have some additional fields for the user to key in.  And then I want to create a record in another object.  How do I achieve this? How do I capture the values of the clicked row?     Below is my VF Page   <apex:page standardController="Account" extensions="AccountSearch">  <apex:form>  <apex:pageMessages ></apex:pageMessages>      <apex:pageBlockSection title="Please enter your details">        <apex:inputText value="{!FName}" label="First Name"/>           <apex:inputText value="{!LName}" label="Last Name"/>         </apex:pageBlockSection>      <apex:commandButton value="Search" id="Search" action="{!AccountSearch}"/>  </apex:pageBlock>  <apex:pageBlock title="Search Result">     <apex:pageblockTable value="{!acc}" var="a">       <apex:column >        <apex:outputlink value="https://cs62.salesforce.com/{!a.id}">{!a.Name}</apex:outputlink>       </apex:column>       <apex:column value="{!a.FirstName}"/>       <apex:column value="{!a.LastName}"/>      </apex:pageBlockTable>      </apex:pageBlock>


Why broker charge me for BORROW fees when I have a long unsettled position as well to counter the short in the same account

The only reason why I put it here is to find out whether I am a victim or just ignorant of the way brokers deal with option positions that were exercised. Whether I am a victim or just ignorant will depend on your answer posted here. The facts are:  I had a 2 SHORT QS Option at 75 which was exercised against me on the 23 Dec 00.45 AM and I later exercised my 2 LONG QS Option at 70 on 23 Dec 9.31 AM. The broker charged me Borrow Fee for 24-27 Dec for $1102, which means instead of getting $1000 profit I turn this into a loss of $102 plus comm.  My question:  Since both long and short options were exercised on the same day one at 45 mins on 23 Dec and the later at 9.31 am on the same day, how can there be a SHORT POSITION in the stocks since both are net-off in my account ?  The answer I got from my broker and this is the point that I want to clarify.  The response I got from IB was that the initial exercise at 45 mins on 23 Dec was actually on 22 Dec (not 23 as I alleged). They refused to show me how they got 22 Dec.  This is my explanation to my Broker in reply. 4.Even if the short call and long call were exercised on different dates 22 and 23 Dec respectively, IB can only charge me for the SHORT position for one day and not from 24-27 Dec by ignoring my long call position was not there.  My Broker ignored my answer and insisted the dates are correct and therefore I was charged to borrow shares that needed to satisfy the short position on exercised. So I am lost as I do not know whether the broker is correct and they can do this by ignoring my long call position after exercised or there is something else.  I hope I have explained this clearly now and this is not an opinion as some suggested to cut my question down. This is how I responded to the broker and their silence is the reason why I am here, hoping to get clarity as to the way options long and short are settled.


Javascript event listeners conflict problem

I think i have two event listeners in conflict, in my js file i have a click listener made like:  document.getElementById('sidebar').addEventListener('click', function(et) {   et.preventDefault();    var item = et.target.closest('.inner');     if (item) {     // etc.   that checks all clicks made over the sidebar, if the item clicked is that with class .inner then do something.  now when i'm trying to set a on hover listener on list items in the same sidebar with:  $('.list-item').on('mouseenter', function(eee){   console.log('entered'); }).on('mouseleave', function(eee){   console.log('left'); });   it doesn't work. same code placed on the logo for instance works fine. So i'm thinking it may be a conflict with the first code shown above, is it or must be something else?  SOLVED:  I was creating .list-item after 1000ms from page load with a setTimeout function, so despite the jquery .on method which is sort of a delegate from my understanding, the setTimeout was still able to mess it.  I now placed the code inside the timout and works.  $(window).on('load', function(){        setTimeout(function(){         // other code          $('.list-item').on('mouseenter', function(eee){           console.log('entered');         }).on('mouseleave', function(eee){           console.log('left');         });       },1000);  });


An isomorphism from $GL_{2}(\mathbb{F_{2}})$ to $S_{3}$

Well I want to prove that $GL_{2}(\mathbb{F_{2}}) \simeq S_{3}$ then I need to find a bijection between them, so my attempt for the $\Leftarrow]$ part is to consider the permutation matrix, I will Ilustrate this with an example:  $\sigma = (1 \to3),(2\to1),(3\to2)$ and its permutation matrix is:  $$ \left( \begin{array}{ccc} 0 & 1 & 0 \\ 0 & 0 & 1 \\ 1 & 0 & 0 \end{array} \right)$$   Then the pattern is to write a 1 in the place we are mapping our cycle.  But I dont know How to proceed with the $\Rightarrow]$ part, Can someone helpme to finish this bijection please? Thanks a lot in advance.   Note:  $\mathbb{F_{2}}$ is thefield of the integers mod two the consisting of {0,1} :)  THE ABOVE ATTEMPT IS WRONG THEN I NEED YOUR HELP IN BOTH SIDES OF THE ISOMORPHISM THANKS A LOT ;)


How do I import a sketchfab model into 2.82

When you download a model from sketchfab it saves as a .zip file with a folder for texture as .pngs and a folder for the model as a .fbx file. How do I import the model with the textures into blender? I don't care if I need to convert or even how long it takes, I just need a solution.


Derivation of Equation of motion from Euler-Lagrange Equation

Hello I am new to Lagrange's dynamics and have some doubts regarding derivation of equation of motion given in a text :  Deriving Equation of motion for a free body(no-external forces) ,in one dimension  $L=T-V=(1/2)m \dot q^2(Since V=0)$  Euler-Lagrange equation :  $\frac{\partial L}{\partial q}-\frac{d}{dt}(\frac{\partial L}{\partial \dot q})=0$  $\frac{\partial (\frac{1}{2}m \dot q^2)}{\partial q}-\frac{d}{dt}(\frac{\partial (\frac{1}{2}m \dot q^2)}{\partial \dot q})=0$  Now in the text it was given that $\frac{\partial (\frac{1}{2}m \dot q^2)}{q}=0$. Therefore   $\frac{d}{dt}(\frac{\partial (\frac{1}{2}m \dot q^2)}{\partial \dot q})=0$  $\frac{d}{dt}(m \dot q)=0$  Therefore $m \ddot q=0\;\;$. Which is the euqation of motion.  What I want to know is how $\frac{\partial (\frac{1}{2}m \dot q^2)}{q}=0$. Are the variables $q,\dot q$ in a Lagrange always independent or is it just in this one case . So that basic question is weather in a Lagrange are the variables $q,\dot q$ always independent and just when there is no external force is $\frac{\partial (\frac{1}{2}m \dot q^2)}{q}$ always zero.


I've searched the net for it, but couldn't find any method for LaTeX. Is it possible to make insert an image rounded by text? Like this strawberry?  \documentclass[a4paper]{article}  \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{amsmath} \usepackage{graphicx}  \begin{document}  \end{document}   Kind regards Basilius Sapientia


Are the "cocaine hippos" suffering from noticeable inbreeding depression?

Colombia  a population of about 100 "cocaine hippos" founded from a group of one male and three females, which escaped from a drug kingpin's private zoo; it's even estimated that this population could grow to over 1,000 in the next two decades or so:  The rise of the so-called "cocaine hippos" began in 1993 after authorities killed Pablo Escobar and seized his luxury estate Hacienda Napoles, about 250km (155 miles) north-west of the capital Bogotá. Animals found there were distributed to zoos across the country, but not the hippos. "It was logistically difficult to move them around, so the authorities just left them there, probably thinking the animals would die," Ms Castelblanco said. Instead, they thrived. Over the years, scientists have tried to calculate how many hippos are living in Colombia's waterways, with estimates ranging from 80 to 120 animals. "It is the biggest hippo herd outside Africa, which is their native region," veterinarian and conservationist Carlos Valderrama told the BBC. [...] Ms Castelblanco and her peers say the population will reach over 1,400 specimens as early as 2034 without a cull - all of them descended from the original group of a male and three females.  I'm curious however if these "cocaine hippos" don't show any signs of  given how small the founding group was. Are there any studies/articles on this aspect in that Colombian hippo population?


Do questions about specific StackOverflow implementation details belong on SO or Meta?

has several discussion comments going back and forth about whether the question belongs on SO or Meta.  The question is asking about how a specific feature of the site is implemented from a coding perspective (so that the OP might duplicate it in their own implementation), which can make it a legitimate programming question.  According to the Meta FAQ: "If your "question is about ... Stack Overflow / The core Stack Exchange engine", it should be asked here.  Here are some similar example questions on Meta:         Where do these questions belong?


How can I know how an email account was breached?

it seems that a spammer cracked an email account and all my SMTP relays were consumed. My server is a VPS CentOS.  I have taken every prevention method I have found on the CPanel documentation and still it happened, everything here is covered:   All accounts have a password with a score of 60 or more. I also blocked port 25 and required SMTP authentication.   On WHM "Mail Delivery Reports" the sender appears as an email account from an nonexistent domain "notificaciones@banamex.com.mx" with the following event details:  Sender:notificaciones@banamex.com.mx  Sent Time: Oct 13, 2016 10:40:10 AM  Sender Host: 86.106.131.229  Sender IP: 86.106.131.229  Authentication: dovecot_login  Spam Score: 2.8  Recipient: examplemail@hotmail.com  Delivered To:  Delivery User:  Delivery Domain:  Router: send_to_smart_host  Transport: remote_smtp    Using this script on SSH I found out an email account I own francisco.gonzalez@mydomain.com has send more than 9,000 emails:  perl -lsne '/$today.* \[([0-9.]+)\]:.+dovecot_(?:login|plain):([^\s]+).* for (.*)/ and $sender{$2}{r}+=scalar (split / /,$3) and $sender{$2}{i}{$1}=1; END {foreach $sender(keys %sender){printf"Recip=%05d Hosts=%03d Auth=%s\n",$sender{$sender}{r},scalar (keys %{$sender{$sender}{i}}),$sender;}}' -- -today=$(date +%F) /var/log/exim_mainlog | sort     I want to find out how that account was breached in order to prevent further attacks. Any guess? Any help will be really appreciated. Thank you.


Unable to install a package from the postinst of another package

I have Ubuntu 14.04.  I have 2 deb packages, deb1 and deb2  I'm trying to install deb2 in the postinst of deb1 using dpkg -i deb2 but I get this error:  dpkg: error: dpkg status database is locked by another process   To get around that, in my postinst I added this instruction to remove the lock:  sudo rm /var/lib/dpkg/lock   But then deb1 installation failed:  dpkg: unrecoverable fatal error, aborting: unable to install updated status of `deb1':  No such file or directory`   However, when I don't try to install deb2 from deb1 the installation of deb1 succeeds.  How can I achieve what I want?


Possibly fraudulent journal: cite or not to cite?

When I was doing literature review, I came across a  published in a journal .   Now, I can't find this paper anywhere else, no citations, or anything. Just the pdf that I linked above. Also, the journal website looks shady as links don't work and it just does not have the make or look of an academic journal. Additionally, I couldn't even find anything about the authors.  What should be done in such cases? Should the paper be completely ignored or put in the review section?


Is there a basic/elementary mass in the universe?

When speaking about electrical charges, it seems every particle either has a charge $+1$ or $-1$, in units of the electron charge. Therefore, we have a fundamental charge.  But what about mass? Is there any kind of such mass that every other mass can be seen a sum of those basic masses?


"A combinations problem." There are $10$ halting stations on a circular road in a city....

There are $10$ halting stations on a circular road in a city. On the route, a bus will stop at any three stations so that no two stations are adjacent. The number of such possible bus routes are  I made $7$ places left to be filled in a circle which were not adjacent that gave $35$ ways of filling those up. But, the answer is $50$. I can't get myself to the correct answer.


A new Era requires new badges (Badge request)

This community has some absolute rock stars and as a community, we should have a badge to help these individuals stand out for their thoughtful and planned out answers.  badge request   badge name: "The most generic responce"     This badge can be achieved if a user can reach an impressive 300 downvotes on one of their posts


E: The repository 'https://download.docker.com/linux/debian focal Release' does not have a Release file.  N: Updating from such a repository can't be done securely, and is therefore disabled by default.  N: See apt-secure(8) manpage for repository creation and user configuration details.  I'm getting this error when I tried installing docker from . Anyhow, now I don't want it, but I can't find it anywhere in sources. I ran $ sudo nano /etc/apt/sources.list  but I cant find the docker repository to remove. How do I remove docker repository?


Posfix pipe all incoming emails to PHP.... NO REWRITING

I'm trying to get Postfix to pipe ALL email coming in on a specific domain to a PHP script. So far I've been able to do this via a tutorial I found on the web and also editing the /etc/postfix/virtual file with something like what's below;  @domain.com root   The problem is that Postfix is re-writing the original recipient email address (for example my_fake_email@domain.com) to root@domain.com and the PHP script receiving the email does not get the original recipient (my_fake_email@domain.com). It is important that the PHP script sees my_fake_email@domain.com instead of root@domain.com.   Is it possible for Postfix to direct all incoming mail to the PHP script without modifying the address like in the example above?  Note: There can/will potentially be 10,000's of incoming email addresses.  Any ideas on how I can get Postfix to do what I want?


How to make UV loft like 3ds Max in Blender using curves?

I am try to make a car Body using the technique like UV loft in 3ds Max.  How to apply this technique in  Blender using curves or closer to this technique? I have seen this technique in a Blender tutorial, but I forgot about it.


Keybord-key and the resulting character. Who is responsible (in the OS)

Pressing a key on the keybord results in different types of characters in different OS's. e.g. pressing the up arrow in windows will result in a nother sequence of characters then pressing the same key in linux.  So the question is: Which "part" of an OS is responsible? Especially when looking at GNU\linux OS's since "linux" is only the kernel.


When Building a Character, if a skill proficiency is mentioned twice do i add the proficiency bonus twice?

I'm building a character in the 5th edition and my background and class both mention survival proficiency, do i add the proficiency bonus twice or only once?


About the complex nature of the wave function?

1.  Why is the wave function complex? I've collected some layman explanations but they are incomplete and unsatisfactory. However in the book by Merzbacher in the initial few pages he provides an explanation that I need some help with: that the de Broglie wavelength and the wavelength of an elastic wave do not show similar properties under a Galilean transformation. He basically says that both are equivalent under a gauge transform and also, separately by Lorentz transforms. This, accompanied with the observation that $\psi$ is not observable, so there is no "reason for it being real". Can someone give me an intuitive prelude by what is a gauge transform and why does it give the same result as a Lorentz tranformation in a non-relativistic setting? And eventually how in this "grand scheme" the complex nature of the wave function becomes evident.. in a way that a dummy like me can understand.  2.   A wavefunction can be thought of as a scalar field (has a scalar value in every point ($r,t$) given by $\psi:\mathbb{R^3}\times \mathbb{R}\rightarrow \mathbb{C}$ and also as a ray in Hilbert space (a vector). How are these two perspectives the same (this is possibly something elementary that I am missing out, or getting confused by definitions and terminology, if that is the case I am desperate for help ;)   3.   One way I have thought about the above question is that the wave function can be equivalently written in $\psi:\mathbb{R^3}\times \mathbb{R}\rightarrow \mathbb{R}^2 $ i.e, Since a wave function is complex, the Schroedinger equation could in principle be written equivalently as coupled differential equations in two real functions which staisfy the Cauchy-Riemann conditions. ie, if $$\psi(x,t) = u(x,t) + i v(x,t)$$ and $u_x=v_t$ ; $u_t = -v_x$ and we get $$\hbar \partial_t u  = -\frac{\hbar^2}{2m} \partial_x^2v + V v$$ $$\hbar \partial_t v  = \frac{\hbar^2}{2m} \partial_x^2u - V u$$ (..in 1-D) If this is correct what are the interpretations of the $u,v$.. and why isn't it useful. (I am assuming that physical problems always have an analytic $\psi(r,t)$).


Is LibreOffice Calc available in Ubuntu Server 18.04 LTS?

I am currently using Ubuntu Desktop 18.04 LTS. Where I work with mainly LibreOffice Calc. But I have to work with a server as well, and I only have one PC. So if I install Ubuntu Server, can I use LibreOffice Calc as well?  Please try to answer as yes or no: Is LibreOffice Calc is preinstalled in ubuntu server or have I to manually install it?


Would Voldemort see his diary self as a threat?

If Tom Riddle would have successfully come back, and Ginny died, would Voldemort in Albania see himself as a threat? Would the Tom Riddle part want to finish off the "ugly and weak" part of himself? Or would he try to merge with the other part of his soul? There are other questions like this, but what I'm asking is if the two parts of the soul would compete for power or see the other as a threat or weakness? The main part of Voldemort was weak at this point, and the Tom Riddle part would be at full strength. What do you guys think?  I'm not asking if there would be two Voldemort's. So I don't think this is a duplicate.


Print out variables from subshell to parent shell

Very new to Bash and pretty confused about local/global variables/subshells. I'm not sure why the modified variables won't print out at the end of the function—I'm trying to print out a final line count and file count at the end of the file, but if I do, it only prints out 0 because they are local variables. Is there any way to print out the modified values?   count=0 files=0 find . -type f | while IFC= read -r file; do    let files=files+1    wc -l $file    count=$(($count+$(wc -l < $file)))    echo "total lines $count ; total files $files" done echo $files $count exit 0


Autodetection of presence of internal CT burden on plug-in CT

I am going to measure 3 phase energy using CT from YHDC model SCT013-000 (100A:50mA) and SCT013-100 (100A:1V). I have a board which is done in my company and my job this moment is make a shield board for this main board which have as uC an ESP8266.1  When I plug a CT on KRE2 (terminal block), I need a circuit that detects if the CT has an internal burden inside or not to switch for the right circuit.   In the CT1 (100A:50mA) there's no burden inside, so I need an external burden to have a closed loop.  In the CT2 (100A:1V) it already has a burden built inside then I just need offset circuit for ADC.    I was thinking about comparator but I don't know if that is going to work. That's where I need help. I need something analogous to a switch between SW1 or SW2 depending on which CT I plugged on KRE2.   Thats what I need help, please.  If someone have a better idea for circuit topology let me know too, if I can reduce components, for instance.    1 Well, the ESP ADC isn't good enough for what we need but it's a firmware guy deal, not mine so much, and we will use the A0, A1 and A2 analog input from ADS1115 to measure current using these current transformers, because it has better resolution. I will leave A3 pin from ADS1115 open (no connect). It is for a specific application, which is just measure 3 phase current.


Duplicate question to , which was never answered. (Which option is worse, that I repost the same question, or that I thread necro the old post?)  Anyway, is there a way to disable specific keys when specific programs are running? Or alternatively, disable Dash when a specific program is running?


Can I use butter in cookies the same if recipe calls for margarine

Can I use butter in a molasses cookie recipe instead of margarine I


Intersection of a function having increasing derivative with tangent line

I came across the following exercise in Spivak:  Suppose that $f(x)$ is a differentiable function and suppose that $f'(x)$ is increasing. Show that every tangent line of $f(x)$ intersects the graph only once.  My intuition is as follows:  Consider the tangent line $t(x)$ for any point $a$. Clearly, we have $t'(a) = f'(a)$. Since $f'(x)$ is an increasing function whereas $t'(x)$ is constant, the two graphs can never intersect again for $x\geq a$ because $f(x)$ "grows faster" than $t(x)$.   How do make this argument precise?


Converting GUI operations to Python code?

If I start building my scene from scratch using GUI (read: clicking buttons), will I be able to automatically obtain the equivalent Python code that achieves the same end results?  This is a really cool feature that sounds definitely doable, but not sure how to do it.


Creating Environment Variables in Python does not seem to work

I am writing a python script and I want this script to write some value to an environment variable which does not exist before the running of this script. The OS which I am running is Ubuntu. So ideally, after execution of the script, I should be able to display the environment variable using the echo command on the terminal. By that I mean the terminal behaviour should be as such:  > echo $NEW_VAR environmentvarvalue   I want to be able to access this environment variable in a different python script as well. So the following code:  import os output = "The value of NEW_VAR is " + os.environ.get('NEW_VAR') print output   when run after running the initial script, should produce the following output when executed:  The value of NEW_VAR is environmentvarvalue   I have tried the following code in my initial script after a bit of research about this:  import os os.environ['NEW_VAR'] = 'environmentvarvalue'   but the environment variable gets saved only for the scope of the initial scrpt, and when I run the echo command on the terminal after execution of the script, the behaviour is the same as when the variable does not exist. Is there something wrong with my code? Or is there a better way of assigning an environment variable through python? I know that I can probably run the export command from the subprocess python module, but this does not seem like the right way to solve this problem.


E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) while installing a package

I'm trying to install latex in 17.04 using   sudo apt-get install texlive-full texmaker   but it returns  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   How can I fix that problem?


I myself think miracles are phenomena that cannot be explained by extant accepted theories. Now, science and scientific method claims to reject miracles and propose a reason and logic for every phenomena. But, I think the very premise is fallacious. For, a miracle is a phenomena that is not yet explained based on the current theory, and if a logical way is found to explain the phenomena, then it becomes a scientific fact. Thus, the very thing that we call a miracle will become a scientific fact. Take, for example the cell phone. In days of yore before the advent of cell phones, speaking to far off people would be classified under the banner of clairaudience and claimed as false. But, now, the cell phone has given the power to do the same. So, I think that things that are called impossible, or miracles, are the things that can actually be performed, but not currently, owing to lack of a suitable instrument. Thus, belief in the occurence of miracles, seems to me, not a superstition, but a goad to extend the existing repertoire of knowledge. Can this view be justified. Any light on this view? Thanks beforehand.


Prove $\limsup_{n \rightarrow \infty} a_n\geq1$ if $\lim_{n \rightarrow \infty} a_na_{n+1}=1$

Let $\{ a_n \}_{n=1}^{\infty}$ be a bounded sequence s.t. $a_n>0,\ \forall n \in \mathbb{N}$. Suppose $\lim_{n \rightarrow \infty} a_na_{n+1}=1$, prove $\limsup_{n \rightarrow \infty} a_n\geq1$.   I tried to prove by contradicition using subsequence, but couldn't work it out.  Any help appreciated.


Which sentence is Correct Among both   How much will you pay for me How you will pay for me


Text becoming fuzzy when Cyrillic is allowed

When compiling  \documentclass{article} % For Cyrillic: \usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} \begin{document}   This text is fuzzy (размытые очертания). \end{document}   I get this:    And when I remove Cyrillic  \documentclass{article} \begin{document}   All letters have crisp edges.  \end{document}   I get   Is there an easy modification of the first document that would make the edges crisp?  I usually need just a few words in Cyrillic, and making the whole document fuzzy is too high a price to pay for me.  Added on 23 December 2018: Thank you to all who answered my question.  Unfortunately, installing CM-Super did not work for me.  Normally MiKTeX installs packages on the fly, but for CM-Super I was getting error messages.  Since I need just a few words in Cyrillic (in the bibliography) and often share my files with colleagues and publishers, installing CM-Super would be an overkill.  My solution in the end was:  \documentclass{article} \input{T2Aenc.def} \usepackage[utf8]{inputenc} \newenvironment{cyr}   {\begingroup\fontencoding{T2A}\selectfont}   {\endgroup} \begin{document}   The English fonts are vector and Cyrillic bitmap   (\begin{cyr}последнее мне не важно\end{cyr}). \end{document}   The Russian font is still bitmap, but I can live with it.


I have been working on lung samples to perform western blotting. I have two related questions about this:   I get very nonspecific results: at times nothing at all, at times it glows on membrane but doesn't take up on x-ray film. What are the common causes of these errors and how might I avoid them? I am interested in assaying GPCR expression. When I am assaying for GPCRs, do I need to prepare the lung samples in a specific way (that is different from sample preparation for Western blots of other proteins)?


Condition statement not returning correct value

I may be missing something obvious here, but I cannot figure it out. In my attribute table under the area_ft_su column, I have a bunch of NULL entries. I want to change those NULL entries to zero without having to manually change each one. The output preview looks correct, but when I click "Ok", nothing happens. Nothing is updated. Am I missing something or is my syntax wrong?


I am trying to migrate a virtual machine I use for my classes at the university from 10.04 to 12.04 and in that I am using xulrunner so that   first, I can have SQLiteManager as a stand alone app next,  can provide help for its nodes   I tried adding the the mozilla ppa as described in some posts, e.g.  or , but when I search for xulrunner in Synaptic I get no match.  I read in , that xulrunner was left out intentionally, which, frankly, I think is a bad decision! Anyway, does anyone know a way out of this, i.e. how to get xulrunner?


Do atmospheric physics prevent hot air balloons from ascending over 60,000ft?

I was reading the altitude records for hot air balloons on Wikipedia, and noted that the . It didn't really say if there was a reason why. I know that closed envelope balloons frequently climb much higher.   I was wondering... If you have a pressurized cabin (for keeping the operator conscious), and you mix oxygen into the fuel to heat up the air, is there really any reason that a balloon cannot ascend higher? Does the thinning of the air prevent it from holding heat as well? Do other atmospheric events come to play in not allowing a hot air balloon to ascend higher? I don't understand hot air balloons that well and could be missing a major component =)


Is there a way to do these two lines of code in one line?  nc -l 17500 > listenToNetcat.txt chmod 754 listenToNetcat.txt


Blender Principled BSDF shader missing, please help

The Blender Principled BSDF shader is missing in my node editor. I'm using the latest Blender version 2.79. Please help :)


Apex InvocableMethod not showing up in Flow

The Apex class is not in a package, has global visibility, is Active, has passing tests with 86% coverage, and the method has the @InvocableMethod tag but it is still not showing up in the picklist when trying to add an Apex Action to a flow.  I'm wondering if there's anything I'm missing.


Is it possible to filter/blacklist SE sites?

So many questions show up on the right side of the page (Popular Questions) i.e:    So I was wondering if it is possible to filter these questions to only display the ones that I'm interested in seeing.  Also, it would be cool if we can do the same to the list of SE on the top of the page.


What about lowering the edit character limit for characters in code snippets?

, to correct a misspelled library enum in an answer. Since the edit was only one character, I also had to add a superfluous sentence to get over the character limit required to edit a post.  I've hit this problem before in other edits, always in code snippets. Since the edit limit exists to prevent trivial edits, and since there are many cases where one character code edits are not trivial (= to == etc), would it make sense to have a lower edit minimum inside code snippets?


How to increase a global variable in a function and use/increment multiple times thereafter in Python

I have 2 Python files:  functions.py  global counter counter = 0  def printC():     print(counter)  def increaseC():     counter += 1   and a main.py  from functions import printC from functions import increaseC  printC() increaseC()   The first function prints the 0 with no problem but then i get that error message:  counter += 1  UnboundLocalError: local variable 'counter' referenced before assignment   My question is: How can i increase that global variable that way than i can print the same way like this:  from functions import printC from functions import increaseC  printC() increaseC() printC()   To get the second print with 1 value?


Computer simulation of Schrödinger equation

I am looking for a computer program which simulates the Schrödinger equation (say for a single particle) in two dimensions and for potentials and initial states specified by the user.  Typical situations I have in mind are the double slit experiment, harmonic oscillator, Aharonov–Bohm, tunneling effect etc. Unfortunately I was only able to find the one dimensional case on the web.   So are there some 2d programs available?  PS: I don't think my question is a duplicate of . I only ask about a single particle, not about thousands. On the other hand I want freedom in my choice of potential.  Also I want a numeric solution of a PDE, while the other question is about (as far as I understand, which is not ver far) a  Monte Carlo simulation. Anyway these are completely different requirements.


Is there any real-time anti virus for Ubuntu? Which antivirus is good and in real-time (I mean that, if I try to open an infected file or go to a bad website, it stops it).  I read a post in  and here is a part of it:  Anti-virus  If you are running a file server, interface frequently with Windows drives or share files with Windows users, or use virtualization, you will want a virus checker for your Windows files.   Despite extensive misinformation, Linux is not immune from malware (witness the explosion of malware being created for the Linux-based Google Android systems). The malware is not usually spread within the OS itself (as long as the OS is a well-respected distribution obtained through official channels), but in trojan programs downloaded and installed by users outside of the normal software distribution channels (i.e. repositories) of the OS. There is always a danger to using programs downloaded from the Internet from sources other than respected repositories -- it is the primary reason that Debian and (K)Ubuntu retain tight control over their software repositories.   Any file can have malware embedded in it (which is trivial to achieve by concatenation, for example: cat originalfile.avi malware.exe > originalfileplusmalware.avi). The question is whether a user will try to open a file with a program (such as a media player) that has been compromised in a way that allows it to execute the code found in the infected media (e.g. .avi) file. This can occur not only for Windows users but for any OS (including Mac OSX and Linux) with a compromised program (e.g. media player). An example is the extensive problems the Mac OS community is currently having with the Flash player.   Routine scanning of any file downloaded from the Internet, any file imported from another user's computer (even a trusted source, since their attention to virus prevention may not be as compulsive as yours), or any attachment received in an email (even from a trusted sender) should be done with an anti-virus program. So I think that there is a need for anti-virus in Ubuntu.


How do I bet that a stock price will not move?

If I believe a stock will go up, I buy the stock. If I believe a stock will go down, I short the stock. If I believe a stock will neither go up nor down, what do I do? How do I profit from a non-movement in stock price? I think I might be able to profit by selling a naked put and a naked call option with a strike price equal to the current stock price. Is this a valid method? Are there other methods?


Why is it that $\exists f_1,f_2\in M[f_1, f_2$ have no common factor]?

I am attempting to follow the below solution for part (a) of Chapter 12, Problem M.7 in Artin's Algebra textbook. I am having trouble understanding why $\exists f_1,f_2\in M[f_1, f_2$ have no common factor].   By "common factor," I presume that this really means $\exists f_1,f_2\in M \forall d\in M$[$d|f_1$ & $d|f_2$ $\implies$ $d$ is a unit]. (Correct me if I am wrong.) But how would I go about proving that this is true?


I am confused with Enum. This is my enum  enum Status {    Success = 1,    Error = 0 }   public void CreateStatus(int enumId , string userName) {      Customer t = new Customer();      t.Name = userName;     // t.Status = (Status)status.ToString(); - throws build error      t.Status = //here I am trying if I pass 1 Status ="Success", if I pass 0 Status = "Error"  }      Error - Cannot convert string to enum.Status    public class Customer {   public string Name { get; set;}   public string Status {get; set;} }   How do I set the Status properties of the customer objecj using the Enum Status.?  (No If-Else or switch ladder)


Styling multi-line conditions in 'if' statements?

Sometimes I break long conditions in ifs onto several lines. The most obvious way to do this is:    if (cond1 == 'val1' and cond2 == 'val2' and       cond3 == 'val3' and cond4 == 'val4'):       do_something   Isn't very very appealing visually, because the action blends with the conditions. However, it is the natural way using correct Python indentation of 4 spaces.  For the moment I'm using:    if (    cond1 == 'val1' and cond2 == 'val2' and           cond3 == 'val3' and cond4 == 'val4'):       do_something   But this isn't very pretty. :-)  Can you recommend an alternative way?


I'm trying to dual boot ubuntu and windows 10. I have the extra space required for ubuntu (I have about 200GB set up for it) But when I try to install it I don't get the option to install it allongside windows. How can I install it while keeping windows at the same time?


Masking NetCDF time series data from shapefile using Python

I have a 3-D time-series precipitation data (187 x 1800 x 3600), stored in a NetCDF file. I need to obtain the precipitation data for a shapefile. import matplotlib.pyplot as plt from netCDF4 import Dataset, num2date,  from matplotlib.pyplot import figure from datetime import datetime, date, timedelta import numpy as np import xarray as xr import pandas as pd import geopandas as gpd       MSWEP_monthly = 'D:\G3P\DATA\Models\MSWEP\MSWEP_monthly.nc4'  MSWEP_monthly = Dataset(MSWEP_monthly, 'r') Pre_MSWEP = MSWEP_monthly.variables['precipitation'][:]   MSWEP_monthly2 = xr.open_dataarray('D:\G3P\DATA\Models\MSWEP\MSWEP_monthly.nc4')  Lon_MSWEP = MSWEP_monthly2.lon Lat_MSWEP = MSWEP_monthly2.lat  Africa_Shape = gpd.read_file('D:\G3P\DATA\Shapefile\Africa_SHP\Africa.shp')    from osgeo import gdal,osr,ogr  def makeMask(lon,lat,res):     source_ds = ogr.Open(shapefile)     source_layer = source_ds.GetLayer()       # Create high res raster in memory     mem_ds = gdal.GetDriverByName('MEM').Create('', lon.size, lat.size, gdal.GDT_Byte)     mem_ds.SetGeoTransform((lon.min(), res, 0, lat.max(), 0, -res))     band = mem_ds.GetRasterBand(1)       # Rasterize shapefile to grid     gdal.RasterizeLayer(mem_ds, [1], source_layer, burn_values=[1])       # Get rasterized shapefile as numpy array     array = band.ReadAsArray()        mem_ds = None     band = None     return array  shapefile = 'D:\G3P\DATA\Shapefile\Africa_SHP\Africa.shp' source_ds = ogr.Open(shapefile)  # calculate the cellsize cellsize = Lon_MSWEP[:][1] - Lon_MSWEP[:][0]   # create the mask mask = makeMask(Lon_MSWEP,Lat_MSWEP,cellsize)  Now if I implement the following code, the precipitation data for the first day (from the time-series) can be obtained with shape of 1800x3600: precip = np.ma.masked_where(mask==0,Pre_MSWEP[0,:,:])  I tried to use a for loop to mask the precipitation data for the entire time series (time, lon, lat) over the area of interest. however, the below code gives me a 2-D data, probably for the last day. Why is that? for i in range(len(Pre_MSWEP)):     precip = np.ma.masked_where(mask==0,Pre_MSWEP[i,:,:])


As a follow-up to  I simplified even more and tried to train a single ReLU (with random weight) to a single ReLU.  This is the simplest network there is, and yet half the time it fails to converge.  If the initial guess is in the same orientation as the target, it learns quickly and converges to the correct weight of 1:      If the initial guess is "backwards", it gets stuck at a weight of zero and never goes through it to the region of lower loss:        I don't understand why.  Shouldn't gradient descent easily follow the loss curve to the global minima?  Example code:  from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, ReLU from tensorflow import keras import numpy as np import matplotlib.pyplot as plt  batch = 1000   def tests():     while True:         test = np.random.randn(batch)          # Generate ReLU test case         X = test         Y = test.copy()         Y[Y < 0] = 0          yield X, Y   model = Sequential([Dense(1, input_dim=1, activation=None, use_bias=False)]) model.add(ReLU()) model.set_weights([[[-10]]])  model.compile(loss='mean_squared_error', optimizer='sgd')   class LossHistory(keras.callbacks.Callback):     def on_train_begin(self, logs={}):         self.losses = []         self.weights = []         self.n = 0         self.n += 1      def on_epoch_end(self, batch, logs={}):         self.losses.append(logs.get('loss'))         w = model.get_weights()         self.weights.append([x.flatten()[0] for x in w])         self.n += 1   history = LossHistory()  model.fit_generator(tests(), steps_per_epoch=100, epochs=20,                     callbacks=[history])  fig, (ax1, ax2) = plt.subplots(2, 1, True, num='Learning')  ax1.set_title('ReLU learning ReLU') ax1.semilogy(history.losses) ax1.set_ylabel('Loss') ax1.grid(True, which="both") ax1.margins(0, 0.05)  ax2.plot(history.weights) ax2.set_ylabel('Weight') ax2.set_xlabel('Epoch') ax2.grid(True, which="both") ax2.margins(0, 0.05)  plt.tight_layout() plt.show()     Similar things happen if I add bias: 2D loss function is smooth and simple, but if the relu starts upside down, it circles around and gets stuck (red starting points), and doesn't follow the gradient down to the minimum (like it does for blue starting points):    Similar things happen if I add output weight and bias, too.  (It will flip left-to-right, or down-to-up, but not both.)


I have a client that from a business requirement requests to have 'advance search' as the default search item. The reason being they want to get as much information from the end user as possible. In some ways the advance search actually acts as a questionnaire. I haven't seen this approach being taken anywhere on the web. Has anyone out there come across this procedure before? There is a discussion going forward with the client advising a questionnaire form would be best suited to meet their needs -however they are very keen for the 'advance search' to have this functionality.


How can I work with file uploads during a Webdriver test?

This is a canonical question, intended to provide a comprehensive answer to many related questions  During the course of a Webdriver test, I want to upload files. However, this opens a native file picker, which Webdriver doesn't seem to support interacting with. How do I interact with it?


I have got the directory called Test and a few directories inside it. Both Test and the directories inside it have executable files. I'd like to print them with ls. I'd use this command.  ls -l `find Test/ -perm /u=x,g=x,o=x -type f`   Is this a good/right/quick command or not?  My solution is:  find Test/ -executable -type f -exec ls -l {} \;   and got the same result as warl0ck and pradeepchhetri offered.


Flip til you get heads; How is the event that you never get heads part of the sample space?

Experiment: flip a coin until you get Heads. I would like to understand better why $E=(T,T,T,....)$, the event where heads is never flipped, is part of the sample space.   Isn't the experiment going on forever unfinished in that case? Whereas if someone asked if $(T,T,T)$ were an element of the sample space, the answer would be no, because elements of the sample space must look like $(T,T,...,T, H)$ or  by exactly $E$.   To clarify, is $E$ an element of the sample space of this experiment (I claim it is). If so, can you explain why?  Thanks.


Black areas when rendering in Radeon 7870 GPU

Hello everyone, I have a problem with the GPU (msi radeon hd 7870 2gb oc edition), practically in some scenes the rendering with the gpu form some black parts, which are not shown if I render the same scene with an xfx rx 480. What could be the problem?  I installing Blender version 2.77 as user Mike Pan said, and the problem is solved.


Find the limit $\displaystyle \lim_{x \to 0^+} (\sin x)^\frac1{\ln x}$

Find the limit $\displaystyle \lim_{x \to0^+} (\sin x)^{\large {\frac1 {\ln x}}}$   Here's what I did:  $\begin{align}\lim_{x \to 0^+} (\sin x)^{\large \frac1{\ln x}}&(1) =\lim e^{\large {\ln( { (\sin x)^\frac1{\ln x}})}} \ \ \\  &(2) = \lim_{x \to0^+} e^{\large {{\frac1{\ln x}}\ln( { (\sin x)})}}  \ \  \\ & (3)= \lim_{x \to0^+} e^{\large {\frac{\ln\sin x}{\ln x}}}   \ \  \\ &(4) = \lim_{x \to0^+} e^{\large {\ln\frac{ \sin x}{ x}}} \ \\ & (5)= \lim_{x \to0^+} \frac{ \sin x}{ x} = 1 \end{align}$  But I know this is wrong because when I plot it it goes to e.   I am now stuck on step 3.  Any advice please ?  PS: we can't use derivation or integration, nor Taylor's theorem because we haven't covered that.


I'd like to render a table with different objects on it, one by one. The table with a book, then with a cup of coffee, and so on... My current solution is to have all objects visible but out of camera view, and I create keyframes for each object positioned in view on the table. Then I render the whole animation as individual images and it works well, but is very inefficient. Is it possible to have all of those objects in a collection and animate it so each frame automatically shows a different object, through linking to an empty as placeholder on the table, a modifier or another method (except scripting)? Follow up question: Can something similar be done to apply different textures to the table? Any help, even just a nudge in the right direction, will be appreciated. Michael


If I reinstall ubuntu, will i be able to change my root password?

i forgot my old one. can't access GRUB because the piece of Ubuntu i use is the terminal, i don't have any interface.


We know that we can operate addition$(+)$ , subtraction$(-)$ , multiplication$(×)$ on a matrix. But why we can't operate division $(÷)$ on a matrix?...  Sorry for my bad english


$$\sqrt{x + \sqrt{x + \sqrt{x + \cdots}}}= 5$$


How to write $\delta (f(x))$ in terms of $\delta (x)$?

I've seen this identity in my electrodynamics book: $$\delta (f(x))=\sum_i{ \frac{1}{|{df\over dx}(x_i)|}\delta (x-x_i)}$$  Where $x_i$ shows the $i$th zero of $f(x)$. How can I prove it? I've tried the integral definition of delta function, but doesn't work.


How can I create a @pattern regexp for pp-gfg76482_8498680983?  Thanks in advance.


What's the input space and auxiliary space in this code block?

public static void main(String[] args){     int n;     Scanner in = new Scanner(System.in);     n=in.nextInt();     int[] arr = new int[n];     for(int i=0; i<=n; i++){         arr[i]=i*2;     } }  I'm just confused about what is the input in space or time complexity.


How can we maintain check box state in when we move to next page in pageblock table?

We have a code with next and previous button in the VF page.When a user click on the check box and then click on next or previous buttons the state of checkbox on the records should be maintained?  What would be the best possible approach for that to deal it . To go with Apex functions or To go with javascript functionality to implement this. Thanks In Advance !!


Conflict between final field, constructor and onCreate in Android Activity

First, I've been looking for the answer all over, but didn't find anything that can explain how to resolve my case.  I want to declare a few final fields in my Android FragmentActivity and initialize them later (I need onCreate to be executed first to get the needed data) I know that I can initialize final fields only in the constructor, however, it is called before onCreate when nothing else is yet initialized, therefore the application crashes with java.lang.NullPointerException.  My code:  public class MyActivity extends FragmentActivity {     private final File mPhotosDir;     private final ConstraintLayout mConstraintLayout;     ...     // This is the constructor of MyActivity activity     public MyActivity() {         this.mPhotosDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);         this.mConstraintLayout = findViewById(R.id.myActivityConstraintLayout);     }     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         ...     }   Is it even possible to declare final fields in an activity and initialize them later? Shall I give up the final declaration?


How to apply single material but to different and multiple objects?

Probably a basic one, do you know how to apply once single material but on different objects?  1 material but multiple objects.  Thank you, Waqas


Error when getting values from the JTable

I coded for getting values from the JTable and get that value for do calculations.  //getting user input for selling qty          String Qty=JOptionPane.showInputDialog("Insert Selling Quantity :");         double sellingqty=Double.parseDouble(Qty);        //getting user input for specific item discount         String discount = JOptionPane.showInputDialog("Insert Item Discount");         double idiscount=Double.parseDouble(discount);  for(j=0;j<100;j++){            double icost =(double) tableSale.getModel().getValueAt(j,2);          System.out.print(icost);        //calculating Gross Total           double grosstotal = (sellingqty*icost)-idiscount;          System.out.println(grosstotal);          for(i=0;i<100;i++){          //setting qty input value to table sale           tableSale.getModel().setValueAt(sellingqty,i, 3);         //setting input value to table sale           tableSale.getModel().setValueAt(idiscount,i, 4);          //setting grosstotal value to table sale         tableSale.getModel().setValueAt(grosstotal,i, 5);          }         }   When I execute the code shows a null pointer exception.  java.lang.NullPointerException at  com.bit.project.Newsale.add_btnActionPerformed(Newsale.java: 710) at  com.bit.project.Newsale.access$800(Newsale.java: 37) at  com.bit.project.Newsale$12.actionPerformed(Newsale.java: 469) at  javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java: 2022) at  javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java: 2022) at  javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java: 2346)   This line shows the Null Pointer Exception   double icost =(double) tableSale.getModel().getValueAt(j,3);    What is the error here?


This is happening on multiple projects now... I create a cube, assign materials and when I click on render > render image it shows all cubes as spheres instead. This happens with both Cycles render and Blender render.     I am very new to blender. Is there something I am doing that would cause this? Any help is appreciated!


If a Parallelism Exchange Event deadlock is victim-less, is it a problem?

We're seeing a lot of these  in our Production environment (SQL Server 2012 SP2 - yes...I know...), however when looking at the Deadlock XML that has been captured via Extended Events, the victim-list is empty.  <victim-list />   The deadlocking appears to be between 4 threads, two with the WaitType="e_waitPipeNewRow" and two with the WaitType="e_waitPipeGetRow".   <resource-list>   <exchangeEvent id="Pipe13904cb620" WaitType="e_waitPipeNewRow" nodeId="19">    <owner-list>     <owner id="process4649868" />    </owner-list>    <waiter-list>     <waiter id="process40eb498" />    </waiter-list>   </exchangeEvent>   <exchangeEvent id="Pipe30670d480" WaitType="e_waitPipeNewRow" nodeId="21">    <owner-list>     <owner id="process368ecf8" />    </owner-list>    <waiter-list>     <waiter id="process46a0cf8" />    </waiter-list>   </exchangeEvent>   <exchangeEvent id="Pipe13904cb4e0" WaitType="e_waitPipeGetRow" nodeId="19">    <owner-list>     <owner id="process40eb498" />    </owner-list>    <waiter-list>     <waiter id="process368ecf8" />    </waiter-list>   </exchangeEvent>   <exchangeEvent id="Pipe4a106e060" WaitType="e_waitPipeGetRow" nodeId="21">    <owner-list>     <owner id="process46a0cf8" />    </owner-list>    <waiter-list>     <waiter id="process4649868" />    </waiter-list>   </exchangeEvent>  </resource-list>   So:   The Victim List is empty  The application running the query does not error and completes the query As far as we can see, there is no obvious issue, other than that the graph is captured    Therefore, is this anything to worry about other than noise?  Edit: Thanks to Paul's answer, I can see where the issue likely occurs and appears to resolve itself with the tempdb spill.


how to get the symbol like \neq with straight line crossed

how to get the symbol like this  ,i had tried \textdoublebarpipe, but its works in text mode only, but not in equations math mode, not working inside $ $ and align    need code for this symbol,


I have 20k reputation on Puzzling. This answer does not meet the standards of our site, and I wanted to vote to delete. Why can't I?


I have a SSD for boot up ands its fast. I do not want the computer waiting for me to load all of my programs and services. I am the only user on my account. Is there a way to require the password after login. Alternatively if there is no proper way of doing it, I have found that:  Lock Workstation:  Rundll32.exe User32.dll,LockWorkStation   could maybe also be used. Is there a proper way of doing it in the windows. If not how can I have that command up there set to a startup script. If I were to go into Lock mode after login would in windows continue to run the start up procedures


While | is the encap character for makeindex, then if I want to use | in \index, e.g. \index{$|F|$}, how to escape it?  When I escape it with double quote, i.e. \index{$"|F"|$}, and use hyperref, the *.idx file will looks like  \indexentry{$"|hyperindexformat{\F"}}{1}   which results an error.


Insert superscript character in a table by selecting it from another table MySQL

I want to select a string containing a micro character (µ) and a superscript from a table and insert it into another table. Both the source field and the destination field are formatted in utf8mb4_unicode_ci (not the whole table, just the fields)  +-----------------+-------------+------+-----+---------+-------+ | Field           | Type        | Null | Key | Default | Extra | +-----------------+-------------+------+-----+---------+-------+ | type_name       | varchar(30) | NO   | PRI | NULL    |       | | unit_of_measure | varchar(5)  | NO   |     | NULL    |       | +-----------------+-------------+------+-----+---------+-------+   I tried using this command  INSERT INTO dest_table (type, unit_of_measure) SELECT DISTINCT type, unit_of_measure FROM source_table;   to just insert them by selecting them, but: a SELECT from the source table gives me the correct result  SELECT unit_of_measure FROM source_table LIMIT 1   Result: µg/m³  And a select from the destination table gives me a "stripped"(?) result:  SELECT unit_of_measure FROM dest_table LIMIT 1   Result: µg/m (expected: µg/m³) OR a result with an unknown character: Result: ng/m� (expected: ng/m³)   is the dataset I'm using, the column I need is the "UnitaMisura" one. I'm using PDO with a local MySQL connection.  Any help is appreciated.  Edit 1:  SELECT DISTINCT unit_of_measure, HEX(unit_of_measure) FROM source_table   Result: C382C2B5672F6DC382C2B3 (µg/m³)  SELECT DISTINCT unit_of_measure, HEX(unit_of_measure) FROM dest_table   Result: C382C2B5672F6D (µg/m)  FIX: I had to set the PDO connection charset, by adding charset=utf8mb4 at the end of the connection string. Example: new PDO("mysql:host=$db_host;dbname=$db_name;charset=utf8mb4", $db_user, $db_password)


Finder search doesn't work properly after Yosemite update

Ever since I upgraded to Yosemite, search no longer works properly in Finder. Spotlight works fine but Finder search just gives me a blank window with a spinning ball.  I've tried reindexing and I've also tried deleting Spotlight's .plist file. I restart my MacBook Pro after doing either. Finder search will work for one or two queries and stop again. I don't know what else I can do.


Can electric field lines form close loops in EM?

I was reading on wikipedia about  In the Precise definition part it says it can form close loops  but Kelvin–Stokes theorem it's written it  cannot be closed loops. (My teacher too told me that they never form close loops) Please point out Where I'm being wrong? I am asking about when can they form close loops? That question states Why can't electrostatic field lines form closed loops?


Visa requirements for Macedonia for Schengen-zone Permanent Residents?

I'm an Indian studying in Germany. I have a residence permit for Germany with which I can travel in the schengen area. Macedonia is not in the schengen area. However people with schengen visa can enter Macedonia for 15 days without visa. Is my German residence permit enough or do I need a seperate visa for Macedonia?