nested iterator, 2 iterations in one model, collect values, cell statistics, batch processing dialogue box

(ArcGIS10, SP2, ArcInfo)  This is my model, and it works perfectly, but...    I do have a large amount of data to process. The interim output files (from raster calculator, collect value) would reach the capacity of my hard drive. Therefore, I cut my input shape file into tiles and want to run it on all tiles and just overwrite the interim output files which are create for each feature.   However, as we all know, the model builder does not allow using two iterators in one model.  I used to do this with the batch processing function ().   However, the cell statistics tool does not allow me edit the output location within the batch dialogue box (after right clicking on the model, batch).     The fields are greyed in the table and I cannot add further output locations. Thus, I cannot run the model on several input files.   I guess it is a buck of the combination of cell statistics and collect values. Only the combination of those two tools resulted in this problem.  Potential solution for my problem are:  • Fixing the problem with the output location within the batch dialogue box.  • Substituting the combination of cell statistics and collect values by anything else resulting in the same outcome.  • Using any other possible way to run a feature iterator on several feature classes (something like a nested iterator)  Any suggestions?


How to output the directory structure to Json format

I have been using 'find' to output the directory structure from the root down and I don’t mind that it takes a while. My problem is that I want to cut down on the redundant info of repeating every files path, I want to output the files in JSON format.  I need to be able to run this from the termin, i can not be creating python files etc on the box.  For example, this:  root |_ fruits |___ apple |______images |________ apple001.jpg |________ apple002.jpg |_ animals |___ cat |______images |________ cat001.jpg |________ cat002.jpg   Would become something like....  {"data" : [   {     "type": "folder",     "name": "animals",     "path": "/animals",     "children": [       {         "type": "folder",         "name": "cat",         "path": "/animals/cat",         "children": [           {             "type": "folder",             "name": "images",             "path": "/animals/cat/images",             "children": [               {                 "type": "file",                 "name": "cat001.jpg",                 "path": "/animals/cat/images/cat001.jpg"               }, {                 "type": "file",                 "name": "cat001.jpg",                 "path": "/animals/cat/images/cat002.jpg"               }             ]           }         ]       }     ]   } ]}


I plan to travel to London in June and my Visa expires in August. Is it ok to travel? Or do I need to have atleast 6 months' validity before the Visa expires?


Proof that Newton Raphson method has quadratic convergence

I've googled this and I've seen different types of proofs but they all use notations that I don't understand.  But first of all, I need to understand what quadratic convergence means, I read that it has to   do with the speed of an algorithm. Is this correct?  Ok, so I know that this is the Newton-Raphson method:  $$x_{n+1}=x_n-\dfrac{f(x_n)}{f'(x_n)}$$  How do I prove that it converges?  Thanks.


How can I open a command prompt in current folder with a keyboard shortcut?

How can I open a command prompt in current folder with a keyboard shortcut in Windows 7? Is there any way to implement this? I think Autohotkey could do this, but don't know how.


Fundamental Group of complement of Integers

Let $X=\mathbb{R}\times (-1,1)-\mathbb{Z}\times \{0\}$.  I want to compute the fundamental group of that space.  I would be tempted to do some division like the following to apply Van Kampen, but to do it all the sets must intersect in the basepoint of $\pi(X,x)$, so I can't really do it.   If I incorrectly use Van Kampen, I will get to the correct result that it's free in a countable number of generators, though.  Is there any other way to do that, I mean, with the basic theory of Hatcher's of Massey's book (It's an exercise from Massey's book)?


When trying to export and import an 58G database yields the following error:     ERROR 1071 (42000): Specified key was too long; max key length is 1000   bytes   Dump created using mysqldump -q --opt and import is just cat bigfile.sql|mysql ...  MySQL versions:   Import: 5.1.49-1ubuntu8.1 Export: 5.1.41-3ubuntu12.10-log (Ubuntu)


Many modern big budget films such as ,  and even some TV shows such as  are still shot on film.  Directors such as Christopher Nolan and Quentin Tarantino have stated that they oppose digital cinematography due to the inferior image quality. Tarantino even saying that he thinks digital cinema is the  of the film industry.  What are the benefits of shooting on film? Pre-2010 it seems film may have had a technical edge, but with the advancing technology I cannot see any way in which film is still superior:  Modern digital cameras are smaller, lighter, cheaper, more flexible and offer a much higher dynamic range, frame rate and a similar or better resolution than their film counterparts. In addition, most films are edited and projected digitally at 2K or 4K which would remove any additional resolution you may gain from film. Even if a "film look" is desired it can be created in post production from digital footage and can look indistinguishable from real film.  Why do many directors and cinematographers still prefer film? I cannot find anything other than vague mentions of "better resolution" or "it just looks better".


I am taking my laptop for repair. How do I secure it as much as possible?

Is it enough to just create a very strong password for Ubuntu login or I need to do something else? I just want to make sure they will not be able to access my files / logins etc. while repairing my screen.


unindent does not match any outer indentation level python3.6.4

import os import cv2 import numpy as np from PIL import Image  recognizer=cv2.face.LBPHFaceRecognizer_create(); path='dataSet'  def getImagesWithID(path):     imagePaths=[os.path.join(path,f) for f in os.listdir(path)]  print imagePaths   getImageWithID(path)   this code is not working showing the problem related to title


I washed my bike few days ago with soapy water. I didn't directly wash the brakes, but I assume I got some soapy water on them.  Now my disc brakes do not work. I can see that cable is tight enough, and the pressure is there, but it does not stop.  The front brakes are better after 1 day of driving (but still are weaker than before). The rear breaks are pretty much useless.    Details about the bike & brakes:  Bike: Cyclocross (bought last year)  Brakeset: Tektro Lyra mechanical cable actuated disc brake with 160mm wave rotors and Shimano ST-2300 STI brake levers


What steps should I take to prevent these apparent hacking attempts?

I'm running an Ubuntu 20.04 server, and when I look at the logs, I constantly see strings of entries like this: Jan 14 23:04:51 dell-server sshd[578861]: Invalid user carlos from 14.232.160.213 port 32832 Jan 14 23:04:51 dell-server sshd[578861]: pam_unix(sshd:auth): check pass; user unknown Jan 14 23:04:51 dell-server sshd[578861]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=14.232.160.213 Jan 14 23:04:52 dell-server sshd[578861]: Failed password for invalid user carlos from 14.232.160.213 port 32832 ssh2 Jan 14 23:04:54 dell-server sshd[578861]: Received disconnect from 14.232.160.213 port 32832:11: Bye Bye [preauth] Jan 14 23:04:54 dell-server sshd[578861]: Disconnected from invalid user carlos 14.232.160.213 port 32832 [preauth] Jan 14 23:05:09 dell-server sshd[579042]: Invalid user admin from 41.221.168.167 port 37492 Jan 14 23:05:09 dell-server sshd[579042]: pam_unix(sshd:auth): check pass; user unknown Jan 14 23:05:09 dell-server sshd[579042]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=41.221.168.167 Jan 14 23:05:11 dell-server sshd[579042]: Failed password for invalid user admin from 41.221.168.167 port 37492 ssh2 Jan 14 23:05:11 dell-server sshd[579042]: Received disconnect from 41.221.168.167 port 37492:11: Bye Bye [preauth] Jan 14 23:05:11 dell-server sshd[579042]: Disconnected from invalid user admin 41.221.168.167 port 37492 [preauth]  It's always for random usernames that don't even exist on my system. Is someone trying to brute force hack into my server via SSH? Would anyone have suggestions on how to mitigate these attacks and automatically ban the IP addresses that are being used?


Formatting string connected to for loop from a list (python)

I want to display a single string connected to values from a list displayed using a for loop  For example I have this:  nums = [1,2,3,4,5] print("Numbers: ") for i in nums:     print(i)   but I would like it to be displayed with the 1 starting after "Numbers:"  e.g  Numbers: 123...  How would I format the code to enable this to happen?


Do grapple/shove/disarm attempts count as attacks for the Redemption paladin's Emissary of Redemption feature?

The 's 20th-level Emissary of Redemption feature (XGtE, p. 39) gives you resistance to all damage dealt by other creatures and automatically does radiant damage to creatures that attack you. However, it states:     If you attack a creature, cast a spell on it, or deal damage to it by any means but this feature, neither benefit works against that creature until you finish a long rest.   Does attempting to grapple, shove, or disarm a creature without actually damaging it count as attacking it, and therefore cancel the effect of Emissary of Redemption where that creature is concerned?


This is a question that has come up many times but I do not seem to be able to get this to work using any of the suggestions that have been made so I would REALLY appreciate any help.   I am trying to get LaTeX to find my style files in Windows 7. I am using TeXMaker.   I create a new folder, for example C:\localtexmf\tex\latex\Macros  This then satisfies the TDS compliant directory requirements.   I go into MikTeX settings -> Roots and add this folder.  I then click Refresh FNDB in the General settings.  However, when I try to compile I still receive the error that the cls files cannot be found. It seems that this procedure has worked for many other people but I just cannot find what I could be doing wrong here.


Division algorithm for polynomials in R[x], where R is a commutative ring with unity.

Is there a division algorithm for polynomials in R[x], where R is a commutative ring with unity?    All the algebra books I read mention division algorithm for polynomials in F[x], where F is a field. Since the leading coefficient of a non zero polynomial in R[x] is not necessarily invertible, I find it difficult to proceed the same way we do for polynomials in F[x].  Can I get some help?


Show that for any integer a and prime p, $(a+1)^p \equiv a^p+ 1 \pmod{p}$.

I believe that this may require the use of Fermat's Little Theorem. I rewrote it as $(a+1)^p - a^p \equiv 1 \pmod{p}$ because the right-hand side looks similar to Fermat's Little Theorem, but I was unable to figure out how I can get the left-hand side to become $a^{(p-1)}$.


Way to open Applications without using Dash (w/out knowing name)?

In Gnome2 there was a listing of applications installed. Since Gnome3 and Unity, you have to search for the application you want. You can use Run Command but you have to know the name of the app you want to open.  Are there any other ways to open applications besides Dash-Applications-Lens and Run Command?


I would like to use subscripts in text and display it non-italic. When using the $_{} the text is rendered italic. Can I change that behavior?  How to achieve that (preferably as a default in TeXStudio).  Thanks!


