Mammals have an upper lid and small mass  of tissue in the upper corner known as nictitating membrane. This helps keep the eyes clean; birds can moisten their eyes in flight using this membrane without blinking. How does this work?

My eyes tear up when cycling at 15 mph, which is nothing compared to bird airspeeds.  Do birds continuously produce lots of tears and blink a lot, or do the eyes self-moisturize from the inside without need of blinking, or are their eye surfaces just dry most of the time and they don't mind?


I have been looking to download Ubuntu 14.04 ISO image file for hours but all what I can find is either 14.04.2 or 14.04.1 releases.  Could any one give me the links I need ?  Why do I want this precise release? Because other versions will end soon according to this .

In the  of Ubuntu, I see that both the 14.04.1 and the 14.04 versions are offered for download. Do I need them both? That is, is 14.04 a prerequisite for installing 14.04.1? Or can I just download the last version ubuntu-14.04.1-desktop-amd64.iso?


I am using an external Web-cam with a build-in Microphone. When I am using Skype or some other Software it doesn’t recognise the Microphone automatically. So I always have to activate it myself in the Audio Settings. How can I avoid this and set it as default Web-cam.  This PC doesn't have another Webcam or Mic. And the Web-cam is always pluged in.  Ubuntu 12.04 beta with latest updates (I also had this problems with 10.04) Logitech, Inc. Web-cam B500

Each time I want to use Skype, I have to go in the sound preferences. And there, turn the audio-in to "webcam" and uncheck the "mute" button. It's quite annoying. Is there a way to always keep the same configuration ?


x = ['a', 'b', 'c'] y= [[1,2,3],[4,5,6],[7,8,9]]  I want to create a list of dictionaries so the x and y values would correspond like this: output: [{'a':1, 'b':2, 'c':3}, {'a':4, 'b':5, 'c':6}, {'a':7, 'b':8, 'c':9}]

Imagine that you have the following list. keys = ['name', 'age', 'food'] values = ['Monty', 42, 'spam']  What is the simplest way to produce the following dictionary? a_dict = {'name': 'Monty', 'age': 42, 'food': 'spam'}


I am writing an affirmation to motivate myself to be more assertive.  Choice 1: "I am assertive in any situation."  Choice 2: "I am assertive in any situations."  The question is: Should I use the word situation in singular or plural form?

I always thought with "any" I should use the plural, but on the internet I can find both:   It can be found in any book. It can be found in any books Do you have any books? It can be said in any language.  This can be understood by anyone.  It has been used in any form.   So, what's correct?  Is there any rule?


$$\nabla \times \vec{E} =-\frac{\partial{\vec{B}}}{\partial{t}}$$  Applying Stokes' theorem:  $$\oint_{loop} \vec{E} \cdot d\vec{l}=\int_S -\frac{\partial{\vec{B}}}{\partial{t}} \cdot d\vec{S}$$  Where $S$ is any open surface with the loop as its perimeter. Considering the simplicity of the derivation I struggle to see why this shouldn't hold in all cases. However, consider the setup described below:     A uniform magnetic field parallel to the $z$ axis crosses the $x$-$y$ plane in a circular region radius $r$ centred at the origin. A wire loop of radius $R>r$ is also centred at the origin in the $x$-$y$ plane. The field changes with time (but remains parallel to the $z$ axis). Is an EMF induced in the loop?   According to Faraday's law as expressed above, the answer surely should be yes. The integral on the right hand side will not return 0, so therefore the left hand side cannot be 0 and an EMF should be induced in the coil.  Physically, however, the answer surely should be no. An EMF is induced in the wire ultimately because of the magnetic force that acts on the charges in the loop itself, moving them along the loop and producing a potential difference. If the loop itself is not in the magnetic field, then how can the field exert a force on the charges in it?  There is an error in reasoning somewhere here. Where am I going wrong?

I would like to get some elementary intuition into the problem a solenoid fed with a time-dependent current, and the resulting current that such the solenoid field would induce in a loop completely outside the solenoid.  The classic situation is to imagine a perfect solenoid of $n_1$ turns per meter, having radius $a$ and fed by a current $I(t)=I_0e^{-t/\tau}$.  One places $N_2$ coils (all having radius $R>a$) around the solenoid as illustrated by this picture from Haliday&Resnick 10th Edition.      Using the usual Ampère's law argument shows the $\vec B$ field of the solenoid would be completely contained inside the solenoid, and homogenous across the cross section of the solenoid.    If there is a slowly varying current in the solenoid, will there be an induced current?  Presumably the answer is yes (at least according the HR solution manual): if we take the $\vec B$ field of the solenoid to be changing with time as a result of the current changing in time, but $\vec B$ still homogenous across its cross-section and $0$ outside, there is a change in the flux of this field through the surface bounded by the coils, and even though there is no magnetic field outside the solenoid where the coils are located.  The resulting change in flux induces an EMF independent of $R$, the radius of the coils, or for that matter the shape of the coil, provided it completely contains the solenoid.   If you are suspicious about the use of Ampère's law for slowly varying currents, the same solenoid field is obtained explicitly by Das Gupta in  "Magnetic field due to a solenoid." American Journal of Physics 52 (1984): 258-258, starting from Biot-Savart, which certainly holds for quasi-static currents.     But how can one intuitively grasp that no field outside the solenoid induces a current in a stack of coils located   completely outside this solenoid, in the region where $\vec B=0$?   A "classic" explanation might that the field might be $0$ but the vector potential is $\ne 0$, yet it seems this is invoking a lot of heavy machinery for a 1st year physics problem.  Moreover, Aharonov-Bohm-like explanations are really quantum in their nature and show that in quantum mechanics the potentials are the essential quantities.  Nota: a possible path of solution would be to invoke hidden momentum, along the argument .  Is there a simpler explanation?


I'd love to know if anybody got success to use CUDA on Saucy.  I installed it using apt-get, but cannot really understand how to make it work.  sudo apt-get install nvidia-cuda-dev nvidia-cuda-dev   Nvidia is giving  but for previous versions of Ubuntu,   Things are kind of different for saucy.  Any helps is warmly welcome.

I tried to install a CUDA 5.5, following the steps on the Nvidia website, using the deb file for Ubuntu 12.10 (the latest version I could find on Nvidia website), but the installer fail to begin, telling me there are some dependency issues:  The following packages have unmet dependencies.    cuda : Depends: cuda-5-5 (= 5.5-22) but it is not going to be installed.  E: Unable to correct problems, you have held broken packages.


So basically it went like this: 1.) I plugged my phone to my laptop and transferred all my photos. 2.) After having successfully copied the pictures, I deleted them on my phone via the laptop then unplugged it after. 3.) I checked my laptop and there was one album that was empty. I tried checking it on my phone but the album wasn't there. What happened and is there any possible methods in recovering the album?

I factory reset my rooted Android M phone but now I realize that there was a file in the /data directory which I need.  Is it possible to create an image (.img or something similar) of the /data partition so that I could run some recovery software for ext4 on that image? I have a little knowledge about ADB.


I'm a total beginner with Ubuntu and every time I got this message. Please how can I solve it? What do they mean with the message free space on disk '/boot' and how can I fix it?

My /boot partition is nearly full and I get a warning every time I reboot my system. I already deleted old kernel packages (linux-headers...), actually I did that to install a newer kernel version that came with the automatic updates.  After installing that new version, the partition is nearly full again. So what else can I delete? Are there some other files associated to the old kernel images?  Here is a list of files that are on my /boot partition:  :~$ ls /boot/ abi-2.6.31-21-generic         lost+found abi-2.6.32-25-generic         memtest86+.bin abi-2.6.38-10-generic         memtest86+_multiboot.bin abi-2.6.38-11-generic         System.map-2.6.31-21-generic abi-2.6.38-12-generic         System.map-2.6.32-25-generic abi-2.6.38-8-generic          System.map-2.6.38-10-generic abi-3.0.0-12-generic          System.map-2.6.38-11-generic abi-3.0.0-13-generic          System.map-2.6.38-12-generic abi-3.0.0-14-generic          System.map-2.6.38-8-generic boot                          System.map-3.0.0-12-generic config-2.6.31-21-generic      System.map-3.0.0-13-generic config-2.6.32-25-generic      System.map-3.0.0-14-generic config-2.6.38-10-generic      vmcoreinfo-2.6.31-21-generic config-2.6.38-11-generic      vmcoreinfo-2.6.32-25-generic config-2.6.38-12-generic      vmcoreinfo-2.6.38-10-generic config-2.6.38-8-generic       vmcoreinfo-2.6.38-11-generic config-3.0.0-12-generic       vmcoreinfo-2.6.38-12-generic config-3.0.0-13-generic       vmcoreinfo-2.6.38-8-generic config-3.0.0-14-generic       vmcoreinfo-3.0.0-12-generic extlinux                      vmcoreinfo-3.0.0-13-generic grub                          vmcoreinfo-3.0.0-14-generic initrd.img-2.6.31-21-generic  vmlinuz-2.6.31-21-generic initrd.img-2.6.32-25-generic  vmlinuz-2.6.32-25-generic initrd.img-2.6.38-10-generic  vmlinuz-2.6.38-10-generic initrd.img-2.6.38-11-generic  vmlinuz-2.6.38-11-generic initrd.img-2.6.38-12-generic  vmlinuz-2.6.38-12-generic initrd.img-2.6.38-8-generic   vmlinuz-2.6.38-8-generic initrd.img-3.0.0-12-generic   vmlinuz-3.0.0-12-generic initrd.img-3.0.0-13-generic   vmlinuz-3.0.0-13-generic initrd.img-3.0.0-14-generic   vmlinuz-3.0.0-14-generic   Currently, I'm using the 3.0.0-14-generic kernel.


I don't have an IT background so be patient with me, please.  I have an Ansible file (.yml) for glassfish configuration service, that was built for CentOS.  I'm trying to "transform it" for use it with Ubuntu 14.04.  In the file I have this:  name: Execute shell script - configure service glassfish - chkconfig --add glassfish warn=no       shell: chkconfig --add glassfish warn=no      - name: Execute shell script - configure service glassfish - chkconfig glassfish on warn=no       shell: chkconfig glassfish on warn=no      - name: Start service glassfish       service:           name=glassfish           state=started   I searched and found that chkconfig is not a valid command in Ubuntu.  What should I use to replace the following commands?  chkconfig --add glassfish warn=no chkconfig glassfish on warn=no

I've become very accustomed to managing service startups on Redhat/RHEL platforms using chkconfig though that doesn't appear to be the Debian/Ubuntu way - How do I update runlevel information for system services on Ubuntu?  Ultimately looking for the equivalents of:  chkconfig --add <service> chkconfig --level 345 <service> on chkconfig --del <service>


I've found in  a strange syntax:  struct foo {     int bar;     int baz; };  typedef int foo::*foo_member; foo_member m = &foo::bar;   I still do not understand the type foo_member, what does type int foo::* mean?   Even more confused, what is &foo::bar in the initialization  foo_member m = &foo::bar;   and  foo AS1* f = /* ... */; f->*m = 4;   I suppose that means f->bar = 4 (or not?), what does syntax f->*_variable_ mean?  Many thanks for any response.

I came across this strange code snippet which compiles fine:  class Car {     public:     int speed; };  int main() {     int Car::*pSpeed = &Car::speed;     return 0; }   Why does C++ have this pointer to a non-static data member of a class? What is the use of this strange pointer in real code?


From my understanding so far (at least I think) the password_hash() function generates a hash based on the algorithm in use, cost and the salt. While the password_verify uses the information provided from e.g. password_hash($pass, PASSWORD_BCRYPT, array('cost'=>10)) to check if the retuned value is true or false as it contains all the information necessary for verifying.  I previously used   $SQL_Query = "SELECT * FROM DB_Table WHERE userName = '".$username."'" AND password = $ID;  which would work as they were stored in plain text and could return true whereas logically it won't work this time around.  I have came across similar questions where they use static passwords in explanations such as  <?php  $to_verify = '$2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq';  if (password_verify('rasmuslerdorf', $to_verify))  {     echo 'Password is valid!';  } else  {     echo 'Wrong password.'; }   The concept I am having trouble understanding is how one would check the password input against the hashed value if it is stored in a database rather than the being known by the page at that point in time? I recently got help regarding storing the values which was a silly error on my part but I guess this isn't clicking with me as well as I hoped for the moment.

It is currently said that MD5 is partially unsafe. Taking this into consideration, I'd like to know which mechanism to use for password protection.  This question,   suggests that hashing multiple times may be a good idea, whereas  suggests using salt.  I'm using PHP. I want a safe and fast password encryption system. Hashing a password a million times may be safer, but also slower. How to achieve a good balance between speed and safety? Also, I'd prefer the result to have a constant number of characters.   The hashing mechanism must be available in PHP It must be safe It can use salt (in this case, are all salts equally good? Is there any way to generate good salts?)   Also, should I store two fields in the database (one using MD5 and another one using SHA, for example)? Would it make it safer or unsafer?  In case I wasn't clear enough, I want to know which hashing function(s) to use and how to pick a good salt in order to have a safe and fast password protection mechanism.  Related questions that don't quite cover my question:


Can anyone explain me Difference between late night & early morning ?  "I slept early morning".Is this sentence correct ?  What time is called morning ? After 12:00 AM ?

I have learnt these words so far, please correct me if I'm wrong:   Dawn, maybe 4am–6am? Morning, maybe 6am–9am? The food for the morning is called breakfast. People greet each other Good morning! Noon, maybe 11am–1pm? The food is called lunch. Afternoon, maybe 2pm–4pm? People greet each other Good afternoon! Evening, maybe 6pm–9pm? The food for the evening is called supper. People greet each other Good evening! Night, maybe 9pm–11pm? However, Good night means "have a good sleep". Mid-night, maybe 11pm–1am?   You see, I've missed some parts of a day, I may be not correct on the time boundaries of each part, though.  I would like to complete the list, especially the part after the morning but before the afternoon. My teacher never told us to use the word noon, and good noon seems never used by anyone.  I would like to know each part of a day, its corresponding food term (like lunch, supper, etc.), and its corresponding greeting words, thanks.  Summary  I'll update the table to reflect the answers:  Part          Begin End   Meal             Greeting ------------- ----- ----- ---------------- --------------------- morning/dawn   0:00  5:00                   early morning  5:00  6:00                  Good morning morning        6:00  9:00 breakfast        Good morning mid-morning    9:00 11:59 elevenses/       Good morning                           morning tea/                           brunch noon          12:00 12:00 - afternoon     12:00 17:00 lunch/           Good afternoon                           afternoon tea evening       17:00 21:00 supper           Good evening night         21:00 23:00 night-time snack Good evening midnight      23:00  1:00 midnight snack   Good night