I am trying to find all questions that meet certain criteria and contain Matlab in the title. My original attempt was this:  title:"matlab" -[matlab*] is:question closed:no answers:0   However, it turns out this does not contain all results, for example not the ones containing matlab: (with colon). After this I tried various things including:  title:"matlab*" -[matlab*] is:question closed:no answers:0   But the only way to find this result was by using a colon in the search query. As a result I don't know whether I am missing other results, for example with matlab- or MatlabToolbox in the title.    So my question is: Can we get all results containing a certain word in the title?    I have searched around for a while but have found mostly questions about using wildcards in tags. The closest I have come is this:   However, this question is different as it recommends "keyword" to find "keyword{punctuation}", whilst I would expect it to work at least for "keyword{wildcard}"


Is there a specific reason for having a very short window for passengers to get to the boarding gate before closing it?

I am not a frequent traveler but it's been like this with all the flights I have been on. Here is the most recent example:  Below is my boarding pass    As you can see Gate Closes at 20:20  Here is the departures board at 18:32, clearly it says that they will announce the boarding gate at 20:10  ?!    I was hoping they will do that earlier but at 19:41 it's still the same    In fact they announced it at 20:11 but since I was freaking out and had to leg it to the gate I didn't have the time to take a photo.  You might think 9 minutes is enough, well below are the times required to reach the gates from the closest place to them     And that's for a healthy young person, no way my grandmother could be able to be at the gates within 9 minutes.  Is there a specific reason? it's not like they allocate the gate dynamically! The staff must have known about the gate hours ago as I don't expect the pilot to drive the airplane from the garage to the gate within 9 minutes?


Prove or disprove: for all graphs $G = (V, E)$, if $|E| = |V| - 1$ then $G$ is a tree.

Relevant Fact We know that for all graphs $G = (V, E)$, if $G$ is a tree then $|E| = |V| - 1$.  Definitions A tree is a graph that is connected and has no cycles. A cycle is like a path, except it starts and ends at the same vertex.  Will soon update with what I have so far. For time being, feel free to add anything.  Would mention that this question is unique in that it does not assume the graph is connected. Thanks everyone!


What Is The Difference Between Type t() and Type t?

class myClass {};   Simple question, what is the difference between myClass t(); and myClass t;? If any?  Thanks.


How to truncate text lines to N characters maximum?

Given a text file, or the output of a command, how can I truncate it so that every line longer than N characters (usually N=80 in a terminal) gets shorten to N characters maximum?


Client opens AJAX connection and waits for server to send an update

I have a Java server (no external libraries and does not use sun.net.httpserver package)  I would like to have the client open a connection with the server and wait until the server sends an update. The problem with this is that certain browsers (for example IE11) will use the AJAX socket to send a new request (for example GET / HTTP/1.1) and the problem with that is that it causes my server to crash. I could close the socket upon closing the webpage but then the client would have to open a new socket to send another HTTP request.  Is there an efficient way of doing this?  Edit: Another question... Is there a way to listen for changes on a socket's input stream using Java?


$p$ is a prime number, $\, n\ge1 \, $and$ \, n \nmid p^n$.If $a \in GF(p)$, proof $x^{p^n}-x-a$ is reducible in $GF(p)$

I know that in a field $F$ with character $p$($p$ is a prime number), we have  $x^{p^n}-x-a \,(a \in F)$ is reducible \iff $x^{p^n}-x-a$ has root in $F$  Then the question is to prove $x^{p^n}-x-a \, \equiv \, 0 \, $(mod $p$) has solution.


I have a NAS (mybook world white light) in my living room where all my music and stuff is stored. I've mounted the music folder of the nas in the local music folder of my home directory on my desktop computer.  My fstab entry looks like this:  //192.168.2.222/Public/Shared\040Music/ /home/simon/Musik/ cifs credentials=/home/simon/.smbcredentials,defaults 0 0   A few minutes ago, I moved my home directory on my local desktop computer with the help of .  At first everything looks great, but then I realised that my music folder was empty. I think I deleted everything in this step during the tutorial:  umount /home rm -rf /home/*    Because the music folder was still mounted to /home/simon/Musik :/  Is there a possibility to recover something of the data? As I realized what happened, I shut down the NAS.


If $G$ is a group and $G'$ is generated by $\{xyx^{-1}y^{-1}|x,y\in G\}$, then $G'\trianglelefteq G$ and  $G/G'$ is Abelian.  At first, I thought this is easy because I thought $g[x,y]g^{-1}=[gxg^{-1},gyg^{-1}]$. But it was a mistake. I could not prove that it is also subgroup of G and $G/G'$ is abelian. I need help.


apt-get update very slow, stuck at "Waiting for headers"

I have looked at similar questions:      However neither one of them answer my problem.  I am running 12.04 AMD64 and have recently started getting an issue that when I update my repos from my connection at home through a terminal, using sudo apt-get update, it takes forever (literally after 2 hours it was at 28%), however when I run from a different location it takes less than 5 minutes to complete.  I have attempted changing which mirror I use but that does not solve the issue. I have also cut down what is in my sources list but this also makes no difference. There are no faults on my ADSL line as I have already contacted my ISP to check this. It also makes no difference if I use a WiFi or network cable connection.  What could be my issue?    A speed test (www.speedtest.net) comes out at about 0.9 Mbps down and 0.42 Mbps up (which is a shade under the advertised line speed), I reside in South Africa and use the UCT LEG server. But I have also tried the other mirrors available in SA....none of them make a difference.


AJAX function does not work on pagination