The following is the problematic example:  \documentclass[12pt]{article} \usepackage{longtable} \usepackage{tabu} \usepackage{array} \usepackage{lipsum}  \begin{document} {\setlength{\tabulinesep}{3pt}   \begin{longtabu}to \textwidth { | m{2cm} | X[c] | }         \hline         Item & item \\         \hline         Item &          \begin{enumerate}             \item \lipsum[1]             \item \lipsum[2]             \item \lipsum[3]             \item \lipsum[4]         \end{enumerate}\\         \hline \end{longtabu} \end{document}   It generates two pages     There are two problems:   The enumerate list is split with first row, leaving the first row in the first page lonely. The enumerate list is directly running out of the second page. How to solve this in longtabu?   Can't latex just achieve the effect of MS word? In MS word, you just keep typing with list like, and they automatically across the page like this

Note: My hope is that this can become a general resource for "use a list instead" comments. If you have suggestions for improvement, please let me know.    I often see comments such as      This layout should be typeset using a list, not a tabular.   and (my favorite, paraphrasing because I cannot find the exact quotation right now)     If every tabularx with an lX preamble was a list instead, the world would be a better place.   This is all well and good, and I can see the benefits (chiefly: page breaking mid-"row" and without specialty table packages).  A description environment gets close, but it has a fixed left indent that does not depend on the longest item name.  The  at  shows a way to do this using the environ and enumitem packages.    What other methods do you use to achieve this layout? I'd like to avoid manually specifying the longest label (its width, essentially). This is something that tabularx does not require, and I don't want it to be required in the solution to this problem either, if I can avoid it.    Alternatively, what other layouts are recommended for this type of content? Examples of common document elements for which tabularx is used include nomenclature lists and other lists of notation.    MWE  \documentclass{article} \usepackage{tabularx} \usepackage{lipsum} % just for blind texts \newenvironment{mylist} % what else goes here?   {\trivlist}   {\endtrivlist}  \begin{document}  \section{trivlist version} \begin{mylist}   \item[Text 2] \lipsum*[2] \end{mylist}  \section{tabularx version} \noindent \begin{tabularx}{\textwidth}{@{}lX@{}}   Text 2 & \lipsum*[2] \end{tabularx}  \section{description version} \begin{description}   \item[Text 2] \lipsum*[2] \end{description}  \end{document}


I am an independent researcher with out a PhD and because of my curiosity in science in my free time I carries out some minor experiments. Using those experimental data I wrote a paper and I want to publish it as a research article.   My first question; Is there any journal available where an independent researcher can publish his/her work?  As I believe no such journals are available I thought of sending my articles to other peer reviewed journals?  But the problem is how will I address my author information   author information is given like this  Nora D. Volkow,1,2 Gene-Jack Wang,3 Joanna S. Fowler,3 and Dardo Tomasi2  1National Institute on Drug Abuse (NIDA), National Institutes of Health, Bethesda, Maryland 20892 2National Institute on Alcohol Abuse and Alcoholism (NIAAA), National Institutes of Health, Bethesda, Maryland 20892 3Medical Department, Brookhaven National Laboratory, Upton, New York 11973 Nora D. Volkow: vog.hin.adin@woklovn   As I am an independent researcher who is not working in the similar field of my research work, how should I give my author information?  Do I give my current employment details as author information  Eka, Supervisor, XYZ company   or my last school details  Eka, University of Earth

Recently my paper is reviewed (by a professor from independent third party) and accepted by a journal. But, my employer allows me to publish this paper only without its name there.  Publishing house is expecting affiliation for each author, i.e. I can not leave affiliation as blank.   What should I write as the affiliation?


I got this question from my mentor.  Marks obtained by 10 MBA students in Statistics paper (out of 50) is given below. 20.5, 18.25, 10.23, 15.47, 35.62, 47.64, 12.30, 29.65, 38.5, 14.79. Test whether the mean score of all students is 20. Where standard deviation is given as 10.  Here we cannot use z-test since n<30 and we know σ. So what should t-test's denominator be? s/√n or simply σ  Please feel free to edit the question

I have a question on reading t-test p-value. If I understand correctly, the t-statistic is computed as:  $t = \frac{\bar{X} - \mu}{\sigma / \sqrt{n}}$  where $\bar{X}$ is sample mean, $\mu$ is population mean, $\sigma$ is sample standard deviation and $n$ is size of sample. Degrees of freedom is $n-1$.  Now, we can see that the t-statistic is inversely proportional to the standard error/variance of the sample population ($\sigma / \sqrt{n}$). Higher $n$ leads to smaller standard error that gives higher t-value. Higher t-value means lower p-value infering that the difference between sample-mean ($\bar{X}$) and population-mean ($\mu$) is significant (hence we reject the null hypothesis).   But this formula seems counter-intuitive to me as bigger sample size (higher $n$) should give sample mean closer to population mean.   How do we explain this?


I have no idea why I select goes wrong like this. Especially when I meet the situation is that I did not even touch any of its, it still selected by me.  Would anyone meet the same problem as like I do? and how to solve this, please?  I reinstalled and re-download the newer one, still the same. (using 2.79 and 2.79a)

I got a new laptop about a week ago, when selecting vertices in blender it keeps selecting random ones around the model. I looked it up and everyone was saying if you have any transparent apps open it would cause this, but all I have open is blender and chrome. Anyone know any fixes?


We know that if $A$ is a self-adjoint unbounded  operator on a Hilbert space $(H;\left<.,.\right>)$ then $\sigma(A) \subset \mathbb R$. Now, how it can be shown that if $A$ is more positive i.e. $\left<Au,u\right> \geq 0$, then $\sigma(A) \subset \mathbb [0,+\infty[$ ?  Thank you in advance

Let $T : \operatorname{dom}(T) \rightarrow H $ be a positive self-adjoint operator, is it then true that $\sigma(T) \subset [0,\infty)$? This is something that sounds natural and I guess that it is true. For bounded operator, this can be easily shown, but the only proof I know cannot be adapted to unbounded operator, so I was wondering if anybody here knows how to show this?


Question: Assume you choose a set of arbitrary $48$ positive integers so that the number of distinct prime factors of all those numbers is $10$. Prove or disprove there always exists a set of four numbers out of the $48$ positive integers of which product is a perfect square.   I think that it uses pigeon hole, but I couldn't make a progress.

Question: Assume you choose any $48$ positive integers so that the number of different prime factors of all those numbers is $10$. Prove or disprove there exists a set of four numbers out of the $48$ positive integers of which product is a perfect square.   I think that it uses pigeon hole, but I couldn't make a progress.


Gravitational waves have been detected emanating from the decaying orbits of massive bodies, such as binary neutron star or black hole systems. To my understanding, two such bodies in what would otherwise be a stable orbit, will instead slowly radiate away their orbital momentum as gravitational waves and spiral inwards towards a merger. My question: if the circular motion of masses in spacetime can be lost as spiral gravitational waves, why can't the linear motion of masses in spacetime be lost as bow/wake shaped gravitational waves, as seen in ? I imagine the answer lies in the linear acceleration of masses compared to the linear inertial motion of them?

Gravitational wave is produced by change in gravitational field, . If something is moving away from me at constant speed, its gravitational field will vary. But why only accelerating bodies produce GW?


I need an app to turn on/off apps at a specified time: turn on transmisson at 0:00 and turn it off at 6:00.  Thanks

I want to schedule a task to run on a regular basis and have heard that Cron is the way to do this.  How do I add Cron jobs in Ubuntu?


I am using LuaLaTeX for a manual and I am running into a spacing issue I am not sure how to resolve. I defined a new command that is simply used to make some text bold. However, I have found that this command eats spaces that follow the command so that the bold word is right next to the word that follows. I don't want to add a space in the definition because sometimes the word comes at the end of a sentence and I don't want an extra space. Below is a sample. How do I get the \lualatex command to behave such that the command does not eat spaces that come after it?  \newcommand{\lualatex}{{\bf lualatex}}  This manual is written in \LaTeX and is processed via the  \lualatex executable. The \lualatex executable has the Lua scripting language embedded which provides a power method of extending the capability of \lualatex.

I have a definition:  \newcommand{\arnold}{Arnold Schwarzenegger}   When I refer to it by:  \arnold is a   it is rendered as:   Arnold Schwarzeneggeris a    In order to have a space in front of "is" I would need to write  \arnold\ is a   Is there some other shorter way?


I need to view the Google music, but that is restricted in our country. Can I access it using any other fake IP address or how to view that?

How do I make it appear that my IP address is coming from one country while I'm located in another? I live in Germany and some websites (like Hulu or Youtube) don't work because my IP isn't in the US. How do I get around this? Do I have to use a proxy or something?  Moderator note Super User does not endorse nor defend any activity which may be used to circumvent local/state/national laws.


I am trying to prove (or this could be false) that   $|x+y| \leq |x| + |y|$

I understand intuitively that this is true, but I'm embarrassed to say I'm having a hard time constructing a rigorous proof that $|a+b| \leq |a|+|b|$. Any help would be appreciated :)


How to use LaTex represent this expression:

I was having some thought about what would be the syntax to make the end point evaluation of derivatives or integrals. Such as making the | with the two end points of evaluation on the top an bottom of the line. Any suggestions would be wonderful.


I have a button object that I want to make clickable and start a new Intent. The buttons layout just fine across the array list, but when I try and add the on click listenter, it comes up with the problem "Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference"  Here is my code:   public class PhotoshootAdapter extends ArrayAdapter{      private List<Photoshoots> photoshootsscheduleList;     private int resource;     private LayoutInflater inflater;     public PhotoshootAdapter(Context context, int resource, List<Photoshoots> objects) {         super(context, resource, objects);         photoshootsscheduleList = objects;         this.resource = resource;         inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);     }      @Override     public View getView(int position, View convertView, ViewGroup parent) {          if (convertView == null) {              convertView = inflater.inflate(resource, null);         }           Button btnPhotoshoot;          btnPhotoshoot = (Button)findViewById(R.id.btnPhotoshoot);           TextView tvPotential;         TextView tvAddress;         TextView tvDateofShoot;             tvPotential = (TextView) convertView.findViewById(R.id.tvPotential);         tvAddress = (TextView) convertView.findViewById(R.id.tvAddress);         tvDateofShoot = (TextView)convertView.findViewById(R.id.tvDateofShoot);          StringBuffer potentialBuffer = new StringBuffer();         for(Photoshoots.potentialDetails details : photoshootsscheduleList.get(position).getPotentialDetails()){             potentialBuffer.append(details.getPotentialName() + "\n");           }         StringBuffer addressBuffer = new StringBuffer();         for(Photoshoots.addressDetails details : photoshootsscheduleList.get(position).getAddressDetails()){             addressBuffer.append(details.getAddress() + "\n");         }         StringBuffer dateBuffer = new StringBuffer();         for(Photoshoots.dateDetails details : photoshootsscheduleList.get(position).getDateDetails()){             dateBuffer.append(details.getDateofShoot());         }         final StringBuffer potentialIDBuffer = new StringBuffer();         for(Photoshoots.PotentialIDDetails details : photoshootsscheduleList.get(position).getPotentialIDDetails()){             potentialIDBuffer.append(details.getPotentialIDDetails());         }           tvPotential.setText(potentialBuffer.toString());         tvAddress.setText(addressBuffer.toString());         tvDateofShoot.setText(dateBuffer.toString());          btnPhotoshoot.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View view) {             Intent intent = new Intent(ShowPhotoshootList.this, schedule_my_photoshoot.class);                 intent.putExtra("PotentialID", potentialIDBuffer.toString());              }         });           return convertView;

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I've looked everywhere in SE for a solution, nothing seems to be working. For no obvious reason cycles rendering is not working, as you can see in the screenshot, here's what I've tried to do:   check/uncheck sequencer in post processing tab. changing between global and local view. switching between layers.   is there anything else I can try?    here's the blend file:

A scene I made is not rendering, at all. This grey screen stays the same and nothing changes.  Here are my settings:  [


got me thinking about conferences.  Stack Overflow has  (for the most part),  with , has , etc.  All in all, great exposure and lots of community support.  But I feel like there's a gap between the big conferences and the meet-ups... The local conference scene.  At least in my area there are lots of , , , etc.  (The links are just for the stuff I know about off the top of my head and have attended in recent months.)  And I feel like the Stack Exchange community has enough of a presence in enough areas that we can perhaps bring something to those local events.  I'm sure it would have to be a lot more formal than the local meet-ups, since sponsorship funds are generally involved.  At the same time it should be much less formal than the big conferences, since Stack Exchange staff doesn't necessarily need to be involved.  The question just becomes, how do we connect the volunteer community organizers (such as the meet-up organizers, who've done a fantastic job) with Stack Exchange on a formal enough level that we as a community can effectively represent the community and the company at these local events?  I've specifically said Stack Exchange rather than Stack Overflow because the latter might not be the only applicable community.  It's certainly the largest, but communities like Server Fault could certainly stand well enough on their own at local conferences as well.  And the groups can mix very easily, being all under the Stack Exchange umbrella.  (For example, I imagine both Stack Overflow and Server Fault could be interested in a weekend event about setting up, administering, and developing against Windows Azure.)  What does the community think of this?  I'd love to hear from users who have organized events in the past and can share their expertise on the matter, as well as Stack Exchange personnel who can speak to the idea from the company's perspective.  Is something like this even viable?  It is something we can drive by features in the current site engine, new small features added to it, a new site altogether, or direct contact between staff and volunteers?  I'll volunteer to help where I can, as I'm pretty much addicted to the local conference scene (at least Microsoft's stuff for now, since that is my bread and butter at work) and there's always a time slot or two (or more) where I'd rather man a booth than stare at a projector screen.  Thoughts?

I read , which states,  Depending on the circumstances and location, we can also sponsor community leaders to attend an event on behalf of their site. We will subsidize your costs to attend, within reason, and provide you with a bunch of swag to use as an ice-breaker when introducing yourself.  This sounds great. But the blog is sparse on the details. What do I actually have to do to get in on this?


If I vote to close a question for some reason (perhaps "unclear"), and then the question is marked as a duplicate, it says     marked as duplicate by T.J. Crowder, Someone, SomeoneElse, AnotherPerson, AFifthPerson   or     marked as duplicate by T.J. Crowder, SomeGoldBadgeHolder [tag]   This is flat-out wrong. I did not "mark" the question as a duplicate.  Could we please only include the usernames of the people who actually did so when saying who marked as a duplicate?

Even though a question may be closed by receiving 5 close votes, the votes do not necessarily need to agree.  I think this is a good behavior, but  (which it was) and found the question was closed as "not a real question".  This is unfortunate, while I'm happy to display my username and acknowledge that I voted to close, I'd like some additional transparency.  That is, if it was a 4-1 vote for "not a real question" vs "exact duplicate" I'd be interested in seeing that level of information.  The point is to be transparent about why the question was closed, and though 5 users may agree the question needs to be closed they may not agree why.  It's important to recognize all the reasons for closure, not just the majority reason.  I'd suggest displaying this information as something like:     closed on Jun 21 at 4:26 as:         not a real question by foo, bar, baz   exact duplicate by alice, bob      Once a question has been closed I'd argue it's more important to understand the rationale than it is to worry about an extra 2 lines of text. If the votes are 2,1,1,1 perhaps keep just 2 bullets, the first showing the majority vote, the second saying "for other reasons" as a summary of the change.  The point is to aggregate the summary by reason.


What is the difference between "I have got to study on weekends" and "I have to study on weekends"?

I am Confused!   Are there any differences between "I have to go", "I had to go", "I've had to go", "I get to go", "I got to go", "I've got to go"?  In which situation is each term used?  I checked this dictionary , & found that      get to do something:  to have the opportunity to do something   Seem like if you have a opportunity to do something, then use "get".  The expression is in present but why we use present perfect tense (Ex: I've got to go) here?


I am travelling from London to Bangalore, with a layover in Amsterdam of 23 hours. What visa or permission do I need to get so I can use this time to roam around Amsterdam?  I am a citizen of India and I have a UK visa.

I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows:  Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland


Below code works properly until I insert new row by jQuery. 'delete' button doesn't work in my new row.   $(".delete").on("click", function() {   $(this).closest('tr').remove(); }); <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> <link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">

        <input type="text" />

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I'm currently undertaking a part time BEng in Digital Embedded Systems Design and Development whilst working as a Control Systems Engineer. When I graduate I plan on doing an MEng in Space Systems Engineering.  After this, I want to move on to some sort of doctoral study. I have yet to decide whether or not I want to do an EngD or a PhD.  Whilst I understand that, on-paper at least, they are equally placed I'm wondering if the EngD option will be seen as less of an achievement due to the taught component and lesser research amount.  Is there any truth to this?    Note on duplication: This question is mainly surrounding the perception, both industrially and academically, of these two degrees.

I have two colleagues who hold doctoral degrees. They are moving to the US within the next couple months. Both of their doctoral diplomas, one from Europe and the other from South America, literally say: "Doctor of Engineering".   We were discussing about this situation and, although they are doctors, I don't know if it would be "legal" for them to use the PhD letters at the end of their names or if D.Eng would be the adequate choice. So far, they have not been asked to do any kind of nostrification process.  Are there any legal, formal or professional implications associated to this or is it just a matter of putting a set of letter at the end of your name?


I had 2 tabs open in gnome-terminal and I detached them by dragging the tab away. Now I have 2 gnome-terminal tabs with my work present, and I would like to clean up my desktop clutter - is there a way to merge them back into a single view?  What it's doing:    What I want:

In a terminal window, I can use File > Open Tab to get two tabs in the same window. Then, if I move the terminal up to the top of the OS, those two tabs become two separated windows.  How can I merge those two windows back to one (like I had before)?


Does anyone know why Google shows my title twice in search results? And it's the wrong title too.  Here's a screenshot:

I'm just wondering how it is possible that IGN.com has this in its title tag:      Video Games, Cheats, Walkthroughs, Game Trailers, Reviews, News, Previews & Videos at IGN   while on Google its title is simply "IGN".   How can one achieve such a thing? Does it use some special meta tag I can't see?


A simple graph with $n$ vertices and more than $\frac{3(n-1)}2$ edges is given. Prove that two different vertices $x$, $y$ of $G$ can be found, such that there exist $3$ non-intersecting each other paths connecting $x$ and $y$.   Two paths connecting $x$ and $y$ are non-intersecting if they do not share a vertex different from $x$ and $y$. Simple means no loops or multiple edges between vertices Not sure about how to solve this problem. I tried to use induction.

The problem states that:     A simple (or strict) graph with $n$ vertices and $m>\dfrac{3(n-1)}{2}$ edges, has two vertex   joined by three independent paths.   Any hints, ideas or useful results, to attack this problem?


I understand that, due to the Doppler effect, different frames of reference moving at different velocities relative to each other will measure different photon frequencies and hence energy.  The amount of energy measured in a frame of reference is specific and unique to that frame.  That was answered in .  However, photons that undergo a redshift due only to the metric expansion of space seem like they lose energy but not because the photon source and observer are in different frames of reference, but because space itself is expanding.  See .  As I understand the expansion of the universe, if a photon was reflected back to its source the source would not measure the same frequency for the photon as when it was emitted due to the elongating of the photon's wavelength by the intermittent metric expansion of space.  How are we to interpret this?  Is the source no longer in the same frame of reference as when the photon was first emitted (thus reducing to the simple Doppler effect)?  Is energy conservation being violated?  Or is the missing photon energy being somehow transmitted into space itself?

If a photon (wave package) redshifts (stretches) travelling in our expanding universe, is its energy reduced?  If so, where does that energy go?


What are best practices for settings (UI) like this? I am looking to find out more about good practices, good UI/UX for this component for removing, adding items to different profiles (profile 1 has different added items than profile 2). Are there any good examples of UI/UX design for this?

Two list-boxes, side by side, one with available items, the other with selected items, with arrows in between to move items back and forth.


I'm confused about what exp to award my players after a battle.   The party fought 22 bandits in 7 waves, that makes 550 exp. The book is clear about how to calculate the XP for difficulty purposes and how to account for waves, that's not the question.  What I'm not sure of is how much each player gets after the battle. Being a party of five do they get 110 XP each or 550 XP each?

At this point, I am unclear as to how to handle encounter XP. Does each surviving party member receive a proportional share, or the full amount? That is, assume a 4-character party had completed an encounter worth 400 XP. Would each party member receive 100 XP, or 400 XP?


As a programmer, I would like to know if there is an upper limit imposed on the string length of a question/answer. And if not, how does Stackoverflow achieve unlimited string length in a database.

There's one question in SO I'm planning to answer with a really long answer. While I'm still baking my post, these questions dawned to me:   What is the maximum character length of a post? How many links can I include, at most? How about the number of images? What is the character limit on the question title? Do the limits on questions apply to answers as well, or do they have different ceilings?


I'm trying to find an idiomatic expression that discards the importance of little details for seeing at the big picture. In Spanish we have a saying that goes something like "Sometimes the trees do not let us see the forest." I was wondering if there is a similar expression that's used in written English.

I'm looking for an idiom or saying that I could use when people are focusing too much on small details and not seeing the big picture.  A couple that come to mind are "being penny-wise and pound foolish" and "rearranging deck chairs on the Titanic". However, the former doesn't fit what I'm thinking of because the present activity might not be wise. The latter implies too much about impending doom.  For example, let's say some company is spending all their time refining a small detail in their product, while ignoring a major opportunity shift in the industry. What phrase could I use there?


I am a Wordpress developer and currently I don't use version control but do keep regular backups before and after altering files of both the database and file system.   I am seriously considering incorporating git into my workflow, not only to try and streamline how I do things but to do things the 'proper' way.   I have been doing a hell of a lot of reading about this and trying to get my head around a complete change in my workflow.   Here is my current configuration: develop site locally using MAMP Pro and manually dump database, upload to VPS using PHPmyadmin and edit the sites urls using queries and then FTP the wp-content folder to my dev. 'staging' sub domain and when everything is approve then repeat the process to the live domain.   I've never had problems with having no backups due to the amount of backups I have but I like to keep up to date although I'm quite far behind in the times now.   The way I've currently planned on doing things now from what I've read is to develop locally, push wp-content to git when finished for the day and pull when going to start working again.   Once I've finished working locally I'll pull the pushed git from my repository which I plan on hosting on my synology nas to my dev. sub domain and then when that's approved do the same to the live domain.   I think that seems correct but please advise if someone can suggest a better way!!  My main queries are, how do I keep the databases up to date? Do I manually dump and import databases and edit the urls using queries or can I streamline this too? I've seen plugins like revisr but haven't seen a great deal on the web about this so just after advise.   I ssh in to my VPS from time to time and have various raspberry pis doing different things so fairly confident with the command line but the whole git thing is a bit daunting.   Any advise will be GREATLY appreciated. I've tried to make everything clear but obviously if anything above doesn't make sense (hopefully it does) then I'll try explain clearer.

I know this question has been asked a thousand times, but I'm really trying to work out how to get the best out of Git when working with WordPress.  I've scoured the web and read dozens of articles, all that seem to cover the topic briefly. Here's a few of the most notable one's I've read recently.        Currently, my workflow looks like this.   Install WordPress locally Develop Theme Export WordPress Databases from local server Import WordPress Database to remote server Upload WordPress files and theme via FTP Client makes changes Download WordPress files and theme via FTP and export WordPress Databases from remote server Replace files locally Make development changes Re-upload via FTP, export and import database to remote server   I realise Git can streamline this process. It seems the best way to do this is to have a .gitignore file that ignores certain directories that don't need to be tracked, as well as having both a local and remote wp-config.php file.  But how do you handle the databases? Clients will usually make changes (posts/pages/plugins). Do I still need to export from the remote database and import back on my local server?  Can someone suggest the best workflow for me here? And walk me through the steps.  Also, I'd probably like to use Bitbucket as private repos with them are free, unlike GitHub.  Any help would be appreciated.  Thanks in advance!


I understand that the first number is the tire diameter, so on that part I know it will fit, and that the second number is the tire width and that's my main concern.  I want to put winter tires on my bike and all the studded winter tires that I find are 35C. Will they fit on my wheels if I currently use 23C and 25C?

We often get questions on bicycles.stackexchange about fitting wider or narrower tires to bicycles. We have a large number of these with answers suiting the specific bike or style of bicycle in question, but I have been unable to find one that provides a generic answer covering off all things that need to be considered. For most bicycles, the answer is the same regardless of the specific style and sizes of tires in question.   This is intended as a canonical question that we can point closed questions to.


I understand that occupying the corners is desirable, as a counter placed there can never be flipped. Also, placing a counter on a square next to a corner seems to be bad as it usually hands the corner to your opponent.  What other tactics are useful to know?

I have played the game Othello (Reversi) numerous times but I never approach it with a specific logic or algorithm to apply on each move in my mind. I won many times and lost as much. How would one approach this game? How would one work in his mind to prune the possible moves and choose the "right" one in each step? I see that most Othello CPUs more or less "think" the same at each move, how should I think on each move?


How can I add a number to the following system of equations so that the first equation take the number (1.a) and the second (1.b)?   \begin{equation} \left\{ \begin{array}{l} \begin{aligned} x_k & = f_d(x_{k-1},u_{k-1},\theta) + q_{k-1}\\ y_k & = h(x_k,\theta,k) + r_k  \end{aligned} \end{array} \right. \label{eq:State} \end{equation}

As much as I have tried, it doesn't seem possible to use separate labels when using a casesconstruction (from the amsmath package).  Ideally, I would like to be able to write something like  \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} f(x)=\begin{cases}   1&x\geq0\label{positive}\\   0&x<0\label{negative} \end{cases} \end{equation} \end{document}   and later refer to both cases at different places. What would be the best way to achieve this result?


I am trying to pass a variable A1 into a function and change it from 0 to 1 (and back). The argument note_switch is changing from 0 to 1, when logged on the console, but the variable A1, which takes the place of note_switch, is not changing. What's going wrong? var A1 = 0  function square_on_off(note_switch,note_id) {   console.log(note_switch);   console.log(A1);   if (note_switch == 0) {     note_switch = 1;     change_colour(note_id,"blue");   } else {     note_switch = 0;     change_colour(note_id,"red");   }   console.log(note_switch);   console.log(A1); }  function onA1() {   square_on_off(A1,"A1"); }

The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?


I am new at SQLite (using n Android). my question is i have a table which has multiple latitude and longitude points, corresponding to the path traveled by a person. means first entry of longitude and latitude is when person started moving and last point shows where person stopped.  How can I get the values of lat long from the database and find the distance person traveled.  My table contains the following attributes-   numbering auto increment, by which i want to sort entries and calculate distance. Latitude Longitude Accuracy   Kindly help. Thanks in advance.

How do I calculate the distance between two points specified by latitude and longitude?  For clarification, I'd like the distance in kilometers; the points use the WGS84 system and I'd like to understand the relative accuracies of the approaches available.


I want to remove the red color around the table of contents. How do I do that? Below there is a picture of my table of contents and my preamble:    \usepackage[backend=biber,style=authoryear,autocite=inline]{biblatex} \addbibresource{Bibliography.bib} \usepackage[labelfont={bf, it}]{caption} \captionsetup{font=footnotesize, textfont=it} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{float} \usepackage[normalem]{ulem} \useunder{\uline}{\ul}{} \usepackage[T1]{fontenc}  \usepackage[table,xcdraw]{xcolor} \usepackage{multicol} \usepackage{adjustbox} \usepackage{array} \usepackage{wrapfig} \usepackage{multirow} \usepackage{tabu} \usepackage{rotating} \usepackage{amsmath} %\usepackage[table,xcdraw]{xcolor} \usepackage[a4paper, total={6in, 9in}]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead[L]{\fontsize{10}{12}} \linespread{1.5} \usepackage{times} \usepackage[none]{hyphenat} \sloppy \usepackage{hyperref} \usepackage{textgreek}

I know that I can use  to make cross-references and hyperlinks clickable.  That makes the clickable areas outlined in fluorescent green, however.  How can I make the green boxes go away?


I've seen a number of answers on here and other places that if I have a file path in Blender, I can use bpy.path.abspath(file_path) and get the absolute path to a file or directory. My problem is that I have a StringProperty with subtype = 'DIR_PATH' set and I'm having problems with what it displays:  The path is set to /User/<my_name>/Documents/Dev/3DGraphics/3DExperiments, however notice only two slashes show. The StringProperty is showing a path relative to the current file in Blender. When I select another directory, it still gives me a relative path. I'm using this structure: class BluePrinterData(bpy.types.PropertyGroup):     status: bpy.props.StringProperty(         name="status",         default="Waiting for Cameras to be Added"         )     project_name: bpy.props.StringProperty(         name="project_name"         )     save_directory: bpy.props.StringProperty(         name = "",         description = "Output Directory",         default = '',         maxlen = 1024,         subtype = 'DIR_PATH'         )     file_format: bpy.props.EnumProperty(         name = 'File Output Format',         description = 'File format for saving images',         items = {('png', 'PNG', 'Save as PNG'),                  ('pdf', 'PDF', 'Save as PDF'),                  ('bmp', 'BMP', 'Save as BMP'),                  ('tiff', 'TIFF', 'Save as TIFF')},         default = 'png'         )  Note the 3rd property down, save_directory, is the one I'm talking about and I've set the subtype as needed. I've tried adding an if statement to change the path to absolute if it isn't, but that doesn't make a difference. The one thing I'm trying to do here is make sure that instead of seeing the relative path in the StringProperty, I see the absolute path. I've looked over API docs, but I can't find what I have to change to display an absolute path. (Again, please note I know when I need that absolute path in Python, I can convert - but I can't find a way to convert what the StringProperty with the subtype = 'DIR_PATH' to show the absolute path.)

I have a StringProperty(subtype="FILE_PATH) and I am trying to make it so the user selects a folder and then a file is saved out to the location, but the filepath comes out looking really funky.  The folder selected is D:\Pictures, what the StringProperty shows is //..\..\. What is going on here?


I am working on a requirement wherein string(as a combination of boolean values) is to be evaluated. eg: '(TRUE && TRUE)'. Boolean.valueof() seems to work only with single stringified boolean eg : boolean.valueof('TRUE'). I was wondering if there is an OOTB way to convert the string to object form and then convert object to boolean. Something like:   String str = '(TRUE && TRUE)'; Object obj = str; Boolean bool = (Boolean)obj;

Does anybody know if there is a way to evaluate a string containing boolean-logic at runtime? My logic, can only contain three operators and parenthesis (AND, OR, NOT). I can even make the string look like this: true && false && (true || !true)  I don't have the bandwidth to build a full-on parser... Any ideas?  PS: I saw some answers that pointed to the use of an API but I don't have access to use the Toolkit API in the environment this will get deployed.


If they are needing to get back into USA is an eBay card actually helping them or is it a scam

On Travel.SE we often see questions about a person (usually a love interest) asking for money to pay for airfare, visas, permits and other expenses. For example        What general advice can be given in such situations to the person asking the question? Is it all a scam or can there be legitimate situations in which an online friend could be asking for money?


How can I contact someone on stackoverflow.com to check my post history?(I think I uploaded a question on a certain date but it is shown as being uploaded yesterday, I did try deleting it more than one time). I need to contact someone who can help me with post history issues.

I was wondering how do I contact the moderators on Stack Exchange and how do I figure out who they are? How do I contact them privately?


With the new release of 20.04 LTS. How can I upgrade my 19.04 to this newest version? Or do I have to upgrade to 19.10 first?

I am currently using Ubuntu 10.04. I know there is a 10.10 release, but can I upgrade directly to 11.04? Could you walk me through the steps please?


In this question:    One answer said "You're basically making a bet that the market is wrong".  Another answer said "You're betting against the experts that play the game. Why do you think you're better than they are?"  Another answer said "You are not the smartest kid on the block... smart people have looked at things, and using their risk profiles, have determined what they are willing to risk in terms of their investment in the Ruble, compared to other places. If you disagree with them, then invest now in the Ruble, and bet against those people who generally know the systems better than you".  All these answers make perfect sense. But, they seem to be true for any other investment. For example, there may be a stock which seems promising at the current price. But, there are experts who are much smarter than I am, and if they trade the stock at its current price, then they probably know that it doesn't worth so much as I think it is.  The same argument is true for bonds, ETFs, real estate... virtually any other investment.  So, suppose I am not an expert, since I have a full-time job which doesn't leave me any time to read detailed financial reports of stocks and other financial stuff - it seems that the only logical conclusion is that I should stay away from investments entirely.  Is this true?

Given that hedge funds and trading firms employ scores of highly intelligent analysts, programmers, and managers to game the market, what shot does the average person have at successful investing in the stock market?  What's the best strategy for the average person who doesn't have time every day to follow in detail what's going on with specific companies, the market, etc? Would ETFs in growing industries be the way to go? Or is the best strategy to just stay out and go for more stable investments like bonds?  Any advice would be appreciated.


At the end of the movie Enemy, Helen transforms into a gigantic terrified spider.  Also, there has been spider imagery throughout the film, beginning with the opening scene in the sex club, followed by two dream-sequences    spider-headed woman walking on the ceiling and  gargantuan spider crawling over the cityscape.   Is all this somehow connected?

There are a lot of weird visions about spiders in  and I was wondering if that signified something about the character?


I was wondering if after starting the session, session_id automatically stores a value? or does session_id will ever have a value if some user successfully logged on the page?

How unique is the php session id? I got the impression from various things that I've read that I should not rely on two users never getting the same sessionid. Isn't it a GUID?


I am trying to implement a program that samples from two identically distributed Bernoulli random variables, $X_1$ and $X_2$, such that they have a specific correlation coefficient, $\rho$. I found a post that almost does what I want to do:  However, the parameter $p$ of the Bernoulli distributions is dependent on $\rho$, i.e., I can't leave $p$ fixed and generate samples with a desired $\rho$. In theory, I do not see any reason why this should not be possible.

I was wondering if it might be possible to generate correlated random binomial variables following a linear transformation approach?  Below, I tried something simple in R and it produces some correlation. But I was wondering if there is a principled way to do this?  X1 = rbinom(1e4, 6, .5) ; X2 = rbinom(1e4, 6, .5) ;  X3 = rbinom(1e4, 6, .5) ; a = .5  Y1 = X1 + (a*X2) ; Y2 = X2 + (a*X3) ## Y1 and Y2 are supposed to be correlated  cor(Y1, Y2)


I'm 99% a console gamer. My brain prefers that I have a controller in my hand. However, when a game requires that I use a thumbstick/control stick/analog stick to aim/target, I enter a world of frustration. So I usually stick with platformers.  When I do play games that require aiming/targeting with a thumb stick, seems I only have two speeds: extremely fast, shooting past the enemy, or creeping the enemy, never making it there. It gets even worse when I need to reposition the camera with the other thumb. I can feel the bad guys laughing at me. It's humiliating.   How can I improve my thumb-stick aiming? I'd like to expand the repertoire of games I enjoy.

I have played Half Life and Counter Strike since 2001 and many others since, so I have some years of experience in playing First Person Shooter games on computers, with mouse and keyboard. While I am not very good, I manage to almost always be in top 5 players on my team.   However, when I play on the PS3, FPS games like Wolfenstein, or games that are not FPS but occasionally need some aiming like Uncharted or Fallout 3, I am totally lame, and end up dying even on easy difficulties.  Has someone with the same problem published a guide that I will be able to follow and improve myself?


From old times i always remember everybody saying you should separate windows partition from others, i don't see any strong reasons to do that. I search a little about this but other than better organizing over my data and something like these i can't find any other reasons. So i wonder is it really a good reason to separate windows partition from others? is it affected performance in any kind? Is it a difference between small and large size HDDs? I'm exclusively talking about latest windows 10 release.    UPDATE what i mean about separating windows partition from others is you create a partition just for windows and use another partition for installing applications and store other personal data. i wonder is this behavior affects number of system calls to hard disk and is it faster for operation system to work with multiple small partition instead of one big partition?

I have a 100GB hard drive in my Win XP Pro desktop. I use an external 250GB drive for backups, and am wondering if there would be any advantages to partitioning my internal hard drive.   I understand that some people like to keep their OS and programs on one partition, and their data on another partion on the same hard drive.  I'd like people to list the advantages, or note any disadvantages.  Thanks.


I have to return my work laptop soon and would like to delete all my personal files so they are not recoverable at all.  I was thinking of using the terminal command rm –rf / but I'm not sure if this would leave the computer in a state that my company could recover it from.

I have a Macbook Pro with SSD and I would like to completely erase every single bits of data on it. How would I do that? On a PC, I would just run Darik's Boot And Nuke, but can I run it on a Mac too, or is there a better alternative?


I have a random number generated, then I use round to get it to 2 decimal places.   Occasionally I get an integer such as "2" i would like this to be displayed as "2.00"  Or when I get "3.1" to be displayed as "3.10"  I have tried rounding to 2 d.p using round()  import random  #this creates a number between 2 and 5.99 by adding a decimal to an integer then rounds the sum to 2 d.p  def second_question():     temp_var_4 = random.randint(2,5) + round(random.random(),2)     print(temp_var_4) second_question()   No error messages just returning some numbers to integers or to one d.p

I want a to be rounded to 13.95.  >>> a 13.949999999999999 >>> round(a, 2) 13.949999999999999   The  function does not work the way I expected.


Say I have a double x, whose value is > 0 and < 1 million. I want to move its decimal point left until it is > 1 million and < 10 million. So for example, 23.129385 becomes 2313938.5.  What I'm doing now is just multiplying by 10 until reaching the stopping condition. However I'm performing this algorithm a lot so if I can optimize it somehow it would be helpful. A constant time solution, irrelevant of the magnitude of x, is obviously ideal but so far I haven't been able to come up with one.

What is the most efficient way given to raise an integer to the power of another integer in C?  // 2^3 pow(2,3) == 8  // 5^5 pow(5,5) == 3125


I wrote the following code: for (Character currentChar : userDocuments.keySet()) {     List<QueryDocumentSnapshot> currentList = userDocuments.get(currentChar);     if (currentList == null) {         userDocuments.remove(currentChar);         continue;     }     for (int index = 0; index < currentList.size(); ++index) {         final String currentFullName = currentList.get(index).getString("full_name");         if (currentFullName == null || !(searchText.contains(currentFullName))) {             currentList.remove(index);         }     }     if (currentList.size() == 0) {         userDocuments.remove(currentChar);     } }  I want to iterate over a map Map<Character,List<QueryDocumentSnapshot>> check if the full_name (field of each QueryDocumentSnapshot) contains searchText and if it's not, remove this element from the list. In case list is empty, remove the entire list. But for some reason I get java.util.ConcurrentModificationException on the first line. Also, how can I use contains without case sensitive?

I am using a Collection (a HashMap used indirectly by the JPA, it so happens), but apparently randomly the code throws a ConcurrentModificationException. What is causing it and how do I fix this problem? By using some synchronization, perhaps?  Here is the full stack-trace:  Exception in thread "pool-1-thread-1" java.util.ConcurrentModificationException         at java.util.HashMap$HashIterator.nextEntry(Unknown Source)         at java.util.HashMap$ValueIterator.next(Unknown Source)         at org.hibernate.collection.AbstractPersistentCollection$IteratorProxy.next(AbstractPersistentCollection.java:555)         at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)         at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)         at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)         at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)         at org.hibernate.engine.Cascade.cascade(Cascade.java:130)