I am using laravel 4.2 for my project. I have used following code in the head section of my view to update the availability of courses for a given semester. My view outputs the result in several pages showing course code, title, semester, lecturer and availability in several table columns. I want to let the user to select an option from a drop down menu to change the availability (offered or Not Offered) and when an option is selected by the user, I want to reload the content of the page by showing the selected option (offered or Not Offered) in one of the table columns.   $(document).ready(function() {   $('.change_offStatus').on('change', function() {    var status = $(this).val(); //name is the selected offering status option       alert(status);    if (status == "Change") {     }    else {       var code = this.name; //this is the course code       alert(code);     $.ajax({     url: "{{ URL::Route('ChangeOfferingStatus')}}",     data: {       new_status: status,       c_code: code     },     dataType: 'json',     type: 'POST',     success: function(res) {       if (res == '1') {         alert("Error in Changing the Offering Status!");       }       else {         document.location.reload();       }      }     });    }  });   });  In the content section, I have the following code to have a drop down menu for the user to select an option (offered or Not Offered) and once an option is chosen by the user, I want to reload the page showing the selected option. However, the page successfully reloads only in the first page by showing the selected option and not in the subsequent pages. I searched extensively for an answer but the none of them have helped to to change the above code to make it reload the page to display the selected option in pages other than the first page.      <td>       @if($offering_status['status']==1)       Offered     @else       Not Offered     @endif    <br>      <select name="{{$course_detail->code}}"  id='change_offStatus'           class="change_offStatus" type="text">        <option>Change</option>       @if($offering_status['status']==1)        echo "<option>Not Offered</option>";       @else        echo "<option>Offered</option>";       @endif               </select>    </td>   How to change the above code to make it work with all the pages?


Getting parent process / Restarting a process C#

I have a parent program that calls a worker console app when and update is found to update the files, this application gets the process ID from the parent via arguments and then calls WaitForExit(). What I wish to know is what would be the best way of then restarting that process, would simply calling Proc.Start() be the best way of doing this? Ex:  static void Main(string[] args) {     if (args.Length == 2)     {         int ParentID = Convert.ToInt16(args[1]);         Process ParentProc = Process.GetProcessById(ParentID);         ParentProc.WaitForExit();         Console.WriteLine(UpdateHandler.GetUpdates(             Path.GetDirectoryName(ParentProc.MainModule.FileName), args[0]));         ParentProc.Start();     }     else         Console.WriteLine("Error: Invalid number of arguments."); }   Or should I create a new process to launch it (I would assume using ParentProc.MainModule.FileName)  I would also like to know if there is a managed way to get the parent process not via arguments?  Thanks :)


Why does the expression X["Y"] behave as "Y"[X]?

Consider the below syntax :      #include <iostream> int main() {   std::cout << 1["ABC"] << std::endl; }   The program outputs B which leads me to believe that it behaves as "ABC"[1]. Is that possible, what is the reason behind this ?


Any good Cosmology book recommendations (undergrad->postgrad level)

I am looking to study cosmology at graduate level. Does any one recommend any introductory and comprehensive books for cosmology principles? I am interested in the maths too but I really want a book that introduces the principles and concepts first, to then dig deeper with the maths later.


Read/Edit Textedit icloud files on an iPad

Does any one of you know a solution to either read or edit on an iPad files stored with Textedit on iCloud ?


Say I open accounts on Bank A and Bank B. I deposit $20 in Back A. I then initiate a wire transfer to my account in Bank B. I drive over to Bank B and withdraw $20.   Bank A now has $20 extra and Bank B how has $20 less. (In physical cash) When and how does the physical cash get transfered?


My system has Dual OS installed in hp laptop , Windows 10 and Ubuntu 20.04 LTS have not been a problem for a long time .Now Ubuntu does not boot, Windows loads automatically, why such a problem.


Lighting specific objects in cycles with volumetric atmosphere

I'm trying to set up a night scene, and having trouble getting the lighting right. Here's my first stab at it:    I like the lighting on the tree, but the cloak on the left is too dark.  I wondered about splitting the scene into two render layers, kind of like this:     I thought I could adjust the levels of the cloak in the compositor, but I can't figure out how to recombine the layers. Similarly, I tried adding extra lights to the cloak layer, but that interferes with the volumetric effect in an undesirable way.  Is there a good way to light the cloak, without affecting the rest of the scene?


Should I install ubuntu on a virtual machine?

Should I choose to install ubuntu on a virtual machine? Because I am using windows 10


Baking flour and sour cream -US /UK terms

What is the UK equivalent of US 'baking flour' and does the term 'sour cream' describe the same product in both countries?


HP Photosmart C4795 printer ink cartriges clogged

I have not used my HP Photosmart C4795 printer in some time and now ink does not come through.  Could the ink cartridges be clogged?  Can this be corrected? Ink level is still showing within normal limits.


Determining the Orbits/Orbit Space of $O(3)$ on Real 3 by 3 Traceless Symmetric Matrices

Let $O(n)$ be the set of $3 \times 3$ orthogonal matrices, and $S$ be the set of traceless real symmetric $3 \times 3$ matrices.  Now  $O(n)$ will act on $S$ by conjugation. Note that by the spectral theorem $ \forall A \in S$ in the orbit of $A$ there is a diagonal matrix $D=diag(\lambda_1, \lambda_2,\lambda_3)$ with $\lambda_1\le\lambda_2 \le\lambda_3 $.  Determine the all the orbits of the action & the orbit space of the action.  What I've done:  Since all elements of $S$ are diagonlizable that the orbit of any element should be the orbit of its' diagonalized form because $\forall A \in S,   \exists P \in O(3)$ st  $PAP^t=D $ with $D$ a diagonal matrix and moreover for any other  $Q\in O(3)$ we get $QDQ^t=QPAP^tQ^t=(QP)A(QP)^t=RAR^t$.   And so would that imply the orbit space is just the set of traceless diagonal matrices as $tr(QDQ^t)=tr(DQ^tQ)=tr(Q)$ (cyclic property of trace) and $Q\in S$.  Any help is appreciated.


Let topological space $X$ and $f:X \to C$. Show that the space $X_{f}=\{g \in C(X) \mid \sup|g-f|<\infty\}$ is a complete metric space.

Let topological space $X$ and $f:X \to C$. Show that the space   $$X_{f}=\{g \in C(X) \mid \sup|g-f|<\infty\}$$  is a complete metric space with distance function   $$d(g_1,g_2)=\sup_{x \in X}|g_1(x)-g_2(x)|.$$  Can anyone help me to show this?


We are looking at moving a some documents into a SharePoint 2010 document library.  Is there any way to set the starting version number for each document?


What's a good, free serial port monitor for reverse-engineering?

I'm reverse-engineering a serial protocol and getting frustrated by bad tools.  Does anyone know of a good, free tool for logging data to/from serial ports on Windows?  Requirements:   Must be free Must not take control of the port (i.e. must hook the file APIs or the kernel rather than trying to open the device) Must have some sort of filtering features Writes either human-readable or binary logs, preferably in an easy to parse format   Any ideas?  Portmon works, but its logs are difficult to work with and its filters are effectively useless; I've also tried a few commercial tools and nothing seems to fit the bill.


Duplicate / Similar content across many articles

So I am building my website up, so far so good, only 2 categories and about 40 articles. Each category is different and several of the articles in each category are reviews.  My question is this...  I have 500 words of unique content on each review, and then I have around 300+ words of the exact same content across each review (different category different similar content)  The 300 words of similar content is things like..     Product contains eggs.      product contains milk      product doesn't have support      product company isn't active on social media.      product doesn't have email support.   Things like this, depending on the product and depending on how deep I dive into the reviews they range from 300+ words.  Is it okay to have these reviews with this point back to my category landing page? I mean they're ranking for separate products not the main keyword as my category landing page. Should I rework my strategy and just take out that similar content?


I was reading about microcontroller interrupts and how they work, but I can't figure out how the context switch really happens. Can someone please explain it to me in more detail?


Software Updater - Ubuntu 18.04. How to prevent from update anything

I am new to Ubuntu.  I have installed Ubuntu for my parents desktop. They have very basic knowledge about Computer. They use it for Skype Only.  We are using it from last 1 year. 17.10 to 18.04.1 what i observed is, system is popping up some updates to install in some other days. which is difficult for my parents to proceed further.  We are very much satisfied with the 18.04.1 up to date, i have downloaded latest iso from daily builds yesterday.  Question: I want to stick with this software as it is installed, dont want further updates anymore until i visit my parents house in 6months or 1year.  i thought this would help, so i un tick like below.       also i would like to know, which commands in terminal will update the OS, so that i will not run them. I generally run  sudo apt-get update sudo apt-get upgrade  Please let me know the terminal commands which are equivalent to the GUI "Software Updater" so that i will keep away from those commands.


Android EditText.getText() on null pointer exception

I am having an issue that I can't work out. Another set of eyes on it would be handy. I have already looked at this question  and , I have checked to make sure I am doing as they say and I believe I am as the text input exists in the xml with the correct id, and I can see the declaration of the object, and there is no spelling mistake. I even get the smart popups giving me options when I place the .  I have checked over my code and it seems right to me. I am creating the variable and passing it an element that exists on the view it is referencing. Below is my code. As you can see I am creating an edit text object that has the value of the text input element -- that line seems to run, then it errors on the next line saying that getText() cannot be called on a null object reference. I am entering text before pressing the click so it should not be null. The click is happening in a fragment; I don't see that being the issue but I could be wrong.  @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {     // Inflate the layout for this fragment     final View view = inflater.inflate(R.layout.fragment_ping, container, false);     Button pingButton = (Button) view.findViewById(R.id.pingButton);     pingButton.setOnClickListener(this);      return view; }  public void onClick(View v) {     switch(v.getId()) {         case R.id.pingButton:             EditText text = (EditText) v.findViewById(R.id.editText);             String value = text.getText().toString();             String s = ping(value);             TextView result = (TextView) v.findViewById(R.id.textView);             result.setText(s);             break;     } }   I am at a bit of a loss with this now. I can't see why it is happening. What can I do to resolve this?  Traceback:  01-05 12:35:49.323 10966-10966/uk.aperture.pinger E/AndroidRuntime: FATAL EXCEPTION: main 01-05 12:35:49.323 10966-10966/uk.aperture.pinger E/AndroidRuntime: Process: uk.aperture.pinger, PID: 10966 01-05 12:35:49.323 10966-10966/uk.aperture.pinger E/AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference 01-05 12:35:49.323 10966-10966/uk.aperture.pinger E/AndroidRuntime:     at uk.aperture.pinger.Ping.onClick(Ping.java:112) 01-05 12:35:49.323 10966-10966/uk.aperture.pinger E/AndroidRuntime:     at android.view.View.performClick(View.java:5198) 01-05 12:35:49.323 10966-10966/uk.aperture.pinger E/AndroidRuntime:     at android.view.View$PerformClick.run(View.java:21147) 01-05 12:35:49.323 10966-10966/uk.aperture.pinger E/AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:739) 01-05 12:35:49.323 10966-10966/uk.aperture.pinger E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:95) 01-05 12:35:49.323 10966-10966/uk.aperture.pinger E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:148) 01-05 12:35:49.323 10966-10966/uk.aperture.pinger E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5417) 01-05 12:35:49.323 10966-10966/uk.aperture.pinger E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method) 01-05 12:35:49.323 10966-10966/uk.aperture.pinger E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 01-05 12:35:49.323 10966-10966/uk.aperture.pinger E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)   EDIT:  For some reason this question has been marked as duplicate -- which it is not -- and then IMHO erroneously closed. This question is perfectly valid; you can see that I have both an assignment and accessing of the assignment. I believe I am passing the whole view through as shown in the extended code I posted.


If like charges repel, why doesn't a charge break itself apart?

How can it be that, if like charges repel, they don't repel themselves? In other words, why don't charges break apart?  About the possible duplicate: I want to know about charges in general, not just that of an electron. My response to :  Thank you very much for the extensive explanation. Unfortunately it's a bit above my level (I'm a first year electrical engineering bachelor student). This is how I understand it: If the charge is the sum of multiple separate charges, there has to be an external force that keeps this charges together. However we most often think of electrons and protons as point charges. In other words, we don't think of them as if they are made up from different (smaller) parts. But the idea of electrons and protons as point charges has its own problems. I didn't know that the electric field has a mass. From the formula, I understand that $m\propto \frac{1}{r}$. This would mean that $m\rightarrow \infty$ as $r \rightarrow 0$ (or $r = 0$), which of course is physically not possible. But there is a way to calculate the radius of an electron based on the mass, the speed of light and the constant of Planck. (Unfortunately I don't know why.) You can get around this by a technique called called renormalization, which causes the integral to converge. Unfortunately, I don't understand the rest of the answer due to my level in physics. Nevertheless I am grateful for you answer. It would be awesome if you could confirm or correct my understanding.


#include <iostream> #include <conio.h>  using namespace std; #define COUNT 10 void main() {  void print_NUM(void);  int add_values(void);  void print_out(int);  int SUM;   print_NUM();  SUM=add_values();  print_out(SUM); }  void print_NUM() {  cout << "This program adds " << COUNT << " integers\n";  cout << "Please enter " << COUNT << " integers to be added\n"; }  I can't run it because it said that the main should be int but this is a direct copy from my lecture notes and the only way to get the answer that I need is when I use int main instead. Why is that?


Is there any way to automatically download torrents?

I want to be able to set up downloads of weekly TV shows so the .torrent is automatically downloaded to my computer, ie. I just tell the program that I want (for example) Adventure Time to download as soon as it is available, and it takes care of the rest.  A quick google search showed me that  was an option for Ubuntu, but the website seems to have disappeared.  Does anybody know of a way to do this?


I'm trying to read floats from a text file into a 2d array. The file has the following structure:  1.1 3.3 2.4576 0.2432 1.3 235.234   I wish to read these lines into a 2d list, and end up with the following.  data = [[1.1, 3.3]         [2.4576, 0.2432]         ...         [1.3, 235.234]]   My code so far:  f = [] with open(str(i)) as fl:     for line in fl:         f.append(float(line))   Is there an easy and "nice" way to do it, without using a lot of help variables?  (Both the length of the file and the size of the array(x*x) are known)


What is the time span of the Prequel Trilogy and Original Trilogy?

Can someone provide a time table or timeline image of the Original Trilogy? I would appreciate if the Prequels timeline will be posted as well.   discussed about, as I understand, the time span or how long each movie happened, e.g. The Phantom Menace happened for less than one year, Attack of the Clones happened for about 13 days, so on and so forth..  What I would like to know is how long (whether canon, in-universe, out-universe, or other stuff) did the prequel trilogy and original trilogy take place, e.g. the Prequels (from The Phantom Menace to Revenge of the Sith) is XX years, then after XX years, Rogue One took place, then after XX years, the original trilogy took place.  All I know is that The Force Awakens happened 30 years after Return of the Jedi.  PS: It doesn't have to be in years. Months, or even days, are also measured in timelines.


How can you change the href for a hyperlink using jQuery?     <button>Alert the value of each list item</button>

If you click on me, I will disappear.

If you click on me, I will disappear.

   this is how  u  can chenge and even  edit the link work  for affiliate  link  edit on site remove jquery alart


Error "Unable to log in with your OpenID provider" on login via StackExchange

When I try to login to "" using my StackExchange account, I receive:  Unable to log in with your OpenID provider:  The openid.return_to parameter (...) does not match the actual URL (...) the request was made with   Steps to reproduce:   Open  Click "StackExchange" Click "log in" below "Your Communities" Click "Login with StackExchange" Enter my credentials (same account as this one)   After that, I get error message. If I repeat these steps, I receive the error message one step earlier (i.e. the error is then permanent, my credentials are no longer asked for).  This issue may have been caused by an invitation to Area51 which I received earlier. That one asked me to register, and I entered my email (the same one as used by StackExchange). However, instead of connecting that one with my StackExchange account, a new account was created:    Maybe that account is in conflict with my existing StackExchange account?


Find all real solutions of the equation:  $$[x]+[2x]+[4x]+[8x]+[16x]+[32x]=12345$$ Where $[.]$ is greatest integer fuction.


How do I run a game with a .x86 extension

Can anyone help me run the game cs portable, I used to play this all the time on windows?? it's free and the download link is , the download link is in the bottom of his profile description.   The file extension is .x86 and the game is only 45MB, so it won't take long too download.


Not sure why my program doesn't work (getting a null pointer exception error)

I am writing a java code to add a student, remove a student and print the whole database of a class' grades. After running some times I have encountered 2 issues which I would like to find out where I am going wrong and what I can do to change my code.  1) Not sure why I am getting a null pointer exception error in my code, this is a code to help remove a student from a database and shift the students after into the position before. The issue is on this one line: if (student[l].equals(studenttoremove))    2) If I add a student in method newstudent, then remove a student in the method removestudent it will show up with nulls after printing the names to show which possible students to remove. How can I remove the nulls after it?   //studentgradedatabase import java.util.Scanner; public class studentgradedatabase  {     String newstudent;     int newgrade;     Scanner in = new Scanner(System.in);     String[]student = new String[10];     int[]grade = new int[10];     int numberofstudents = 0;     int matchstudent = 0;     int nullcounter = 0;      void newstudent(String a, int b)     {         newstudent = a.toUpperCase();         newgrade = b;         if (numberofstudents == 10 || numberofstudents > 10)         {             System.out.print("Maximum Number of Students exceeded, Please Delete a Student First");         }         else         {             student[numberofstudents] = newstudent;             grade[numberofstudents] = newgrade;             numberofstudents = numberofstudents+1;         }     }     void removestudent()     {         String studenttoremove;         for (int i=0;i<student.length-nullcounter;i++)         {             System.out.print(student[i] + " ");         }         System.out.println(" ");         System.out.println("Input the name of the student you want to remove: ");         studenttoremove = in.next().toUpperCase();         for (int l=0;l<student.length;l++)         {             if (student[l].equals(studenttoremove))             {                 matchstudent = l;             }             else             {                 System.out.print("Student name not found");             }         }         for (int y=matchstudent; y<student.length-1; y++)         {             student[y] = student[y+1];             grade[y] = grade[y+1];         }         for (int x=student.length-1; x<student.length;x++)         {             student[x] = null;             grade[x] = 0;         }         System.out.print("Removed Student");     }     void printdatabase()     {         for (int i=0;i<student.length;i++)         {             if (student[i] == null)             {                 nullcounter = nullcounter+1;             }         }         for (int j=0;j<student.length-nullcounter;j++)         {             System.out.print(student[j] + " ");         }         System.out.println("");         for (int j=0;j<grade.length-nullcounter;j++)         {             System.out.print(grade[j] + " ");         }     } }


Proving if a sequence is Cauchy and/or convergent.

Let $M=(0,\infty)$ be supplied with the metric function $d(x,y)=|\arctan(x)-\arctan(y)|$ and let $\{n\}_{n=1}^\infty$ be a sequence of positive integers.  a) Is the sequence a Cauchy sequence in $(M,d)$?  b) Is the sequence a convergent sequence in $(M,d)$?  I am pretty sure it is Cauchy but not convergent. What I have so far is:  $|\arctan(n)-\arctan(m)|<\epsilon$ if $n,m$ are sufficiently large: $|\arctan(n)-\arctan(m)|≤|\arctan(n)-0|+|\arctan(m)-0|=\arctan(n)+\arctan(m)<\cdots$   This is where I'm stuck.


I have the following code:  \usepackage{hyperref} \newtheorem{thm}{Theorem}  \begin{thm} \label{mythm}    \begin{enumerate}       \item     \end{enumerate} \end{thm}  \ref{mythm}   The ref prints the right number. However, when I click on it, it will lead me to a wrong page (basically, to the beginning of the document).  pdflatex also has some warning.  If I add $ $ between \begin{thm} and \begin{enumerate}, the problem disappears, but now, the enumeration starts a new line.  Is there any way to fix this?


How many endings does The Walking Dead have?

I'm playing The Walking Dead and I'm trying to figure out if there are different endings and who will stay with me until the end of the game.  Does gaining reputation help you in the game?


Attempting to install an OS (LINUX) from a flash drive

I've never done this before, so please be patient.  I'm not a dummy.  How do I get the flash drive to install it's (LINUX OS) info into a (Goodwill) computer w/o an OS?


(Analysis 1 by Tao) Exercise 8.1.8 Use Corollary 8.1.13 to prove Corollary 8.1.14. Corollary 8.1.13. The set $\mathbb{N} \times \mathbb{N}$ is countable. Corollary 8.1.14. If $X$ and $Y$ are countable, then $X \times Y$ is countable.  For the proof of Corollary 8.1.13, the book shows that $\mathbb{N} \times \mathbb{N} = A \cup B$, where $A = \{(n,m) \in \mathbb{N} \times \mathbb{N} : 0 \le m \le n\}$ and $B = \{(m,n) \in \mathbb{N} \times \mathbb{N} : 0 \le n \le m\}$. I also know that $X$ and $Y$ are countable, there exists bijections from $\mathbb{N}$ to $X$ and $\mathbb{N} $ to $Y$. To finish the proof, I need to find the bijection from $\mathbb{N} \times \mathbb{N}$ to $X \times Y$, but I do not know how to get this. Any help would be appreciated.


How do I parse command line arguments in Bash?

Say, I have a script that gets called with this line: ./myscript -vfd ./foo/bar/someFile -o /fizz/someOtherFile  or this one: ./myscript -v -f -d -o /fizz/someOtherFile ./foo/bar/someFile   What's the accepted way of parsing this such that in each case (or some combination of the two) $v, $f, and  $d will all be set to true and $outFile will be equal to /fizz/someOtherFile?


I recently marked a  off topic, but after 5 votes it start showing my name as closed as duplicated. Which I do not.        It should not count or at least state marked as duplicate by someone who has not actually did it.


What is the longest file path that Windows can handle?


How and where - (in what application Photoshop, Corel or something else) can I make a 3D design that looks like the illustrations, for example?       Thanks in advance. Best regards


Is there a keyboard shortcut to hide/show Chrome?

I need to instantly access chrome or get it out of my way whenever I need to by using only a fast keyboard shortcut, is there a shortcut for this?  If not, how can I do this?


Does this integral have a closed form?  $$\int \frac{1}{1+ \tan x}\,dx$$  My attempt:  $$\int \frac{1}{1+ \tan x}\,dx=\ln (\sin x + \cos x) +\int \frac{\tan x}{1+ \tan x}\,dx$$  What is next?


I have heard that everything in our physical reality is relative. But I wonder:   Does the universe have an edge? In an expanding sphere, there would be an edge is it like that? If the above is true then isn't everything relative to the edge. And not relative to eachother? Also, the speed of an object could be measured not as its speed moving away from an object but rather its speed moving away from the edge when it started or at all times (there would be a cancelation and I guess that would mean it could even be a - speed)


Proving that $\sum_{i=1}^n\frac{1}{i^2}1$ by induction

Prove by induction that   $1 + \frac {1}{4} + \frac {1}{9} + ... +\frac {1}{n^2} < 2 - \frac{1}{n}$ for all $n>1$   I got up to using the inductive hypothesis to prove that $P(n+1)$ is true but I couldn't figure out algebraically how to set simplify the right hand side from $$2 - \left(\frac{1}{n} - \frac{1}{(n+1)^2}\right)$$ to  $$ 2 -\frac{1}{n+1}$$


Binomial coefficient modularity conjecture

I am not sure if I have seen this before:  $$\dbinom{n}{p}\equiv\big\lfloor{\dfrac{n}{p}}\big\rfloor\mod p$$  where $p$ is prime and $\lfloor x\rfloor$ is the floor function.  So, for example, $\dbinom{34}{7}\equiv\lfloor\dfrac{34}{7}\rfloor=4\mod 7$.


What do you call something that is not first in a sequence?

Is there a word to describe something that is not the first element in a sequence, but can be in any other position? A synonym of "not first", in fact.     This element is __ in this sequence.


When should we be using "to me", and for what occasions are "for me" better?  Take for instance the following sentence:   "It's a no-brainer to/for me that schools should be subsidized by the government."


Obtaining an expression for empirical mean from empirical CDF definition

This is my first post so I will try to be as clear and concise as possible. I am doing a course in statistics and we define the true mean of a random gaussian variable to be as follows: $\mu$ = $\int_{R}xdF_{N(\mu, \sigma^2)}(x)$ As the Lesbesgue-Stieljes integral. In the notes we defined the empirical CDF as follows: ${F_{n}}$ = $\frac{1}{n}\sum_{i=1}^{n}\mathbb{1}_{\{X_{i} \le x \}}$ We then proceed to show that: $\mu$ = $\int_{R}xd(\frac{1}{n}\sum_{i=1}^{n}\mathbb{1}_{\{X_{i} \le x \}})$ = $\frac{1}{n}\sum_{i=1}^{n}X_{i}$ I am aware that this makes perfect sense as an empirical estimator for the mean, however I am quite confused as to how about deducing this from the integral. We are integrating with respect to a differential of the ECDF, and deduce that the expression is $X_{i}$? I am struggling to even deduce what the result of $\int_{R}\mathbb{1}_{\{Xi \le x\}}$ evaluates to. Any help on the above would be much appreciated.


How to replace a pattern in a string using the re module?

Python (3.8.6) module re finds the given pattern in the string, but can't replace it. # example text x = """hello world new line"""  re.search(r"^hello world$", x, re.MULTILINE) -> <re.Match object; span=(0, 11), match='hello world'> # pattern found  re.sub(r"^hello world$", "SUB", x, re.MULTILINE) -> "hello world\nnew line" # does not get replaced  Can anyone explain this behavior?


Regex for HTML attribute replacement/addition

I'm looking for a single line regex which does the following:  Given a HTML tag with the "name" attribute, I want to replace it with my own attribute. If that tag lacks the name attribute, I want to implant my own attribute. The result should look like this:   =>   =>    Can this be done with a single line regex?


Used the internet and deleted history (Internet Explorer). Can anyone find out still that I used it? What can they still find out?

As the question states: I used the internet on a shared machine and deleted history (Internet Explorer), which deletes all of the following:     I do not want anyone to know that I used the internet or the Internet Explorer application. Can anyone with access to the computer find out still that I used the internet? Could they even find out what sites I visited? Or what could they find out, and how?  As to the "anyone" I'm talking about, I mean I used a university computer, that are not suspicious but just in case they decided to take the computer and check to see if I used the internet, I want to make sure they can't find anything out. How can I cover my tracks to minimize the chances that they find out I used the internet on the machine? And by use, I mean even cover up the tracks that I opened the Internet Explorer application.


Are there any code analyzers that will help find unused code?

Can any of the existing source code analzyers provide metrics on where code is used? I'm trying to find code that is either unused or consumed only by tests, basically candidates for deletion.


Yes, I know this has been brought up alot. Yes, I know the answer will probably be something stupid and simple that I missed.  public char [] [] board;   public Gameboard(boolean setup){      for(int i = 0; i < 7; i++){       for(int j = 0; j < 7; j++){         board[j][i] = '-';       }     }   I am initializing a blank game board, (8x8). The dash marks represent blank spaces, and I am initializing the whole board, and plan to add pieces later.   This is the error.  java.lang.NullPointerException     at Gameboard.<init>(Gameboard.java:9)     at Student_Runner_Gameboard.main(Student_Runner_Gameboard.java:4)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at edu.rice.cs.drjava.model.compiler.JavacCompiler.runCommand(JavacCompiler.java:267)   Thanks for any help in advance.


I have a very complex scene and every time I try to render in either Eevee or Cycles all I get is this solid blue color. Changing my lights and environment colors/settings don't change the look/color of the blue render. I've deleted almost everything from my file except these few elements and purged all the garbage but it's still happening. Can someone help me figure out how to fix this and how I can avoid it in the future? Thank you in advance for your help. -I have removed my original file link and placed it here instead.


What is the Taylor series of $\ln \frac{1-x^2}{1+x^2}$?

What is the Taylor series of $$\ln \frac{1-x^2}{1+x^2}$$   ?   I started by evaluating the first derivatives but the more I go, the more complicated they are and I can't identify a pattern.


Sending email from SQL Server without using DBMail

Is there a way to send email from SQL server stored procedures without using DBMail? DBMail is hard coded by default to use base64 encoding for email messages. As far as I can tell there's no way to override this.  We need to parse/process messages on our mail server and base64 encoded messages can't easily be parsed. Rather than trying decode them we'd like to send email using some other method.   Preferably one that doesn't use CDOSYS or CDONTS either? Why? Because we're migrating to Windows Server Core and Server Core doesn't support CDOSYS or CDONTS.   See here:   Specifically This:   However, before you attempt to host a Web site on Server Core, it’s worth noting  code that makes use of System.Web.Mail will fail because of the dependency on  CDOSYS (which does not exist in Server Core).   Microsoft recommends modifying Web application code to use System.Mail.Net  instead of System.Web.Mail.   This is refering asp/.net code on a web server but presumably the same restriction applies to SQL server installed on a Core server.   So with those two limitations in mind (no dbmail, and no cdonts/cdosys) how can we send mail from stored procedures? Any ideas? :)  Thanks! Brad


I have a Problem with my BibTex Settings. When printing I want first name before surname. Right not it is the other way around.  Also, if I have multiple authors, the first one is displayed surname, first name and every following author is displayed first name surname (without comma).  I think that this is very bad styling because it should be the same for all authors. Here I have some of my configurations for you:  \usepackage[     backend=bibtex,     bibwarn=true,     bibencoding=utf8,     sortlocale=de_DE,     style=authoryear,     backref=true ]{biblatex}  \setlength{\bibitemsep}{\baselineskip}   And my BibTex:  @book{Dean.2004,     title={MapReduce: Simplified Data Processing on Large Clusters},     author={Dean, Jeffrey and Ghemawat, Sanjay},     year={2004},     url={http://research.google.com/archive/mapreduce.html},     publisher={Sixth Symposium on Operating System Design and Implementation} }   And last how it is displayed right now


A lot of the time, it's handy to use outside resources to post information relevant to a question or answer, like  or .   On the one hand, link rot is a consideration, but would it be worthwhile to add a "useful links" page to the Help Center?


What's the command-way to find type of connectors (slots) for HDD and DVD-ROM?

I want to upgrade my laptop by adding a SSD. I have two plans:   First, putting SSD in place of cd-rom by a caddy if both HDD and cd-rom have same type of connectors. Or, if the speed of cd-rom connector is limited in compare to the HDD connector, then I should replace the current HDD by SSD and then I will put the HDD in place of the cd-rom.   So, I need to find type of their connectors!  ls -l /sys/block/sd?  lrwxrwxrwx 1 root root 0 Oct 17 17:29 /sys/block/sda -> ../devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0/block/sda lrwxrwxrwx 1 root root 0 Oct 17 19:23 /sys/block/sdb -> ../devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sdb


I accidentally changed ownership of sudo to current administrative user

After running the (stupid) command :  sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}   Having $(npm config get prefix) being equal to /usr, I have changed the ownership of /usr/bin/sudo to my administrative user. Now when I try to sudo I get the following error :  sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set   It was a fresh Ubuntu installation so I don't mind reinstalling but if there is another way I'm in. Note that I had not set a password for root so I believe I have no way to login as root. If I could it would be great, I would just chown -R root:root /usr/bin and it would fix my problem.  My /etc/ folder is still owned by root and everything works fine except sudo giving the above error message.


As the question says, what exactly is the function of the !== operator? (Exclaimation, Equals, Equals).  Yes there are two equal signs. I found it .   function endsWith(str, suffix) {      return str.indexOf(suffix, str.length - suffix.length) !== -1;   }    Is it a typo? I doubt it. It is an old post and with so many upvotes, it should surely have been corrected one day or the other.  Or is it a valid operator? If so, what does it do?


I have the following file:  abcde kwakwa <0x1A> line3 linllll   Where <0x1A> represents a byte with the hex value of 0x1A. When attempting to read this file in Python as:  for line in open('t.txt'):     print line,   It only reads the first two lines, and exits the loop.  The solution seems to be to open the file in binary (or universal newline mode) - 'rb' or 'rU'. Can you explain this behavior ?


create windows service from executable JAR file

I am trying to create service from JAR file and after some research I was able to create window service using SC   sc create "ServiceName" binPath= "PathToJava.exe -jar PathToJarFile"   but when I tried to start the service it displayed the bellow error  [SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion.   Can anyone help me out regarding this, any help is valuable


I typed the "Hello, World" program in the Ubuntu text editor. The file, 'hello' was saved to the documents folder, which I verified, is there.  However, the "c" compiler, version 7.4.0-1, cannot find 'hello.' Moreover, the program 'find' cannot find it either. I would appreciate any help you can give me.


Insert ellipsis (...) into HTML tag if content too wide

I have a webpage with an elastic layout that changes its width if the browser window is resized.  In this layout there are headlines (h2) that will have a variable length (actually being headlines from blogposts that I don't have control over). Currently - if they are wider than the window - they are broken into two lines.  Is there an elegant, tested (cross-browser) solution - for example with jQuery - that shortens the innerHTML of that headline tag and adds "..." if the text would be too wide to fit into one line at the current screen/container width?


How to get more space in the / partition in this specific case

I have a lot of spare space in my hard disk. But the size of / partition is very small. Here is a snap of my partition table in Gparted,    How can I expand my / partition? Step by step description will be helpful.


How do you force the focus of an Excel Cell to remain the same?

I have set up an excel table where occasionally the data I have in several columns gets shifted down several rows to make room for new data.  I also have a cell that references the top most cell in one of these columns.  I want this cell to continue to pull the information for the top most cell in this column.  However,  when I paste the new information in (which moves all the rows down accordingly), the reference moves too.  For example say the top cell is F4 and I paste in 10 rows, the cell in question now references F14 instead of F4.  Is there a way to force this cell to be a static reference to a particular cell only?


How do I evaluate (prove to myself) that a method for picking uniformly distributed values is correct?

To make this more specific, I show a broken procedure for generating random points in a circle and a correct (hopefully) procedure for generating random dates within an interval.   I'd like to be able to precisely explain why one of them is wrong and the other is not, given that they sound very similar. What is so special about polar coordinates, that is not true about the case with dates?  Point in Circle  When placing a random point within a circle, the following is incorrect approach.  Use polar coordinates. First, generate the distance from center of the circle as number in interval [0, r). Then, generate the angle as number in interval [0, 2*pi).  The problem with the method described is that half of such points would lie within distance r/2 from the center, but that is only 1/4 of the surface of the whole circle.  (Anyways, how can one come up with such argument or know for certain there isn't one? It is obvious when it is stated, but I cannot imagine coming up with it myself; I'd just accept the method as correct.)  Random Date  randomdate = startdate + new TimeInterval(     days: random(from: 0 to: (enddate - startdate).days)     hours: random(from: 0 to: 23)     minutes: random(from: 0 to: 59) )   When proving uniform distribution of values, what exactly am I trying to prove (how come that in the circle example I have to think of area density, which is not necessary in the date example) and how do I go about it, in a general case?


I am preparing slides for my zeroth review (Project) using LaTeX. Now, I am very much appealed by this theme: . The theme's link is given here: . But, It is not available. I got the base theme Copenhagen but now I need to customize it to the colors and gradients applied in the theme. How do I do that? Here is my MWE:  \documentclass[12pt]{beamer} \usetheme{Copenhagen} \title{The title of the paper} \author{Subham Soni \and Sakthivel \and Syed Rabbani} \date{\today} \begin{document} \begin{frame} \titlepage \end{frame} \begin{frame}{Agenda} \tableofcontents \end{frame} \end{document}


Question regarding fundemental theorem of calculus

Hi consider the following expression:  $F(x)=\int_a^{x}f(t)(x-t)dt$ and hence determine $F'(x)$.  This is what I have I done: first split into  $F(x)=\int_a^{x}xf(t)dt$ - $\int_a^{x}tf(t)dt$  The second half of the expression is integral of an expression fully interms of t, hence I know by the fundemental theorem of calculus upon differentiating it i can rewrite it as $xf(x)$.  However I have problem getting past the first half $\int_a^{x}xf(t)dt$ it is an integral containing x and t. is there any technique that I can apply in order to evaluate this integral?


Is it  Ever wonder whom has the skills  or  Ever wonder who has the skills?  I believe it is who but unsure.  Ever wonder whom you could team up with  , or  who  In the second case I could use him or her in the answer, therefore I think whom is right. ?


Box2d - Allow object to pass but still report collision

I am creating a laser which is a dynamic body with its own collision filtering. I want it to not collide, as it does not currently but I want it to still report the collision or when the two overlap. Is such a thing possible?


How can I pause an rsync that's running?   First time I did Ctrl+C to kill it and used the -P flag to run again. Is this prone to corrupt the current file transfer?  Second time I simply put MacOS to sleep (by closing the lid). Looking at the running process I can see 2 (not sure why) with a status of 'S'.  Tried using   kill -SIGCONT   to resume the process, but it has no effect.


I have to prove that any number of the form $3n+2$ has a prime factor of the form $3m+2$. Ive started the proof  I tried saying by the division algorithm the prime factor is either the form 3m,3m+1,3m+2.  Case 1: $3m$      suppose $3m$ does divide $3n+2$. That means $3mr=3n+2$ where $r$ is some integer. But we get $mr-n= 2/3$ and since $mr-n$ is an integer that's a contradiction. Thus $3m$ does not work.  Case 2: $3m+1$ Same argument here  Case 3: $3m+2$ By the fundamental theorem of arithmetic every integer is divisible by a prime. But not sure what to do from here.


When removing a not yet selected tag from the tag list, by selecting the word and pressing backspace, instead of the selected text being removed, it simply untags the previous tag and removes the selection of the text. See:  Steps to reproduce:  Add one or more tags. Start typing after the tags. Select the typed text. Press backspace to delete text.


I'm trying to add different types of variables (String and Integer) to a object list, but when I'm running the code I always get a NullPointerException. I already debugged it and the variables aren't null. Can someone help me and tell me how I can add different types of variables to an object list?  private int x; private int y; private int z; private int stockwerk; private String address; private List<Object> list;  public List<Object> getAttributeList () {      list.add(1, this.x);     list.add(2, this.y);     list.add(3, this.z);     list.add(4, this.stockwerk);     list.add(5, this.address);      return this.list;  }


Motor driver powered by PSU instead of battery

I am about to use a motor driver in a project (MDDS30 by Cytron) and I was going to power it using a 12v 11.5a PSU. I discovered that the manufacturer warns against using a PSU, and that it might destroy the driver if the motor is driven via an external force, as it would generate electricity that can kill the driver if it builds up and is not able to go in to a battery of some sort. I was considering having to use a lead acid accumulator in parallel with the PSU (I don't know if this is particularly safe or possible without adding circuitry?), but that is not ideal for several reasons in this application, mainly that the system should die if one unplugs the PSU...  So my question is this: Can I simply connect some large capacitor in parallel with the PSU instead of using a battery? And if that is so, what capacity and voltage rating should I opt for? it is not very likely that the motor would be rotated by hand, but I do not like to gamble on it being the case!  Perhaps any other solution I have not considered? We have too little time to consider a different, less particular, driver at this point.  Thanks for any input  To update the question with some more information: The drivers operating range is 7-35V, my system is purely 12V, and other components includes a PLC. If a higher voltage than 12v is fed back into the system from the motors (like commenter glen_geek mentions) it might cause the PLC to become unstable.


Chat message window should be extensible

When I extend the chat window by clicking the right-down handle to enlarge the window (using Google Chrome), and when I input many lines full of words, the last line cannot be seen.   You see that the handle disappears and I always cannot edit the last line of words.    Can the chat window be extensible by mouse's moving up and down to resize the chat room?


I have to use a set ISO of 200, but all my images come out black

Thanks for trying to help me. I have to have my ISO set to 200 and use manual settings for an assignment, but all my images are coming out black (or almost black). I have tried in my living room and in a train (early morning but the train is quite lit).  What are the best camera settings to fix this and shoot the most versatile range of photos? Like in ordinary light? Thank you!


Vector spaces for the irreducible representations of the Lorentz Group

EDIT:  The vector space for the $(\frac{1}{2},0)$ Representation is $\mathbb{C}^2$ as mentioned by Qmechanic in the comments to his answer below! The vector spaces for the other representations remain unanswered.  The definition of a representation is a map (a homomorphism) to the space of linear operators over a vector space. My question is: What are the corresponding vector spaces for the   $(0,0)$ Representation $(\frac{1}{2},0)$ Representation  $(0,\frac{1}{2})$ Representation $(\frac{1}{2},0) \oplus (0,\frac{1}{2}) $ Representation $(\frac{1}{2},\frac{1}{2})$ Representation infinite dimensional Representation?


Space $X$ such that $H_i(X,\mathbb{Z})\neq 0$ but $H_i(X,\mathbb{Z}_3)= 0$

I want to find a topological space $X$ such that $H_i(X,\mathbb{Z}_3)=0$ for all $i$, but there is some $i$ such that $H_i(X,\mathbb{Z})$ is non zero.  I have tried using the integral coefficient theorem to come up with an example but that hasn't been fruitful, we also have not covered the universal coefficient theorem I assume there is some way to do this question without that.   I feel I am missing some key point about homology with coefficients in $\mathbb{Z}_3$. Possibly something similar to how homology with coefficients in $\mathbb{Z}_2$ in a sense forgets orientation.


Comments in the stackexchange.com "activity" -> "comments" navigate to the post instead of the comment

My network wide comments are listed in the stackexchange.com . When I'm clicking on any of the comment it navigates to the post instead of the particular comment.  But when I click the comment from site's , it navigates to the particular comment.  So will be the approach changed to navigate to the comment instead of post, in the stackexchange.com comments section too?


(This is a simple question, with likely a rather involved answer.)  What are the primary obstacles to solve the many-body problem in quantum mechanics?   Specifically, if we have a Hamiltonian for a number of interdependent particles, why is solving for the time-independent wavefunction so hard? Is the problem essentially just mathematical, or are there physical issues too? The many-body problem of Newtonian mechanics (for example gravitational bodies) seems to be very difficult, with no solution for $n > 3$. Is the quantum mechanical case easier or more difficult, or both in some respects?  In relation to this, what sort of approximations/approaches are typically used to solve a system composed of many bodies in arbitrary states? (We do of course have perturbation theory which is sometimes useful, though not in the case of high coupling/interaction. Density functional theory, for example, applies well to solids, but what about arbitrary systems?)  Finally, is it theoretically and/or practically impossible to simulate high-order phenomena such as chemical reactions and biological functions precisely using Schrodinger's quantum mechanics, over even QFT (quantum field theory)?  (Note: this question is largely intended for seeding, though I'm curious about answers beyond what I already know too!)


What techniques can be used to define a class in JavaScript, and what are their trade-offs?

I prefer to use OOP in large scale projects like the one I'm working on right now. I need to create several classes in JavaScript but, if I'm not mistaken, there are at least a couple of ways to go about doing that. What would be the syntax and why would it be done in that way?  I would like to avoid using third-party libraries - at least at first. Looking for other answers, I found the article  that discusses object-oriented programming in JavaScript. Is there a better way to do inheritance?


How to convert list to keys() and list of lists to values() in dict?

I am working on matching Qradar event ids to source address ids and list of lists and a list of values.  I would like to create a dictionary with both and have the list items be the keys(), and the list of lists be the values() in that dictionary. source_address_ids= [             [26],             [14],             [27],             [29,30],             [25]         ]  offense_ids = [             155,             154,             152,             145,             144         ]  Desired output: new_dict = {155: [26],             154: [14],             152: [27],             145: [29,30],             144: [25]}


I am looking for QGIS tutorials that cover the topics of making a user interface to update the attribute table or any related tutorial that might help.  Does anyone know of one?


I'm at the stage in my game development where I need to make a HUD or GUI. I've never gotten to this part, so I don't know how its done. I tried rendering a simple quad at a fixed position on the screen, but there's a problem. To make my camera work with orthographic, I use this:  public void lookThrough() {     GL11.glMatrixMode(GL11.GL_PROJECTION);     GL11.glLoadIdentity();     GL11.glOrtho(position.x, position.x + Display.getDisplayMode().getWidth()/zoom, position.y + Display.getDisplayMode().getHeight()/zoom, position.y, -1, 1);     GL11.glMatrixMode(GL11.GL_MODELVIEW); }   I don't see how I would be able to make something fixed on the screen using this method? Any way around this? Thanks :)


It's time colleges helped you compare apples to apples. (The Boston Globe)  If the time is a present moment, why does the journalist use "help" in the past tense? Or is "helped" subjunctive?


Do you always have to put a comma before someone's name?

Example:   (1) Hello John. (2) Hello, John?   (3) How are you today John? (4) How are you today, John?   (5) I wish I could John. (6) I wish I could, John.   Must there always be a comma before someone's name?


I would like know if there is any global variable i can use to prevent trigger fire from a future method.  Like I can use   System.isBatch()    to prevent trigger fire from batch classes


In WoW and other games you see some difference in using an speed weapon in your left weapon slot and your right weapon slot.  Is there any difference in Diablo 3? Should I use the X weapon in slot Y?


Problem: Given that $34!=295232799cd96041408476186096435ab000000$. Find $a, b, c, d$. $a, b, c, d$ are single digits.  I am able to find $a$ and $b$ but cant find $c, d$. I did the prime factorisation of $34!$ using De-Polignac's formula. I got $\frac{34!}{10^7}=2^{25}\times3^{15}\times7^4\times11^3\times13^2\times17^2\times19\times23\times29\times31$  So, i got $b=0$ and $a=2$ since $2^{25}\times3^{15}\times7^4\times11^3\times13^2\times17^2\times19\times23\times29\times31 \equiv 2 \mod 10$.  So, please help me find $c$ and $d$


How should I interpret the coefficient in the output of this Logistic Regression?

This is a binary model that my colleagues and I developed that regards a connection between the satisfaction with air (dependent variable) and overall satisfaction with public transport (covariate). I don't know how to interpret the results shown below.


Prove without induction that $\sum_{r=1}^n {n\choose r}(-1)^{r+1}\dfrac{1}{r}=\sum_{r=1}^n \dfrac{1}{r}$

Prove without induction that $$\sum_{r=1}^n {n\choose r}(-1)^{r+1}\dfrac{1}{r}=\sum_{r=1}^n \dfrac{1}{r}$$ for $n\geq1$.   I have shown the above using induction. However, I am interested in knowing if we can show it directly without using induction.  This is not entirely trivial, I think, if one is armed only with the very basic ideas of combinatorial identities. This can be proved in at least two different ways: one using induction and the other is by evaluating an integral. However, regarding the second approach, I am quite certain that if not known beforehand which integral to compute to get this equality, it is a hard exercise.  EDIT: In the link claiming to be a duplicate of my question, induction was allowed. I am looking for approaches that use no induction or calculus. So this question is different.


Can't access VMware virtual machine through SSH

I have got a VMware Server 2 on a CentOS 5.6 host. I can access my virtual machines from the host machine, but I can not access it from other machines.  I have configured NAT port forwarding. But somehow I have no access to the VM using ssh. I have checked all firewall settings and they seem right.  What can cause this problem?


Let $\{a_n\}$ be a sequence an $L$ a real number such that $\lim_{n\to\infty} a_n = L$ Prove that $\{a_n\}$ is bounded   This reminds me of the bounded monotone convergence theorem (BMCT) but in reverse. So I was thinking of proving by somehow reversing the proof of the BMCT. Am I approaching this correct? And are there alternative ways of doing this that may be simpler?


This seems a bit obvious, but I'm not clear on one part. My teacher had told us $d(x^2) =2xdx$. However on asking why, we were told $d(x^2)= (x+dx)^2-x^2= 2xdx+(dx)^2$. We were told that we can ignore the $(dx)^2$ because its small. For obvious reason I feel this step is wrong, why can we ignore $(dx)^2$, is their any other way of getting the result?


Apply javascript to html injected with AJAX

I am creating a portfolio site that I'd like pull in partial HTML files through an AJAX request. This is the basic HTML:
       // This will be replaced
     Click Me   The jquery code that I am using looks like this:      $( "#fire" ).click(function() {         $( "#portfolio" ).load("partial.html #portfolio > *");     });   This works, and I'm able to load the individual partial pages, but I cannot figure out how to have scripts run on the inserted HTML. I'm using Foundation Orbit, and I want to have these sliders function properly after the AJAX call. I thought maybe it was a conflict, so I also tried using slides.js, but that didn't work either. I have all the dependencies and needed scripts in my index file. What do I need to do to have the Orbit script apply to content on the page after the AJAX call?  I have a functioning plunkr that shows the problem I'm having. I'm just learning all this, so apologies if there is a super obvious answer, but I haven't found it on the site.  Here is the . It has a working Orbit slider to prove -- to myself -- that the script is working.   Thanks in advance!


Cite 5 authors in the first citation in your TeX file?

The APA style manual website says:     [A]rticles with one or two authors include all names in every in-text citation; articles with three, four, or five authors include all names in the first in-text citation but are abbreviated to the first author name plus et al. upon subsequent citations; and articles with six or more authors are abbreviated to the first author name plus et al. for all in-text citations.   Is there a way to   manually cite all authors in a citation of a paper with 5 authors, using \cite{...}  have the above-described rule automatically performed by latex, so that I don't have to do it manually?


Why is my camera drawing labyrinths on my photos?

On the photos where the lens flare is present, my Nikon D7000 is drawing strange labyrinth-looking artifacts. Here's an example.  The first image is a screenshot of a little part of the original photo zoomed 2:1 in Lightroom.  The second image is the same photo with Lightroom's contrast, clarity and sharpening set to the maximum to make the labyrinth pattern more visible.      This affects only some of the photos presenting lens flare. Here, for instance, the lens flare is present and light conditions are very close to the first photo, but there is no labyrinth pattern, only usual noise (screenshot of a part of a photo at 1:1 with contrast, clarity and sharpening set to the maximum):    Notes:   I can see this pattern only on some of the photos when the sun is in the frame or nearly in the frame. It is present with any lens I tested. The actual photo was shot at f/8, ISO 200, 1/640 s. I've seen this pattern in photos shot at ISO 100 as well. The photo is in RAW format, so this is not a JPEG artifact.   What is that? How do I avoid it?


Quadratic Form of the product of two matrices

Given two symmetric matrices $A,B \in \mathbb{R}^{n\times n}$ which are positive definite, and positive semidefinite respectively.  Can I conclude that   $$x^T(AB)x \ge0, \mbox{for all } x\in \mathbb{R}^n$$


Find the value of the integral $I=\int_{-\infty}^\infty e^\frac{-y^2}{2}~dy$ .


Error when trying to intialize an enviroment (Pipenv))

Take it easy, I'm a n00b. I get this error when I'm trying to initialize an environment to get a project going. I've scoured through many stack overflow and GitHub (Usage/request) before I decided to post here. I updated pipenv and even updated by python up to 3.7 from 3.6. I've been at it for 2 hours but I decided I may need your help.   pipenv run python3 Creating a virtualenv for this project… Pipfile: /home/user1/Pipfile Using /usr/bin/python3 (3.6.7) to create virtualenv… ⠙ Creating virtual environment... ✘ Failed creating virtual environment  [pipenv.exceptions.VirtualenvCreationException]:   File "/home/user1/.local/lib/python3.6/site-packages/pipenv/cli/command.py", line 408, in run [pipenv.exceptions.VirtualenvCreationException]:       command=command, args=args, three=state.three, python=state.python, pypi_mirror=state.pypi_mirror [pipenv.exceptions.VirtualenvCreationException]:   File "/home/user1/.local/lib/python3.6/site-packages/pipenv/core.py", line 2310, in do_run [pipenv.exceptions.VirtualenvCreationException]:       three=three, python=python, validate=False, pypi_mirror=pypi_mirror, [pipenv.exceptions.VirtualenvCreationException]:   File "/home/user1/.local/lib/python3.6/site-packages/pipenv/core.py", line 574, in ensure_project [pipenv.exceptions.VirtualenvCreationException]:       pypi_mirror=pypi_mirror, [pipenv.exceptions.VirtualenvCreationException]:   File "/home/user1/.local/lib/python3.6/site-packages/pipenv/core.py", line 506, in ensure_virtualenv [pipenv.exceptions.VirtualenvCreationException]:       python=python, site_packages=site_packages, pypi_mirror=pypi_mirror [pipenv.exceptions.VirtualenvCreationException]:   File "/home/user1/.local/lib/python3.6/site-packages/pipenv/core.py", line 935, in do_create_virtualenv [pipenv.exceptions.VirtualenvCreationException]:       extra=[crayons.blue("{0}".format(c.err)),] [pipenv.exceptions.VirtualenvCreationException]: Traceback (most recent call last):   File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main     "__main__", mod_spec)   File "/usr/lib/python3.6/runpy.py", line 85, in _run_code     exec(code, run_globals)   File "/home/user1/.local/lib/python3.6/site-packages/virtualenv.py", line 26, in <module>     import logging ImportError: bad magic number in 'logging': b'\x03\xf3\r\n' Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>     import apport.fileutils   File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>     from apport.packaging_impl import impl as packaging   File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>     import apt   File "/usr/lib/python3/dist-packages/apt/__init__.py", line 26, in <module>     from apt.package import Package   File "/usr/lib/python3/dist-packages/apt/package.py", line 24, in <module>     import logging ImportError: bad magic number in 'logging': b'\x03\xf3\r\n'  Original exception was: Traceback (most recent call last):   File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main     "__main__", mod_spec)   File "/usr/lib/python3.6/runpy.py", line 85, in _run_code     exec(code, run_globals)   File "/home/user1/.local/lib/python3.6/site-packages/virtualenv.py", line 26, in <module>     import logging ImportError: bad magic number in 'logging': b'\x03\xf3\r\n'  Failed to create virtual environ   ment.


Will 1 Inch sensor give same exposure at same aperture and ISO settings compared to APS-C sensor?

I know that APS-C is many times bigger than 1 inch and it dramatically effects shallow depth of field. But I was wondering if I'll shoot night city for example with same aperture and ISO setting on both 1 inch and APS-C would 1 inch sensor shot look underexposed?


Prove that matrix A is regular and find $A^{-1}$?

So, let $A,E\in M_{nxn}(\mathbb{R})$ and $(A+E)^3=O$. Show that $A$ is a regular matrix and find $A^{-1}$.  What I tried to do is represent $A$ as a $_{3x3}$ matrix and try to prove that it's regular using $(A+E)^3=O$, but I after calculating $A^2$ I realized it's not the right way to do it. Any ideas?


I have a bunch of hosts that I set aliases for in my ~/.ssh/config. They are all part of a certain domain that has certain settings:   Host apple     GSSAPIAuthentication yes     GssapiDelegateCredentials yes     HostName apple-computer.example.com     User guyincognito  Host *.example.com     GSSAPIAuthentication yes     PreferredAuthentications gssapi-with-mic     GssapiDelegateCredentials yes     User guyincognito   What I'd like to do is to just define the aliases, and then have ssh recognize that they point to example.com, and read the block with the domain settings. So like:  Host banana     HostName banana-computer.example.com     # Uses GSSAPIAuthentication, user name, etc. from *.example.com !  Host cherry     HostName cherry-computer.example.com   Is there any way to avoid repeating all the settings for each alias? I would not like to put the settings in the global scope, as I also have to connect to servers that do not like GSSAPIAuthentication for example.


I want to do the not independent sign in latex without having to install or define new commands (since I am using latexIT and I cannot load new packages).  Currently I use the following sign for independent:  X{\perp\!\!\!\perp}Y   What can I use for X not independent of Y?  I.e., something like this: ?


Should we not use abbreviations at all in academic writing?

I submitted a paper to a computer science conference, and the reviewer mentioned that I should correct grammar/writing issues throughout the paper. Some of the things he/she mentioned: don't -> do not can't -> cannot it's hard -> it is hard So are abbreviations not welcomed in academic writing? If yes, then should I also change all aren't/isn't to are not/is not?


Greasemonkey Script to Put Notification Indication in the Browser Tab

I find the number of questions that show up in the tab to be pretty useless.  What would be really useful, is if notifications of comments or badges or rep would indicate in the tab.    Since that is tangentially mentioned in other posts, this post is a request for a Greasemonkey script that would put the notifications in the tab.  Related Posts (for native functionality):


While performing some arithmetic operations, i am stuck at one point.I want to know is it possible to write ($a^b)\%p$ as ($a^{(b\%p)})\%p$?


How dangerous is this broken lithium-ion laptop battery?

The wife’s laptop is an older Macbook with a dead battery (i.e. it wouldn’t charge, but used to run fine when connected to an outlet). With the wife in hospital the thing wasn’t used for a while now (and not connected to power). Today I noticed that the bottom plate was deformed. When I removed it I saw that the battery was bulging. While I was watching the battery case cracked open (either because the bulging was still in progress or because the pressure from the backplate was removed).  I live in a fourth floor apartment without emergency exits, so I am a bit more than usual concerned about fire hazards. Also I'm clueless about electricity, thus I called the local fire brigade for advice. They recommended that I should throw the battery into a bucket of water to cool it down.  So my first question is, is this the proper thing to do? The internet is in two minds about this, one half saying NOOOO! because lithium (which is what I would have thought) and the other half saying there is no metallic lithium in a lithium ion battery, so that’s not a problem.   In the end I did not do it, amongst other things because there is still a computer attached to the battery - despite using the proper screwdriver  the screwheads had sheared off when I had tried to remove it. At the moment the whole thing is sitting in a ceramic pot, wrapped in a watertight bag, in the middle of the back yard, which has a concrete floor.   So my real question is, how dangerous is a depleted lithium-ion battery (I have no idea if the danger depends in any way on the electric charge)? In the unlikely event that the thing will not be stolen overnight I want to remove the battery and salvage the rest of the computer. The only way to get it out will be to break off the latches for the screws, which means I have to hack away a few millimeters away from the bulging battery cells. Is that even remotely safe ? Do I need protection (I should have plastic goggles and gloves lying somewhere)? Or do I worry unduly, and this im completely harmless?  , but since I specifically need to break the case of an already damaged (and cracked open) battery this does not quite help (also I’m really curious about the „cool batteries in water“ thing ). Also I hope somebody can recommend sensible precautions.


I'm getting, Exception in thread "main" java.lang.NullPointerException error. What is wrong with my code?

This is the class where the error is shown.  I have commented the line number 245, where netbeans says: dereferencing possible null pointer. if i didn't initialize the endHours as null, it also gives an error. and when i print endHour, it clearly returns a value. but i get this error when i try to put the endHour to the array endHours  public List getRanges(String type) throws NullPointerException, FileNotFoundException, IOException{     List endHours = null;       String fileName="";     if(type.equals("tcp")){         fileName="tcprange";     }else if(type.equals("udp")){         fileName="udprange";     }      String line = null;      try {          FileReader fileReader=new FileReader("conf/"+fileName+".txt");         BufferedReader bufferedReader=new BufferedReader(fileReader);         int i=0;         HashMap tempEndHours=new HashMap();         while((line = bufferedReader.readLine()) != null) {             int endHour=0;             String[] split=line.split("\t");             endHour=Integer.parseInt(split[1]);             if(!tempEndHours.containsKey(endHour)){                 tempEndHours.put(tempEndHours,i);                 //System.out.println(endHour);                 endHours.add(i,endHour);// ** line 245             }             //System.out.println(endHour);              i++;          }     }catch(FileNotFoundException ex) {         System.out.println("Unable to open file '"+"conf/"+type+".txt"+ "'");                     }      //Collections.sort(endHours);     return endHours; }


I want to get a json from a url. As an example I want to get the json of this url:   And how do I do this in JavaScript now!


Is "Country(ies)" on a form label correct?

On an web form, where a user can select one country or several, I want to use a label more concise than Country or Countries. Is Country(ies) correct?


Let $(V, \| \ \|)$ be a Banach algebra. Given two elements $x,y\in V$ satisfying $xy=yx$, prove that $$ \lim_{n\to\infty}\|(x+y)^n\|^{1/n}\le\lim_{n\to\infty}\|x^n\|^{1/n}+\lim_{n\to\infty}\|y^n\|^{1/n} $$ I just do not know where to start. I want to use this inequality to prove a relationship between the spectrum of $x+y, x, y$.


For reasons of space I am trying to put pairs of correct and pairs of wrong examples next to each other in multicols environment. However, no matter what I do, they never align correctly. I tried \bigskip to fill the missing gloss line and even \hspace to create an empty line. I'll be very grateful for any suggestions where the problem lies and for any solutions. This is my first post, so I hope to get the MWE right.  \documentclass[11pt,a4paper]{article} \usepackage{gb4e} \usepackage{multicol} \begin{document} \begin{exe} \begin{multicols}{2} \ex \begin{xlist} \ex \gll Dies ist korrekt\\ this is correct\\ \glt \lq This is correct' \ex \gll \'{E}sto est\'{a} correcto\\ this is correct\\ \glt \lq This is correct' \ex \gll Hii ni sahihi\\ this is correct\\ \glt \lq This is correct' \end{xlist} \columnbreak \ex \begin{xlist} \ex[*]{\gll Dies falsch ist\\ this wrong is\\ \glt \hspace{1cm}} \ex[*]{\gll \'{E}sto mal est\'{a}\\ this bad is\\ \glt \hspace{1cm}} \ex[*]{ \gll Hii sahihi si\\ this correct not.is\\ \glt \hspace{1cm}} \end{xlist} \end{multicols} \end{exe} \end{document}


I have searched the literature and I'm now have all the papers I need.   I'm reading the papers at the moment in order to write a lit review. I would like to know some strategies to read them, should I read them from first page to last page? or should I read specific sections only?


What is the cause of rolling friction? & why is it less than sliding friction?

Rolling friction is the resistance to motion experienced by a body when it rolls upon another. It is much less than sliding friction for same pair of bodies. When one body rolls upon another, there is theoretically no sliding or slip between them. And if both are perfectly rigid, there is no surface of contact.   Then the book writes:     Different causes are present depending on the nature of the wheel and the road. For a hard wheel on a soft dirty road, as the road is slightly depressed at the point of contact and a ridge is formed in front of the wheel. Thus, the wheel is being continuously pulled up in a minute hill which causes rolling friction.   Now, my questions are: - How does the ridge provide rolling friction in the opposite direction of rolling? - There is not always soft road. What happens in the hard road? - Why is rolling friction less than sliding friction??  Please help.


Can two users simultaneously share one pc

It's easy to have multiple user accounts on one computer and even switch between accounts without logging off. It is also possible to have more than one display connected to a single computer.  Is it possible to have one multi-core computer be used simultaneously by two users in their own accounts? Is there specific hardware required (to allow keyboard and mouse distinction for each user) and software configuration?  I know you can setup remote connections on windows that allow you to open and use a second user account without bothering the first user, but how about working locally on the same machine, essentially removing the network delay of remote desktops?  What OS supports this? Linux Ubuntu? Windows 7?


I recently installed the brackets editor and was wondering what the best approach to handling the file permissions is.  I tend to edit php/html files that are located in my /var/www/html and I'm running into permission problems when I'm not running brackets with sudo  I wondered if there is a better approach to this?


In Ex Machina, can this character survive?

This is not about      Caleb   who I'm quite sure is doomed, but      Ava. In the end she escapes, looks entirely human and is free to roam the city like she always wanted.  However, as far as we can tell she can only charge her batteries by using special panels that only existed in Nathan's house. She doesn't seem to have a power cord that she could plug in to a socket and, being entirely mechanical, can't eat food.   Is there any way this character could survive for long?


I see that Ubuntu 18.04 is out already. I can't update from software & Updates( It says my system is up to date)(Yes,I've enabled notify for new ubuntu version). When I run do-release-upgrade -c ,It says no new release found. Is there any alternative way? Or is it not available for update yet?


How to install guest additions on Ubuntu Guest? And why's it so convoluted?

From googling around, installing guest additions on a VirtualBox Ubuntu guest seems quite complicated.  I've googled around and have found no "official" instructions on Ubuntu or VirtualBox.  Also, the searches I've found are quite old.  1 - Why are there no "official" instructions on Ubuntu or VirtualBox?  2 - is there a utility in the software centre that can do all this?  3 - If not, How to do it?  Thanks


I need to show that by structural induction that the truth value $V$ of a WFF depends only on the truth values of its sentence letters. In other words, I need to show show that for any WFF $\theta$ and any PL-interpretations $I$ and $I'$, if $I(\alpha) = I'(\alpha)$ for every sentence letter $\alpha$ in $\theta$, then $V_I (\theta) = V_ I' (\theta).$  I'm not sure where to begin because I'm not sure how to translate the former assertion into English. Does anyone have any tips about how to proceed with the structural inductive proof?


SQL Server replication subscriptions marked as inactive

Is there any way to force SQL Server NOT to mark subscriptions as inactive, ever?  It happens sporadically when there are connection issues and I don't want to have to reinitialize the subscription every time.  Note, I'm not talking about the subscriptions being marked as expired...just as inactive.  We have retention set to 0 (infinite). I'd rather have a big distribution database than have to reinitialize a 15GB database to a subscriber over the WAN. Anyway, the real issue here is that they are getting marked as inactive within just a few hours sometimes...or sometimes a few days...it seems sporadic. Is there any way to tell WHY SQL decided in its wisdom to mark them inactive?


I want to make an overline via " $\overline{O}$VERLINE " above a letter but this letter then appears in an italic shape. How do I avoid this?


How to convert json date from angular in asp.net mvc

I have a action method in controller which returns json result as:  public ActionResult GetByDids(int id) {     AngularMVCEntities _db = new AngularMVCEntities();     var emps = _db.Employees.Where(x => x.Did == id).ToList();     return Json(emps, JsonRequestBehavior.AllowGet); }   And a code in angular js like:  app.controller('employeesController', function ($scope, $http) {     $scope.GetEmployeesByDid = function (did) {         alert('Get Employees By Id' + ' ' + did);         $http.get('/Employees/GetByDids', { params: { id: did } }).then(function       (response) {             $scope.Emps = response.data;         });     }; });   Output is:   How to convert the json DATE to string?


can you have duplicate Call to Actions (CTA) on a Page?

What is the number of duplicate CTAs that we can have on the page? For example, "Request for a demo". Can this CTA appear more than once?  Thanks in advance. :)


Whether we use "come back" or "go back" usually has to do with position and perspective. The general rule is that we use "go back" when there is movement away from the speaker and "come back" when there is movement toward the speaker. However I have encountered a situation where the rule does not really work. Here is a bit of context, I am in the UK and my friend is currently abroad for a week. When I ask her "Have you done xxx yet?" She answers "I will do it when I go back". Even though my friend is abroad, I'd expect her to say "I'll do it when I come back".  Neither of us is a native speaker so I'd like to understand what form is correct and why.   Another situation that I can think of is the followong one:  I text my flatmate: "hey mate, you forgot your wallet at home"  I'd expect him to reply "Thanks, I am coming back!" even though the movement is away from the speaker (i.e. my flatmate). However, he'd definitely call his boss to say "I'll be late because I have to go back home to take my wallet that I forgot".  I am unable to explain to my friend when "come back" or "go back" should be used. Could anyone please help?  Thanks


I'm learning JavaScript and while browsing through the jQuery library I see : (colon) being used a lot. What is this used for in JavaScript?   // Return an array of filtered elements (r) // and the modified expression string (t)    return { r: r, t: t };


What causes a hydraulic jump in flowing water?

I understand that when water flowing at a faster velocity enters an area where it's flowing at a slower velocity, a  occurs. What exactly is responsible for this sudden change? Are there certain variables of the water flow that contribute to the properties of the hydraulic jump such as the jump's height?


I have a webform and would like to run a method to return a list of all of the control ID's from within the form so I can export the list into somewhere like Excel (copy and paste from another object is fine).  Heres an example of what I want to return:  lblName lblAddress txtEmail ddlSelection   How can I go about doing this?