Can we use AM-GM inequality proof method? I need a hint for proof.  Similar question:   If $a,b,c \in \mathbb R$ and $a,b,c > 0$, then $$ \frac{1}{a^3+b^3+abc}+\frac{1}{b^3+c^3+abc}+\frac{1}{c^3+a^3+abc}\le \frac{1}{abc} $$

if $a,b,c$ are non zero positive reals prove $$\sum_{cyc}\frac{1}{a^3+b^3+abc} \le \frac{1}{abc}$$ I have used A.M  G.M  inequality as follows:  $$a^3+b^3+c^3 \ge 3abc$$ adding $abc$ both sides we get  $$a^3+b^3+abc \ge 4abc-c^3=c(4ab-c^2)$$ so  $$\frac{1}{a^3+b^3+abc} \le \frac{1}{c(4ab-c^2)}$$ But since $a,b,c$ are positive reals  $$4abc-c^3 < 4abc$$ so  $$\frac{1}{4abc-c^3} \gt \frac{1}{4abc}$$  but i am unable to proceed here


In my project i am using the btach file to start the exe file. This batch file is triiggered from an external source(may be another exe). It works as expected. But it opens a console. We don't want any conosole to displayed.  Is there any way where we can hide this console.  We tried with -- console suppress, could not get the desired results.

This is a batch file in Windows.  Here is my .bat file          @echo off copy "C:\Remoting.config-Training" "C:\Remoting.config"  "C:\ThirdParty.exe"   This works fine except the .bat file leaves the command window open the whole time the "ThirdParty" application is running. I need the command window to close.   I would use the short-cut for the application but I must be able to run this copy command first (it actually changes which data base and server to use for the application).    The ThirdParty application does not allow the user to change the source of the db or the application server.    We're doing this to allow users to change from a test environment to the production environment.


For the following ring isomorophism question: Let $\mathbb{Z}^{*}$ be n integral domain defined by the following operations: $a\oplus b=a+b-1$  $a\odot b=a+b-ab$, where $a,b\in \mathbb{Z}$  Show that $\mathbb{Z}$ and $\mathbb{Z}^{*}$ are isomorphic.   I need to construct a homorophic bijective function $\phi(x)$ which maps $\mathbb{Z}$ to $\mathbb{Z}^{*}$ $\phi(x)$ is a one variable function but both $a\odot b$ and $a\oplus b$ are binary operation consisting of two element.  I am assuming that when either $a\odot b$ or $a\oplus b$ and gets plugged into $\phi(x)$, it is treated as a single variable.  But because of the following property of homomorphism: $\phi(ab) = \phi(a)\phi(b)$, I can write $\phi(a \odot b)$ in terms of $\phi(a)$ and $\phi(b)$  Also, I know of the following facts after doing some calculations. $a\oplus 1=a$  $a\oplus 1-a =0$  $a\odot 1=1$  $a\odot 0=a$  $a\odot \frac{-a}{1-a}=0$  The function $\phi(x)=1-x$ is the supposed function. The supposed function seems to be found by making use of the additive zero element/multiplicative identity $1$ and let $a\odot b=1$ so that $1 - a\odot b=(1-a)(1-b)$. We then obtain $\phi(a\odot b) = \phi(a)\odot \phi(b)=(1-a)(1-b)$.  What I want to ask is, is this a general strategy I can use for showing isomorphism between other rings, where one of the rings are defined by a different set of defined addition and multiplication operations.  Thank you in advance

For (b) the neutral element is $0$ since $a◦0 = a + 0-a0 = 0$ and $0◦a = 0 + a-0a = 0$, then element is invertible for all a in S must be $a◦ 1 = a + 1-a1 = 1$ and $1◦a = 1 + a-1a = 1$. I have not been able to prove the closure law of ◦, could someone help me? For Part (C), let $\phi :U(R)\rightarrow S$. $\phi$ is given by $a \mapsto a+x-ax$ ?


Good morning, I have written the following APEX Trigger and it does seem to work in my Full Sandbox.  My question being I am trying to learn on the fly here is can anyone help me with TestCode for it PLEASE so that I can move it into production? Thank you in advance!!!  trigger newContactRequestConvert on Account_Request__c (before Update)  {     List<Contact> contacts = new List<Contact>();     List<Contact> Update_contacts = new List<Contact>();     List<Account_Request__c> aRequest = Trigger.new;     for (Account_Request__c ar : Trigger.new) {         if (ar.Contact_Request_Status__c == 'Convert') {             Boolean Enterprise = ar.Contact_Type__c == 'Enterprise';             Boolean Media = ar.Contact_Type__c == 'Media';             if (Enterprise || Media) {                 Id rtId = Enterprise ? '012000000000lHu' : '012000000000lGm';                 Contact converted = new Contact(                         RecordTypeId = rtId,                         FirstName = ar.First_Name__c,                         LastName = ar.Last_Name__c,                         Title = ar.Contact_Title__c,                         Email = ar.Contact_Email__c,                         Phone = ar.Contact_Phone_Number__c,                         Contact_Requested_By__c = ar.Contact_Requested_By__c,                         Contact_Requested__c = 'Yes'                         );                  List<Contact> con = [select id from Contact where FirstName=:ar.First_Name__c and LastName= :ar.Last_Name__c];                  if( con.isEmpty() ){                      System.debug('Check if the contact already exists');                      contacts.add(converted);                   }                                     }                                                              }                                                     }  insert contacts;

How do I write a unit-test / test class for a trigger?  What are my options?   Inline with the trigger?  New Class?


I am using an usb drive configured to install ubuntu on my laptop. The laptop is Acer Aspire E5 with Intel Celeron N2940, 4gb ram and 500 gb hdd, currently with windows 10. The usb installer was made with pendrivelinux with the fat32 system, in order to install Ubuntu 14.04.3 LTS. I have also disabled secure booting, but it seems the installer in stuck on this image:    The dots are not turning on/off like at the start, and the cooler starts running for 5 seconds every half a minute. Yes I'm sure I downloaded the iso properly, as this is the 3rd time I've redownloaded it and put it on the usb drive. Please give me any solution, I'm willing to try what you propose and post results. Thanks in advance.  Edit for steps:   turn on pc holding f12 to bring up the boot menu obviously select the usb hdd I get 4 choices: try ubuntu without installing, installing ubuntu, oem install and checking for defects. by simply selecting install ubuntu and pressing enter, 5 dots appear and flash in order. After one minute, they stop. No language select, no nothing. restart and go back to 3: I entered command editing and replaced the quiet splash with nomodeset, then f10 to boot. big list of operations and initialisations etc. At one point it stops:  [57.963662] dw_dmac INTL9C60:00: invalid resource.    Same thing, stuck with cooler starting to work from time to time.    edit2: the computer didn't even want to boot the usb installer with the 32 bit (i386), the bios did not detect it. I did try twice. Both the original image and the steps are made with the amd64 version.  edit3: I looked up the problem and kept searching on the internet, when I stumbled on someone suggesting I use ACPI=off. I gave it a go and I did not get any more errors, although most laptop features got turned off, including the touch pad. Then I got the following error:

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


There is situation like this:  <select id="trollSelect">     <option value="PL">Polish Troll</option>     <option value="EN">English Troll</option>     <option value="JP">Japanese Troll</option>     [...] //more options created dynamically </select>   Option values and Option texts are unsorted in Select. Is this possible to sort this options in JQuery or Javascript by value or text alphabetically ??  The result should be like that:  <select id="trollSelect">     <option value="EN">English Troll</option>     <option value="JP">Japanese Troll</option>     <option value="PL">Polish Troll</option>     [...] //more options created dynamically </select>

I have jQuery but I'm not sure if it has any built-in sorting helpers. I could make a 2d array of each item's text, value, and selected properties, but I don't think that javascript's built in Array.sort() would work correctly.


I am on a Chromebook and am running a chroot. My Ubuntu version is 16.04.6 I want to upgrade to a newer version. Is this possible? If I look online, it says to open a program called update manager. For me, that program does not exist and when I type in the command to get that program, it says HTTP quit unexpectedly. Can anyone help?

I'm really struggling to update my ubuntu os... I've got three different versions of it on my pc namely Blackbox, twm & Kde/ kubuntu. However I can't access my software updater from any of them neither will my normal auto updates show.  Any suggestions please


I have recently accepted a free-lance job to typeset a book in LaTeX for a publisher. I'm not a professional graphic designer, but I have been working with this tool for a long time now. Now I even realize I charged a fraction of the market price for such a job (why should I earn less than someone who just uses a different tool?), but that's not really the main issue.  The client has asked me over and over for changes, not only design but also copy-editing work, some of which I declined to do.  Now the job is practically done (all that is left is to include the ISBN number), and after serious delays to receive my pay, they still want me to send not only the .pdf (whose final version I had already sent) but also the source file.  I'm afraid they'll either mess up with my job (which took me quite some time to accomplish in detail) or take my design/programming and send to someone else who'll do the easy job of "adding stuff" (or even make it a template for future books).  Should I really send them this source file? If yes, should I charge more for this?

If you design a piece for print. It gets reproduced several times over the course of a few years. Then the client doesn't return for any work for a few more years. And suddenly you are contacted asking for native files (Indesign, Illustrator, Photoshop). As the client puts it, "We just want to be able to make minor changes, we aren't designers."  Now, there is absolutely value in the native files. They are my "secret recipe" as a designer and anyone asking for that recipe should provide compensation for the ease of reusing, repurposing, and altering the recipe.  How do you explain to this client that there is value in the native files?  How do you counter the "But we already paid for the design." argument?  Note: I know I own the files. I know my contract states I own the files. Heck even without a contract, US Copyright law states I own the files.  What I'm seeking is an elegant, less argumentative, method of explaining the file ownership to the uneducated client. Reciting legal statutes and contract clauses doesn't often make for friendly client relations. My goal is to find a method of explaining so it is fully understood by the client without the appearance of a contract clause which forces them to do something against their will. I want the client to respect and not resent these types of contract clauses.


Let $T:\in \Bbb R^3  \rightarrow \Bbb R^3$ be the linear transformation given by reflecting across the plane $-x_1+x_2+x_3=0$ (...)   If $S=\{x:-x_1+x_2+x_3=0\} \implies S=\gen[(1,1,0),(1,0,1)]$  But how can I get the reflection matrix across $(1,1,0)$ and $(1,0,1)$?  Thanks!

Let $T: \Bbb R^3 \rightarrow \Bbb R^3$ be the linear transformation given by reflecting across the plane $S=\{x:-x_1+x_2+x_3=0\}$ (...)   Then, $S={\rm gen}[(1,1,0),(1,0,1)].$  But how can I get the matrix $R_v$ such that reflects across $S$?   Thanks!


A black hole is listed as "a region of spacetime exhibiting such strong gravitational effects that nothing—not even particles and electromagnetic radiation such as light—can escape from inside it" One thing i don't understand is how photons cannot escape from them. If they don't have mass, then how can gravity exert any force on them?

Light is clearly affected by gravity, just think about a black hole, but light supposedly has no mass and gravity only affects objects with mass.  On the other hand, if light does have mass then doesn't mass become infinitely larger the closer to the speed of light an object travels. So this would result in light have an infinite mass which is impossible.  Any explanations?


I saw a lot of websites in google on which i found vulnerability for SQL injection. Of course most of them were index.php?id=1 or something similar. Why is it that something tells me that even if i use prepared statement on such page, i will still be vulnerable for SQL injection? I mean... how can there be so many websites vulnerable for SQL injection. Is that link safe if i use prepared statements?? Seeing so many vulnerable sites using such link just blows my mind. I ask myself, there is no way people can be that stupid? How can they code so professional looking websites with vulnerabilities like this. I know how the prepared statements work. When you use prepared statements, you prevent the database to read the input as code. It's just the fact that i saw so many websites vulnerable for attacks.. it made me have heavy doubts in my mind about my website. I use exactly the same method for my users page, here is my code.    <?php // Setting the input ID to variable if(isset($_GET['id'])){ $the_input_id = $_GET['id']; }else{ header("location: ?page=error1"); exit; }  global $db; $stmt = $db->prepare("SELECT * FROM users WHERE id=:id"); $stmt->execute([':id' => $the_input_id]); $result = $stmt->fetchAll(); $db = null;  // Checking if there is result ... if (!$result){ // If there is no result ...     header("location: ?page=usernotfound");     exit; }else{ // If there is result ...     // Show the user profile }  ?>     This is the code from my users page, this is based on the user's input but as you can see i am using prepared statement. I am still worried about it. Maybe there is something more that i need to know about the security? I keep having heavy doubts in my mind after the sites i saw today.   I also saw some forums that are not using links like index.php?id=1. They use something like this "www.randomforum.com/index.php?/user/1029498/". Well, how does that work? That link cannot be SQL injected i think. I am not so experienced in this so i need someone to explain to me how does that kind of link work. I think that works the following way:  -Each time user gets registered, a new file get's created in the "user" folder. The file name is the ID of the account of the user. And that file just contains the user's page.  This is my explanation of how that forum works... but i am sure i am wrong. Please give me some opinions. Thank you for your time.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I have a problem where I used physics to position a bunch of meshes in Blender and when I try to set the current frame to 0 it resets the position of the meshes that have been positioned with the use of physics.  Here is the .  Here is what the positioning looks like (Frame 300):    Here is what the positioning looks like after I try to set to frame 0 (Frame 0):

Let's say I set up a Rigid Body simulation in Blender (not in GE), and then run the simulation for a number of frames. Is there a way to tell Blender to use the current state and position as the initial state? So that when I go back to frame 1, the rigid bodies stay in the same place they did in frame X.  For instance, if I want a pile of bricks, I first place the bricks in the air and then let them drop down on the ground, coming to rest. When they have come to rest, I want to use that position as the starting position.


One of my favorite qualities of large apertures (besides the low light capability) is their characteristic shallow focus that can offer dramatic background blur.  I've been considering how a micro format camera such as a micro four-thirds or even something like a Canon G16 or S120 (with 1/1.7" sensor) might perform with regards to depth-of-field. Both of those cameras boast an f/1.8 ratio. I am of the understanding that the lens won't be as fast as an f/1.8 on an APS-C or fullframe sensor as it obviously won't be capturing nearly as much light, but how does depth-of-field scale down?  To clarify my question consider these scenarios:   a camera body with a fullframe sensor and an appropriately matching f/1.8 lens a camera body with a micro 4/3 sensor and an appropriately matching f/1.8 lens a camera body with a 1/1.7" sensor and an appropriately matching f/1.8 lens   How would the depth-of-field compare? Let's also assume for the sake of argument, that all lenses have focal lengths that correspond to the same field-of-view.

If APS-C and similar crop-sensor digital cameras have a focal length multiplying effect such that a 50mm lens has an apparent focal length closer to the field of view of an 80mm on a full frame camera, and yet at the same time the depth of field for the smaller sensor camera is more like the depth of field a 50mm lens would produce on a full frame camera (using the same aperture), then this would seem to suggest the concept of an "aperture dividing effect."  In other words, a 50mm f/1.8 lens on an APS-C camera would act more like a 80mm f/2.8 (approx. 1.8 * 1.6x) lens in 35mm equivalent — for depth of field, not considering exposure.  Can someone with a better understanding of the physics involved clarify this for me.  I've never seen this concept explicitly mentioned anywhere, so I am a bit suspect of it.


By adding an extension between the camera and the lens, in this case a converter so I can use EF lenses on my Canon M50, you would think any lens would focus closer but it doesn't.  Why is that? :/

I use a Metabones adapter for Canon lenses on a Sony body. Why doesn't the lens adapter, which sets the lens further from the sensor, have the same effect as using extension tubes, allowing closer focus?


so I am very new with php technology and I am trying to display a database and be able to delete some of the rows. I have tried this code but It doesn't work as intended. I have made the conexion with mySQL database and the GET Request works but I don't get why this DELETE request doesn't. <!DOCTYPE html> <html lang="EN">   <head>      <meta http-equiv='Content-type' content='text/html; charset=utf-8' />     <title> My database </title>      <script>         function removeSelectedEmails(){         var aux = "";         for (x in selectedEmails) {           if(x== 0) {aux += "?email[]=" + selectedEmails[x];}           else {aux += "email[]=" + selectedEmails[x];}           if(selectedEmails[x] != selectedEmails.slice(-1)[0]) {             aux += "&";           }            var xmlhttp2 = new XMLHttpRequest();           xmlhttp2.onreadystatechange = function() {           if (this.readyState == 4 && this.status == 200) {             showEmails(last_q);           }         };         xmlhttp2.open("DELETE","db.php" + aux,true);         xmlhttp2.send();         }      </script>  <body>     <?php     if($_SERVER['REQUEST_METHOD'] === 'DELETE') {         $query = "DELETE FROM emails WHERE email=" . $value;            if ($conn->query($query) === TRUE) {             echo "Record deleted successfully";           } else {             echo "Error deleting record: " . $conn->error;           }       }     ?> </body>  </html>   It seems like it not executing the PHP part but the JS is working fine and I copy paste the GET request that is working and just change the "GET" to "DELETE" and stop working. Thank you in advance for the help.


I have a project on QGIS 2.18 which includes several raster and vectorial layers and need to export the full project as a high resolution Geotiff.   QGIS allows to export project as an image on print composer but it exports a low resolution image.  I am also able to export layer by layer but I need to export the full project as a single file.  Is there any plugin or approach that allows me to achieve that?

I am exporting a QGIS map to an image format. I would like to have control over the output settings of the image (dpi), as currently it is only exporting the images at 96 dpi.   Does anyone know if this is possible?


Consider a general measure space $(\mu, \Sigma,X)$ with $\mu(X)=1$. I want to show that for any $\mu-$measurable function and for any $0<p<\infty$, we have $$\|f\|_{p}\leq \|f\|_{\infty}.$$ A similar question is here , but it is in an easier case, in the space $C([0,1])$, it seems that the $\sup-$norm is the same as the $\sup_{x}|f(x)|$. However, in a general measure space, the $\sup-$norm is actually an essential $\sup$: $$\|f\|_{\infty}=\inf\{M\geq 0:|f(x)|\leq M\ \text{holds for almost every}\ x\}.$$ Thus, the only thing I know is that $|f(x)|\leq\|f\|_{\infty}$ $\mu-$almost surely. I want to start from here but I got stuck: We have $|f(x)|^{p}\leq\|f\|_{\infty}^{p}$ $\mu-$almost surely, and thus the set defined by $E:=\{x\in X:|f(x)|^{p}>\|f\|_{\infty}^{p}\}$ has $\mu(E)=0$. Now, $$\int_{X}|f^{p}(x)|\mu(dx)\leq \int_{X\setminus E}|f(x)|^{p}\mu(dx)+\int_{E}|f(x)|^{p}\mu(dx).$$ The first integral is easy to evaluate, since $\mu(X)=1$, we know that $\mu(X\setminus E)=1$, and thus $$\int_{X\setminus E}|f(x)|^{p}\mu(dx)\leq \int_{X\setminus E}\|f\|_{\infty}^{p}\mu(dx)=\|f\|^{p}_{\infty}\mu(X\setminus E)=\|f\|^{p}_{\infty}.$$ But how to evaluate the second integral? Over $E$ I just have a reversed directly $>$. I have no idea how to bound it.. Thank you for any help!!

I am sorry for this elementary question, but i could not figure out a rigorous proof for why the Lebesgue integral of any function over a null set is zero.  Thanks for helping!


Unique short SF story where aliens being invaded by other aliens, went looking for allies (to help save their galactic empire).  While being chased by the antagonistic aliens, they encountered a barrier surrounding a solar system. They somehow managed to disable it and found a solar system where the third planet from the Sun showed signs of life. When they landed, they were received by a human girl who greeted them. The enemy ship which followed them also landed, but were destroyed by the humans easily.  Upon learning of the aliens request, the humans decided to help the aliens, and moved their entire world to follow the aliens' ship. Too late the aliens realized that these humans were the ancient war mongering race which was sealed up eons ago and they had accidentally released them.  Could someone please help to identify this title for me. Thanks.

First we are told that the Galactic Empire/Federation/Powers-that-be have kept the Earth locked up for being too warlike, but now their help is needed against invaders from another galaxy.  When the aliens land the first thing they meet is a talking bunny.      at the end when humans have accepted to join the fight the alien offers to send ships to transport them. The human leader tells that there is no need...  and the Earth accelerates away.   I must have read this sometime in the mid eighties, so no later than 84 or 85, but the story may be from the sixties or before.


I want to update my windows 10 to the latest build 1607, I have 5 laptops at home which needs this update, I would like to download the ISO (or whatever the file extension is) and update them manually instead of downloading the same build 5 times, I found this  but it gave me a desktop client app that downloads the same file, (like scratching your left ear with your right hand!), I want the actual update files maybe direct link or the location where this downloader stores the updates.

I need to repair my Windows 10 installation. Where can I get a clean ISO (with install.wim, no Install.ESD, so that I can run DISM against the WIM) of the specific Windows 10 build required for this?  In my case, I need the Anniversary update (Build 14393), Creators Update (Build 15063) or Fall Creators Update (Build 16299.15).


Would it be correct to tack  to the floor joists directly or is it necessary to lay exterior plywood when renovating/installing a new bath floor? my home is 140 years old and the floor joists are massive. My fear is that the plywood will attract termites as I have had issues with them attracted and devouring new wood used in the house and they have cost me thousands in damages.  The old wood is generally left untouched by the termites since it is old growth cypress.

I just bought a house built in 1978 and I'm planning on putting tile in the bathrooms (currently linoleum).  The fixtures are removed and the flooring under the linoleum is particle board.  I think its 3/4".  It has a couple weak spots (one over a vent and the other around the toilet that was leaking).  I was planning on pulling this up and replacing with plywood and concrete backer board.  However, my question is, can I put 1/4" backer board over 1/2" plywood, so that the level of the floor is pretty close to where it was before and not have a large transition between the rooms?  -edit to add- 1 bathroom is along an outside wall of the house. 1 bathroom is in the middle of the house with a support beam running along one wall (beam runs the whole length of the house). Bathrooms share a wall in between them (total span of 10ft from outside wall to middle support beam of the house). Both bathrooms are on the 2nd floor. both bathrooms are above another heated/insulated room. 16in joist spacing. I don't know how big the joists are because I haven't removed the existing subfloor yet. We will most likely be installing ceramic tile.  My main goal here is to create the smallest transition as possible between the bathroom flooring and the carpet (installed on the same particle board) outside the bathroom.  If there are other options outside plywood + backer board that would be available, I am 100% willing to listen to them.


Why don't the two forces of action and reaction balance each other ?  I imagine that although they are opposite forces, they have different points of application. Is this true?

Given Newton's third law, why is there motion at all? Should not all forces even themselves out, so nothing moves at all? When I push a table using my finger, the table applies the same force onto my finger like my finger does on the table just with an opposing direction, nothing happens except that I feel the opposing force. But why can I push a box on a table by applying force ($F=ma$) on one side, obviously outbalancing the force the box has on my finger and at the same time outbalancing the friction the box has on the table? I obviously have the greater mass and acceleration as for example the matchbox on the table and thusly I can move it, but shouldn't the third law prevent that from even happening? Shouldn't the matchbox just accommodate to said force and applying the same force to me in opposing direction?


Is it possible to know if a merge will conflict or not, without touching the working tree? I don't want to touch the working tree because I don't want to have it checked-out. That would take a long time if I want to see this information for several branches.

I'm merging in a remote branch that may have a lot of conflicts.  How can I tell if it will have conflicts or not?  I don't see anything like a --dry-run on git-merge.


Safari is NOT on my iPhone 6 anywhere. It is not in a folder as I have not put any extra folders on it. I also do not have the use of Spotlight. Cannot figure this out.

I can't find the safari icon on my iphone 4?  I have tried resetting home screen layout and that doesn't work.  My restrictions button is 'on' and it asks for a password for this button.  I don't have a password.  Can you help? Thanks,


I like that I can add images to a card in Trello but I would really like the ability to add an image to a comment in trello (without resorting to a third party embed.ly link).  Has anyone come across a solution?

So far I have been successful embedding Youtube videos into Trello card comments; simply by including the URL in the comment Trello picks it up and renders an embedded Youtube thumbnail.   What I would like to do is the same thing, but with a simple PNG image. I don't want to upload the image as it is a Balsamiq mockup permalink which will get updated periodically, and I want the latest version to be displayed on the Trello card.   However, pasting the image URL into the Trello card has no effect.  Am I missing somthing?


I have the following regex expression.  /<img.+src=['"](?P<src>.+?)['"].*>/i  However When I run this on any string that has more than one image in it, it is returning the last image.  In fact it is returning the last src occurance regardless if it is an image or not.  And this is because it is selecting from <img to the last next linebreak and not stopping at the end > of the tag.  How can I change my regex to stop at the > of the <img> tag  Take a look at this example

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


Let's forget how it is used or what it might imply , because why , is why? (?) Regardless am I not correct." Why, thank you" makes little sense to use unless you are asking why someone is thanking you. let's keep it real , I don't think there is another language that uses such , so  commonly.It is not correct....it makes no sense.  Am i the only one here that feels this way?

I sometimes have heard somebody replying with Why, thank you. instead of Thank you.  What is the meaning of the first phrase? What is the difference between the two phrases?


I am having problem understanding first order predicate logic, rules of inferences, proof by natural deduction. From which I should read them for better understanding. Also if there any websites or lectures that are useful in this. Thanks

I am writing my bachelor thesis in english, but I have studied logic in my different native language. Since a rely on elementary results from first-order predicate logic (especially satisfaction in structures), I should reference the reader to a textbook for details.   Is there a standard textbook that starts with elementary propositional logic and goes to Incompleteness theorems?