my puter: 2.3 ghz sempron, 4 g ram, 500gb hd, nvidia 6100 nforce405 chipset/gt240 gc, win xp. I want to know if i can run 14.04 64 bit ubuntu.

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I have crossvalidated my models and measured RMSE between the modelled values and reality: RMSE <- function(err) sqrt(mean(err^2)) RMSE(predicted - reality)  I am going to choose model with lowest RMSE. But I would like to know what difference in RMSE is still significant. I guess I could do some F-test comparisons, but as I have tens of models I don't like the idea of pairwise comparisons. This leads me to question How can my RMSE function be extended to compute SE of RMSE? How to do this in R? I guess this will be somehow based on Chi-square distribution parametrized by length(err) and maybe somehow scaled by sd(err) (?), but I don't know how to make this statistically correctly in R.

I have taken a sample of $n$ data points from a population. Each of these points has a true value (known from ground truth) and an estimated value. I then calculate the error for each sampled point and then calculate the RMSE of the sample.  How can I then infer some sort of confidence interval around this RMSE, based upon the sample size $n$?  If I was using the mean, rather than the RMSE, then I wouldn't have a problem doing this as I can use the standard equation  $ m = \frac{Z \sigma}{\sqrt{n}} $  but I don't know whether this is valid for RMSE rather than the mean. Is there some way that I can adapt this?  (I have seen , but I don't have issues with whether my population is normally-distributed, which is what the answer there deals with)


What are the solutions to the equation: $$\log_{3}\left(2^{x}+1\right) = y$$ where $x,y$ are integers. The first few are $x=1,3$. How would I prove that there are either finite or infinite solutions?

This came up in proving non-regularity of a certain language (powers of 2 over the ternary alphabet). Any clue to the above equation could help me move forward.  Edit: Of course, $x = 1, y = 1$ is a solution. I am looking for non-trivial solutions.


Pretty much exactly as the title says, the website link you can put into your profile isn't rel='nofollow'ed.  Is this intentional, or should this be fixed?

I understand that from an SEO perspective it is beneficial for Stack Overflow to have the  on the website link for user profiles. Especially if people will just create an account to get a backlink. What I think however, is that contributing members of Stack Overflow should be awarded with this backlink. I think that if someone contributes and has some decent reputation, then they should not have nofollow set on their website link in their user profile. Considering the amount of users that are backlinking to Stack Overflow with flair, I really think that Stack Overflow should hook us up with some search engine love.


We booked our flight through Expedia and are traveling on 2 airlines, one PNR and no checked baggage.  Flight from Chicago on United arrives at 8:45 pm.  Flight to Lisbon on Lufthansa leaves at 10:20.  Just checking if that sounds like enough time - not sure which terminals we arrive at/depart from. Thanks for any responses.

I am flying from New Orleans to Dulles (IAD) on United Express, and from IAD to Frankfurt on United. I have a short connection (45 minutes) in IAD.   I'm trying to figure out how can I make it:  Will I need to go throughout security and border check since I'm leaving the US? How big is IAD airport? and are there different terminals for domestic and international flights? If so, how long would it take to walk between them?


What size lens do I need? I am shooting video from a distance of about 10 to 11 feet away. I want to be able to go from a CU (top of head to mid-chest) to a full body shot (head to toe). I currently have a Sony NEX-5 with the standard lens the camera comes with. Advise on the type of lens to get?

I read on the :     Focal-length determines the angle-of-view seen through a lens for a   given sensor-size. With a full-frame sensor a lens gives the same   angle-of-view as it would on a 35mm film camera. With a smaller   sensor, the angle-of-view becomes smaller. The crop-factor, also   called FLM, is the ratio representing the difference in equivalent   focal-lengths. So a 150mm on a full-frame DSLR such as the Nikon D700   gives the same angle-of-view as a 100mm on a D7000 since its FLM is   1.5X.      Short focal-lengths show a greater angle-of-view compared to longer   ones. [...]   In layman's terms, what is angle-of-view? Is it the same as focal length? If not, how is it different? How is it used? Why do I need to know about it?


Are there any smartphone applications that will allow you to take macro photos? If not, why aren't there?

Why do you need an external macro lens for a smartphone to take macro photos. Why can't the smartphone lens itself take macro photos?


I tried to make the following singleton class in C++  #pragma once #include "stdafx.h" #include <iostream>  class God { private:     static God* firstObject;     God()     {         if (firstObject != NULL)             firstObject = this;     } public:     static God* BuildGod()     {         if (firstObject != NULL)             return firstObject;         else {             God();             return firstObject;         }     } };   and then use it like so  God* a = God::BuildGod();   Unfortunatley, it won't even compile and it returned the following errors:     LNK2001 unresolved external symbol "private: static class God * God::firstObject" (?firstObject@God@@0PAV1@A)      LNK1120   1 unresolved externals

Can anyone explain why following code won't compile? At least on g++ 4.2.4.  And more interesting, why it will compile when I cast MEMBER to int?  #include <vector>  class Foo {   public:       static const int MEMBER = 1;   };  int main(){       vector<int> v;       v.push_back( Foo::MEMBER );       // undefined reference to `Foo::MEMBER'     v.push_back( (int) Foo::MEMBER ); // OK       return 0; }


The limit is $$\lim _{x\to 0 }\left(\frac{1 + x2^x}{1 + x3^x}\right)^\frac{1}{x^2}$$ I have no idea what to do. There are tons of exercises like this in my textbook and I was hoping if you could show me how to solve this one I would be able to solve others by myself. I think I should use this  $\lim _{x\to 0 }\left(\frac{a^x - 1}{x}\right) = \ln a$ but I don't know how. If you could give me some hints or solutions or even websites where there are solved problems like this that would be great help. Thanks in advance!

Find the following limit  $$ \lim_{x\to0}\left(\frac{1+x2^x}{1+x3^x}\right)^\frac1{x^2} $$  I have used natural logarithm to get  $$ \exp\lim_{x\to0}\frac1{x^2}\ln\left(\frac{1+x2^x}{1+x3^x}\right) $$  After this, I have tried l'opital's rule but I was unable to get it to a simplified form.  How should I proceed from here? Any here is much appreciated!


Why does the safety of the cast in makeArray bank on whether user gets access to the array created?  @SuppressWarnings("unchecked") private E[] makeArray(int s) {     return (E[]) new Object[s]; }   I'm guessing that the user might be able to use the wrong data type if they get a hold of the array. For example, instead of using s type elements, the user instead uses T type elements.

Due to the implementation of Java generics, you can't have code like this:   public class GenSet<E> {     private E a[];      public GenSet() {         a = new E[INITIAL_ARRAY_LENGTH]; // error: generic array creation     } }   How can I implement this while maintaining type safety?  I saw a solution on the Java forums that goes like this:  import java.lang.reflect.Array;  class Stack<T> {     public Stack(Class<T> clazz, int capacity) {         array = (T[])Array.newInstance(clazz, capacity);     }      private final T[] array; }   But I really don't get what's going on.


I've been thinking to prove each one individually then sum them up which seems too complex to because I haven't made any notable success proving $\frac{x^2}{(x-1)^2}> 1$.  I know that $(x-1)^2\ge 0$ , but I'm not able to transfer it to what I'm looking to prove.  Is there is any techniques to look for when solving these kind of inequalities because I'm totally stuck here.

If $x,y,z\in\mathbb R\setminus \{1\}$ and $xyz=1$, prove that $$\frac{x^2}{(x-1)^2}+\frac{y^2}{(y-1)^2}+\frac{z^2}{(z-1)^2}\ge 1$$  Without using calculus. There are a few ways I've tried solving this:  $1)$ We could try using the Cauchy-Schwarz inequality: $$\frac{x^2}{(x-1)^2}+\frac{y^2}{(y-1)^2}+\frac{z^2}{(z-1)^2}\ge \frac{(x+y+z)^2}{(x-1)^2+(y-1)^2+(z-1)^2}$$  But it's apparent that nothing's useful here.  $2)$ We could use AM-GM as well: $$\frac{x^2}{(x-1)^2}+\frac{y^2}{(y-1)^2}+\frac{z^2}{(z-1)^2}\ge 3\sqrt[3]{\frac{x^2y^2z^2}{(x-1)^2(y-1)^2(z-1)^2}}=\frac{3}{\sqrt[3]{(x-1)^2(y-1)^2(z-1)^2}}$$  So we only have to prove that: $$\sqrt[3]{(x-1)^2(y-1)^2(z-1)^2}\le 3$$  We could raise both sides to the power of 3: $$(x-1)^2(y-1)^2(z-1)^2\le 27$$  But this inequality doesn't hold.   $3)$ We could try cleaning the denominators by multiplying both sides by $(x-1)^2(y-1)^2(z-1)^2$. After a bunch of expanding and simplifying we get that: $$x^2y^2+y^2z^2+x^2z^2-6(xy+yz+xz)+2(x+y+z)+9\ge 0$$  I can't tell so easily whether the inequality is true or not. You could help me out on this one. Just don't forget that $x,y,z\in\mathbb R\setminus\{1\}$ and so we can't just simply use AM-GM, unless we're using it for squares that have to be non-negative.


Can anyone help me figure out what this icon is for???

I am running Android 2.2 on HTC Legend. I have a LOT of applications installed on it.  Today, after I changed my mobile operator, a notification appeared in the top bar. When I click on it, it says that my connection to Google is wrong and asks for the password.  However, since this is a dialog overlay, I have no mean to know if it is an application that I can trust (like a native one), or some sort of scam.  Any idea on how to identify from which app/service this message comes from?


What will happen if I change the rights and file permissions in the / ( root ) folder for all system folders to 700? Is it recommendable?   ( I am the only user on the system )

I'm only granting permission to all to do anything but why does the system crash by giving permissions only? I'm only modifying the permission not changing the files.


I am a physics student and as far as I know dark matter is beyond the topics included in my grade career. Are there any serious book on the subject? Any serious set of lectures somewhere in Internet?

I've been looking for questions about dark matter, and I've read some very interesting answers. However, I desire too look into it deeply.   This is not actually a question. I'm asking the community to recommend interesting references to understanding dark matter and dark energy.   I accept all sort of references: notes, books, scientific papers etc.  Let us assume some background on classical physics, thermodynamics and basics about quantum theory.


I have a script, which works in version 2.90, in which I get a list of materials in the scene by accessing bpy.context.scene.material_slots and bpy.context.scene.materials.  These don't seem to work in version 2.92.  Did the location of the materials in the scene change and if so, how do I find them?

I make that script (Copy a piece from template UIList) Now i can draw My box with inside the active object material but i want to populate that with all material in scene, i not undertand , how to. Part of my script:  class MATERIAL_UL_extreme_matslot(bpy.types.UIList):      def draw_item(self, context, layout, data, item, icon, active_data, active_propname):         ob = data         slot = item         ma = slot.material          if self.layout_type in {'DEFAULT', 'COMPACT'}:             if ma:                                layout.prop(ma, "name", text= "", emboss=False, icon_value=icon)             else:                                layout.label(text="", translate=False, icon_value=icon)                 elif self.layout_type in {'GRID'}:                      layout.alignment = 'CENTER'                     layout.label(text="", icon_value=icon)   Then for draw in panel:  class MY_PT_Panel(bpy.types.Panel):      bl_label = "My label"     bl_idname = "MY_ID_NAME"     bl_space_type = "VIEW_3D"     bl_region_type = "UI"     bl_category = "My Category"     def draw(self, context):      def draw(self, context):          obj = context.object           layout = self.layout         row = layout.row()         row.template_list("MATERIAL_UL_extreme_matslot", "", obj, "material_slots", obj, "active_material_index")   Im not sure if that is the best solution because i want to select material slot from that UIList panel.


I've been told that in a DC circuit with a battery the negative terminal of the battery "pushes" electrons in nearby atom away of it and those by themselves cause electrons in other atoms to move, but this convention but this way of thinking brought me some problems in understanding voltage.  I mean voltage is defined as $$v = \left(\frac{Q}{4\pi\epsilon_0r}\right)$$ so it seems like the source of that voltage on an electron is the electron behind it, so my question is Is that true or no? if no why and if it is true then How something like the voltage drop can be thought of(it doesn't seem like moving in a resistor can have any effect on the equation above)?  P.S: I'm sorry if the title seemed misleading that's what I couldn't think of a better title.

I know there's lots of questions that address similar situations, (, , ,  and the oft-viewed  ).  However, I have a question, and after examining just the battery structure, I have been wondering, exactly what structure/process maintains the constant voltage drop within batteries? I mean, certain chemical reactions are occurring in each half-cell, and electrolytes maintain charge conservation, I get that there's some motivation for the electron to move from one cell to the other.   But why is this motivation so constant? I really want to get this.


How to make Ubuntu Installed flash drive bootable in any PC?  I am new user to Ubuntu and started loving it. I'm using Toshiba Satellite C840 and using Ubuntu 16.04 as my primary OS in dual boot mode.  However, due to the inconvenience in carrying my Laptop everywhere, I've bought a 32GB flash drive and installed Ubuntu 16.04 in it with my all necessary apps and settings.  Since my Laptop is already using dual boot with Win7, my flash drive Ubuntu boots properly.  My question is - instead of carrying my Laptop, if I want to carry my USB flash drive (where Ubuntu 16.04 is already installed) and try to boot it in any other PC (say, in my cousin's pc) , will it work? If not, then how to make it work properly?

If you are hurrying to reply, System → Administration → StartUp Disk Creator -- no, that's not what I'm talking about.   I want to try Ubuntu 11.04's Unity without touching my existing Ubuntu install.  To do this, I need to install the nVidia drivers first (sigh).  To do this, I need changes to persist a reboot.  To do this, I need to really install Ubuntu on a USB key.  How do you do that?    What I tried   I tried to make a USB key from , then boot from it, then choose "Install Ubuntu." The installer refused to install to the installation media itself. I tried, from my installed copy of Ubuntu:  sudo kvm /dev/sdb --cdrom .cache/testdrive/iso/ubuntu_natty-desktop-i386.iso   ...but the installer didn't detect the disk properly.


I wish to install ubuntu to my usb without partitioning or touching the current setup on my computer.


When compiling a beamer tex source file, I have a pdf with a progress bar. But I'm not sure the function of each icon. What are they for? How to remove them?   \documentclass{beamer} \title{Hello} \author{Samuel} \date{\today}  \begin{document} \begin{frame}{}{}     \maketitle \end{frame}  \section{section}  \begin{frame}{The subtitle}{}     What is your name? \ldots     \begin{enumerate}         \item A \emph{Hello} $x + y == z$         \item B $\sin (x) + \cos(x)$     \end{enumerate} \end{frame} \end{document}

When creating presentations in , those little symbols that you can click on and will take you to different parts of your presentation are automatically included on your slides.  I don't like that, but decided not to try and change it for now. The problem is that when I gave my presentation to my supervisor to revise, the first thing he did was cross the symbols out in red, meaning: take this out!  What should I do? Is there an easy command to get rid of those symbols or do I have to change the theme of my presentation to get rid of the symbols?


I am sending an email from Sandbox using apex code but email subject comes with some kind of ID. How to remove this ID and Sandbox . I have work around the email setting also but I could not find it. Please help me out this.   List<String> str = new List<String>{'deepak@test.com'}; Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); mail.setToAddresses(str); mail.setSubject('Demo'); mail.setHtmlBody('test'); Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });

I am writing a trigger in a sandbox, and am sending an email through the sandbox. I've added a the Account Name to the Subject in my trigger.   When the email is sent from the trigger, Salesforce appends "Sandbox:" before the subject I wrote in apex.   Is there a way to remove the "Sandbox:" subject from emails send out of a sandbox?


When I have a device or a surface (typically metallic) that are not well connected to ground I feel a strange feeling when I pass (gently rub) my hand on them. Like the roughness of the surface is different.  I only feel it when I move my hand over the surface and not when it is still. I tested this with AC or DC currents, and I can feel it in both cases.  I know it has to be with charges accumulation at the surface (call it electrostatic charge), as expected from a conductive material, but I cannot see why exactly I feel that strange feeling while rubbing my hand and not when it's still.  Can it be related to something like an "electron drag force"? Or is there more into it?

When my wife uses her laptop, if I touch her skin, I can feel a buzz.  She doesn't feel the buzz, but she can hear it if I touch her ear.  So I'm guessing it's a faulty laptop, and she's conducting an electrical current.  But why would she not feel anything, and what would it be that she would be hearing when I touch her ear?    More info:  The effect is only intermitent - it's pretty reliable in a single session on the laptop, but some sessions it won't happen and others it will.  I had the same sensation with a desk lamp that I had several years ago, with no moving parts (as far as I could tell)  The effect only occurs when I move my finger - if I'm stationary, I don't notice anything.   I was playing with my son, and noticed the same buzz.  First I thought he was touching the laptop.  Then I realised he had skin-to-skin contact with my wife who was using the laptop.


i need automate the file puzzling for plotter, so im looking for a macros for Corel 16+, to get the puzzling done automatically and efficiently.   In the past i puzzled it manually and spent a lot of time.    I tried PlotCalc for Corel, but it doesnt work in 16th version  Thanks PS if this topic is already asked, please, do not dislike my question)

So I've got a file with loads of simple objects. This will later be used to cut out these shapes out of plastic. So, using the material optimally is of outmost importance. I was wondering if there is any script or plugin that could automaticly arrange the objects within the artboard so they could fit best.


I am using QGIS 2.18 and have a road celterline and a grid shapefile which I am using to create an atlas book.  What I want to do is break each road at the edge of each grid that it crosses but I have been unable to find a way to do that.

I have a river network (lines) and a .shp with states (polygon). I would like to split the lines at the state boundaries i.e. split lines by polygon boundaries. Is there a geoprocessing tool to do this in QGIS? I can't merge the lines by the way, since they are meaningfully split into tributaries/main river.


I have been trying to adapt the basic responsive layout (out of w3schools) with a "row" div containing various "element" divs that may display side by side or one on top of the other depending on the media. Yet, my divs contain a variable amount of text and they are displayed top-aligned. I read everything I could find on StackOverflow and elsewhere but could not figure out how to make the least number of changes (with the least impact on the rest of the design) and get them aligned vertically in the middle or at the bottom.  Below is a sample starting point, removing everything unnecessary from  example. Could the three rectangle be middle-aligned or bottom-aligned without changing everything?    * {   box-sizing: border-box; }  .column {   float: left;   width: 33.33%;   padding: 10px; }  .row:after {   content: "";   display: table;   clear: both; }

The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog

Column

The quick brown fox jumps over the lazy dog

     I am pretty much a newbie, but whatever I read seems to be very much incompatible with the above layout strategy and to have plenty of side effects on the visual appearance, on the responsiveness, etc.

I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers?

testing...


Imagine player 1 and player 2 want to play the  map (so that both of them are in that map). They are located in different networks (not on the same LAN).  Is it possible to set up Minecraft so that both players can play in the same map?  If yes, what is the easiest way to do this?

Minecraft's got an "Open to LAN" feature, which can be used to set up a local server when two computers running Minecraft are on the same network. Some young relatives of mine use this to play together whenever they're in the same house, but they'd like to be able to play together from their respective residences.  A server is not optimal because it's a bit complex. I've tried using Tunngle to spoof that the computers are on the same connection to no avail.  How can I convince Minecraft's "Open to LAN" that their two separate computers are on the same network?


I ran into a problem where I have one continuous covariate which I suspect having a time-varying coefficient. This covariate was measured only once at baseline for all subjects in the dataset with no repeated measures. For example, height. The reason I believe it has a time-varying coefficient is that even though height itself does not vary by time, its 'effect' does (it violates the proportional hazards assumption). The challenge is that I do not know how to handle/implement this in R. Any help would be much appreciated. Thanks!

In Cox models with time varying coefficients, the effect of covariates on the hazard is allowed to change through time. In cases where a coefficient has a linear relationship with time, I am aware of at least two text books ( and an Appendix to ) that advocate for the following model, first in R code:  coxph(Surv(time, death) ~ disease + disease:time)   And now in mathematical notation:  $$ h(t|X) = h_0(t) \exp(\beta_1X + \beta_2X_T) $$ Where $h(t|X)$ is the instantaneous hazard rate at time $t$ given covariates $X$; $h_0(t)$ is the baseline hazard rate; and $T$ is the censoring or event times. $\beta_1$ represents the log hazard ratio for individuals with $T=0$ (which is sort of nonsensical since you can't have $T=0$ in the data), while $\beta_2$ is harder to interpret... $\beta_2$ shows how the log hazard ratio depends on censoring/event times, but that is circular because event times are also the response variable (this point is made in Terry Therneau’s vignette “”).  According to Therneau's vignette, to correctly specify a time varying coefficient, you need to use the following model, first in R code:  coxph(Surv(time, death) ~ disease + tt(disease), tt=function(x,t,...){x*t})   And now in mathematical notation: $$ h(t|X) = h_0(t) \exp(\beta_1X + \beta_2X_T) $$  The difference is that the time interaction is with $t$ in the model rather than with the event times $T$ in the data. The resulting parameters are easy to interpret: they are the intercept and slope of the linear relationship between the log hazard ratio of $X$ and time. This approach seems like the proper way to model a time varying effect.  Can anyone justify or advocate for the first approach to modeling non-proportional hazards in the Cox model? If it is really incorrect (as I suspect it is), what are the practical consequences of using this approach?


So I was working on one of the exercise question for school and I came across this question and I wanted to know if someone can help me in providing a proof for this question. So the question is:  Prove if $p_1, p_2,\dots , p_n$ are distinct prime numbers where $p_1 = 2$ and $n > 1$ then $p_1p_2p_3 \dots p_n + 1$ can be written in the form $4k + 3$ for some $k \in \mathbb N$.

If $a_1,a_2,\ldots, a_n$ are distinct primes, and $a_1=2$, and $n>1$, then $a_1a_2\cdots a_n+1$ is of the form $4k+3$.  I have no ideas how to approach this question. Any hints?


Let $\{\xi_n \}_{n \geq 1}$ be i.i.d random variables taking values on $\mathbb{Z}$. Let $\xi_0 = 0$.  $S_n = \sum\limits_{i=1}^{n} \xi_i,$ where $S_0=0$  $Y_n = \sum\limits_{i=0}^{n} S_i$.  My question is whether $Y_n$ is a Markov chain. I know it has to satisfy  $P(Y_{n+1} = y_{n+1}| Y_{n} = y_{n}, \ldots, y_0=y_{0}) = P(Y_{n+1} - y_{n+1}| Y_n = {y_n})$.   Intuitively, I know it is not a Markov chain since by knowing the full information of the previous states, I can predict the next state $Y_{n+1}$ better but I am having trouble formulating a mathematical proof.

Assume that $Y_0,\ldots , Y_n$ are independent random variables with the following identical distribution: $Y_i=1$ with propability $p$ and $Y_i=0$ with propability $1-p$. Also set $S_0=0$ and $S_n=Y_0+\ldots + Y_n$.  It's quite trivial that $(Y_n)_{n\geq 0}$ is a Markov chain, and I managed to show that $(X_n)=(S_n)_{n\geq 0}$ is also a Markov chain, by showing that  $\mathbb{P}(X_{n+1}=i_{n+1}\,|\,X_0=i_0,\ldots,X_n=i_n)=\mathbb{P}(X_{n+1}-X_n=i_{n+1}-X_n\,|\,X_0=i_0,\ldots,X_n=i_n)=\mathbb{P}(Y_{n+1}=i_{n+1}-X_n\,|\,X_0=i_0,\ldots,X_n=i_n)=\mathbb{P}(Y_{n+1}=i_{n+1}-i_n)=\mathbb{P}(Y_{n+1}+i_n=i_{n+1})=\mathbb{P}(X_{n+1}=i_{n+1}\,|\,X_n=i_n)$  However I am now running into the problem that I have to find whether or not $(X_n)=(S_0+\ldots + S_n)_{n\geq 0}$ is a Markov chain. I suspect that it isn't, but i'm having trouble finding a counterexample. I also need to find if $(X_n)=(S_n, S_0+\ldots+S_n)$ is a Markov chain, but I think this actually might be one, since $X_n$ gives "more information" (so to speak) to $X_(n+1)$. Again, having trouble actually proving that.  I appreciate any help, tips etc you can give me.


This series looks like it is geometric or sort of, but the rate between them does not seem constant.  $$S_{n}= \frac{1}{3\times 6}+\frac{1}{6\times 9}+\frac{1}{9\times 12}+ \cdots + \frac{1}{300\times 303}$$  All i can see is the second number in the denominator jumps to the next term in the series but this situation makes it impossible to establish a common factor. Therefore, Is it possible to determine the number of terms and the sum using a simple algorithm?.   There is also a side question which I don't know. In the example from above the final term is $\frac{1}{300\times 303}$ but what if the series goes to the infinity. Is this series convergent or not?. How can this be proven?.  Edit:  Although there is a method to approach these kind of situations mentioned here (), it does not address the fact on how to obtain a recursive formula, as it is part of the question itself. Therefore is there a way on how to reach to that formula in the denominator and solve the problem?. If the method of solving this involves partial fractions I would appreciate somebody could include a revision of this part in the answer so I can understand how it makes a link with the problem from above.

How can I find the formula for the following equation?  $$\frac{1}{1\cdot 2}+\frac{1}{2\cdot 3}+\frac{1}{3\cdot 4}+\cdots +\frac{1}{n(n+1)}$$  More importantly, how would you approach finding the formula? I have found that every time, the denominator number seems to go up by $n+2$, but that's about as far as I have been able to get:  $\frac12 + \frac16 + \frac1{12} + \frac1{20} + \frac1{30}...$ the denominator increases by $4,6,8,10,12,\ldots$ etc.  So how should I approach finding the formula? Thanks!


What is the official rule when mentioning a city/ state in a sentence?  I always thought there was a requirement for a comma between the city and state, however is there also supposed to be a comma afterwards?     Tim also enjoys football games, jumping on his motorcycle and being a   guide for the Fredrick, Alabama, restaurant scene.   I personally think it looks clunky, however I'm told that it is opinionated and that the above is correct.  Should the sentence be written like this?     Tim also enjoys football games, jumping on his motorcycle and being a   guide for the Fredrick, Alabama restaurant scene.

Is it acceptable in BrE to omit the commas (as I've done below) after 2006, 1946, France, Texas and New York? To me, commas after each serve no purpose: they reduce the flow of the sentence.  • The performance took place on February 2, 2006 at the State Theatre in Ithaca.  • January 23, 1946 is Helen's date of birth.  • Prague, Czechoslovakia  is a great vacation spot.  • Paris, France will host the Olympics.  • Dallas, Texas is the home of this special event.  • Syracuse, NY will play host to this year's Rock of Ages music festival.


did not really help because I got confused           I found it to be *Transitive since if $A\subseteq A$ and $A\subseteq B$ then $A\subseteq B$ *Antisymmetric since $A\subseteq A$ and $A\subseteq A$ so $A=A$ *Reflective since $A\subseteq A$ and $A\subseteq A$    But I am not sure if my way of solving this or the answer is whether true or not, can anyone confirm?

Let $S$ be an arbitrary amount and define the relation $R \subseteq \mathcal{P}(S) \times \mathcal{P}(S)$ so that $(A,B) \in R$ if and only if $A \supseteq B$. Here $\mathcal{P}(S)$ is a spelling for the power set to $S$. Show that $(\mathcal{P}(S),R)$ is a partially ordered quantity.


If I have a sentence like   "Hello, I am going for a walk. I will be back home in an hour!"   How do I tokenize the string in C++ so that I get this output:  Hello , I am going for a walk . I will be back home in an hour !   The tokenizers I've looked at removes special signs like period, comma etc. But in this case I want to treat these special signs as "words" as shown above.

Java has a convenient split method:  String str = "The quick brown fox"; String[] results = str.split(" ");   Is there an easy way to do this in C++?


I ran into this  that looks like its been copied over from another site.  I'm not really sure how to deal with it. I mean, there's an actual question burried in there somewhere, but as it stands I wouldn't call it a good post.  Should I just edit it and remove all the junk or flag it and pass it up the chain?

It is possible to migrate a question from one Stack Exchange site to another by closing, but if I have a question that I think is on-topic for multiple Stack Exchange sites, is it OK to post it on both (multipost)?   For example, I have a question that's earned me the tumbleweed badge on SO and I'm not sure what the best thing to do with it is. It's about a web server so it might be answerable on Server Fault but it's really more of a programming thing, hence the posting the question on Stack Overflow.    Is there any way to make the question visible on multiple sites (crosspost) and then accept the answer wherever it came from?


I've just voted to reopen  even though it has been deleted. Screenshot (there were 2 reopen votes already, mine is the third one):    Is this a bug?

I've seen .  Voting to undelete will not work because it was deleted by a moderator, but I managed to vote for reopening for some reason.  I doubt this is intentional, perhaps not as important, but still.


I am developing this site here: bottlesbeach.eu Now I'm trying to center the profile picture avatar inside the navbar:  I tried to use: vertical-align: middle  But as you can see from the image, my avatar continues to remain anchored at the top. Do you have any ideas to solve this? Navbar:   .avatar {   vertical-align: middle;   width: 30px;   height: 30px;   border-radius: 50%;   float: right;   vertical-align: middle; }
    Send a Bottle   Bottles   Chat   About   Donate   Log-in

I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers?

testing...


I am using a macro to represent a certain term, e.g:  \newcommand{\agt}{the agent}   (I use this macro so that it is easier to change the term in the future, if needed).  Is it possible to change the macro so that, in the beginning of a sentence, it will print "The agent" with capital T?

Is it possible to make macros give different results at the beginning of a new sentence? Suppose that I want the macro "\secname" to write "Section" at the beginning of a new sentence, and "section" anywhere else. How can I do so?


I'd like to know the correct order of this sentence:  Is it:     I and my friends plan for a movie months before the release.   or     My friends and I plan for a movie months before the release.

I've always been taught to put myself last when referring to myself in the same sentence as others but the usage of "me and..." seems to be everywhere these days. The misuse of the word "me" instead of "I" aside, is there some new rule I haven't heard of? Shouldn't we put ourselves last regardless of the "me"/"I" usage?  Examples of "correct" usage:      My friends and I went for some ice   cream. Did you see my friends and me   at the ice cream stand?   Examples of "incorrect" usage:     Me and my friends went for some ice   cream. Did you see me and my friends   at the ice cream stand?   Note: I was also taught that the only person who could put themselves first was the queen.


Speaking of 2.4ghz networks, if my neighbor chooses channel 3, at 20mhz I know that this will also interfere with channels 1, 2, 4 and 5. What I would like to know is what is the level of interference? For example, if I choose channel 4, would it be practically the same thing as choosing channel 3? Would it have a lower degree of interference, practically the same or much less? If I chose channel 5, would it be better than channel 3 or 4? Or practically the same? (remembering that my neighbor is on channel 3).

I want to know how to calculate the "interference weight" in the combination of APs running on different channel frequencies.  Lets say I have 10 APs in different operating modes, such as 11a, 11a/n and 11ac.  If an 11a AP is running a 20MHz channel say (36), and some 11a/n APs are running 40MHz channels (36 and 40), and some 11ac APs are running with 80MHz channels (36, 40, 44, 48).  Now how do these frequencies interfere with each other and how can I calculate the interference weight among these frequencies?  "Interference weight" means, like how much percentage that a channel is interfering with other channel. Like, AP1 and AP2 are running on channel say 48, we can say that they are highly interfering. And if they are running with little adjacent channels like (AP1 at 44 and AP2 at 48), there is partial interference, and if they are running in away channels there is no interference.  By this we can achieve a channel for an AP with less interference with reference to neighbors, we can select that channel as an automatic channel for that AP.


Can my spouse, who has a single entry Germany Dependent D, visa travel to other Schengen states? Her visa is valid for 6 months same as mine. I do have employment Germany visa and my spouse will be accompanying me to Germany.

I’m going to Germany for a semester exchange and I have a long-stay visa from Germany. Can I travel to the other Schengen states during this period with this visa or do I have to apply for a separate short stay Schengen visa?  My visa is German national visa type D. It is for a duration of 4 months, i.e., longer than 90 days. It says on the visa that the long stay visa is valid in Deutschland, which is different from my earlier visa, which I had when I visited Germany earlier; that one was a short stay visa and said it was valid in Schengen Staten.  Perhaps my current visa means that I can stay in Germany for a period of longer that 90 days can visit the other Schengen states if I don’t exceed the 90 day period.


Consider the following function declaration:  void foo(const int);   This function has the signature void(int). It can be defined as follows:  void foo(int) {}   This makes sense since whether or not the parameter is const within the function body doesn't matter to the caller. But then, why are we even allowed to write const parameters in a function declaration?  EDIT: This is not a duplicate of . In that question, const was added to a parameter in a function definition. They didn't discuss const parameters in a function declaration.

How far do you go with const?  Do you just make functions const when necessary or do you go the whole hog and use it everywhere?  For example, imagine a simple mutator that takes a single boolean parameter:  void SetValue(const bool b) { my_val_ = b; }   Is that const actually useful?  Personally I opt to use it extensively, including parameters, but in this case I wonder if it's worthwhile?  I was also surprised to learn that you can omit const from parameters in a function declaration but can include it in the function definition, e.g.:  .h file  void func(int n, long l);   .cpp file  void func(const int n, const long l)   Is there a reason for this? It seems a little unusual to me.


Is there any way to create a function or method which takes parameters in AMPScript which can be called anytime? Example would be a simple java function to called multiply (a,b) where the return would be result of a x b. Yes, i know i can multiply in ampscript but i explicitly need it within a function call because i will be calling it multiple times for that email. Thank you.

I have been using AMPscript for a while and I know that there is no way to create custom functions. I was wondering if anybody has come up with an alternative for this?  thanks


I tried to photograph the Northern Lights last night with 60D, kit lens. I had never tried this before. I did figure out the M mode and took some pictures with nice green lights on a 10, 15, 20 and 30 second exposure. I tried the max apertures and a few other settings in the same range-low end. My question with this lens is: what would be a good approach? I noticed I needed to shut off the autofocus or the picture would not be taken, my manual focus was out of focus as I really couldn't see through the camera viewfinder in the dark. Can I use autofocus? And how do I get the camera to take the picture using autofocus? What should I change in my approach?

A friend has been kind enough to lend me a DSLR for a few months.  It's my first foray into DSLR photography, or indeed any kind of photography beyond simply aiming my Canon IXUS at something and clicking the button.    Over the last few weeks, I've been busy studying, practising and trying to learn as much as possible ahead of a planned trip to Norway where I hope to see, and get some photos of, the Aurora Borealis.  I currently have:   Canon Rebel Xsi (450D) Canon 50mm f/1.4 L  Canon 18-55m kit lens Aluminium full height tripod with ball head Cable release Spare battery & memory cards   I'm prepared to spend the night wrapped up outdoors, in the hope that they will make an appearance. I'd like some advice on how to get the most out of this kit for the trip:   How should I go about setting up to get pics of the Aurora?  How might I achieve optimum focus? From what I've read, I'll need to use the tripod and cable release, with IS turned off, on continuous shooting mode with long exposure times. But I'd like some more specific tips in terms of which aperture and ISO settings might work best? Should I use one of the lenses above, or would it be worthwhile renting a better, wide angle lens; if so, which would you recommend?


Can you "use" a mining card without being adjacent to ore, or an irrigation card without being adjacent to wheat, in order to get them out of your hand and prevent opponents from spying them? You will get 0 cards from them but I'm mainly asking if you can use them up in this case. Can you "use" a medicine card when you can't actually build a city with it or already have the max 4 cities? Or can you "use" an engineer card when you have no city to place it on or already have the max 3 city walls? Same notion. I thought the answer was no, as you can't do it online. But I can't find anything in the rules specifically disproving it. Maybe I'm not looking hard enough. Thanks

If I have a Progress Card for which initial preconditions do not hold, will I still be able to use it in order to discard it back to the pile? The goal is to prevent a spy from stealing it.  A few examples:   I am leading in victory points but I want to use Wedding card. I have Irrigation but I don't have any wheat hexagons. I have Blacksmith but I don't have any ore hexagons.


I have a situation where I have to clean up files that are older than 7 days, but from multiple locations like below.    /home/user1/Out/vendor /home/user2/Out/vendor /home/user3/Out/vendor /home/user4/Out/vendor         ︙ /home/usern/Out/vendor   Can someone tell me how to achieve this without deleting folders? I am thinking to call there users from a text file.

I have found the command to delete files older than 5 days in a folder  find /path/to/files* -mtime +5 -exec rm {} \;   But how do I also do this for subdirectories in that folder?


The solutions to the equation $x^2-(3-2i)x+(1-3i)=0$ are $a-i$ and $b-i$ where $a$ and $b$ are integers.  What is $a+b$?  $x^2-(3-2i)x+(1-3i) = (x+(a-i))(x-(a-i))$   $= x^2 - 2xi-a^2 - 1$  $1 = x^2 - 2xi - a^2$  I'm not sure where to go from here

The solutions to the equation $z^2-2z+2=0$ are $(a+i)$ and $(b-i)$ where $a$ and $b$ are integers.  What is $a+b$?  I simplified and got $(z+1)(z+1) = -1$ and now I'm not sure where to go from there. I did this but I'm not sure.  $(a+i)^2 = a^2 - 1$  $(b-i)^2 = b^2 + 1$  $a+b=(a+i)+(b-i)=(a^2-1)+(b^2+1)=a^2+b^2$


Suppose we have $n$ $i.i.d$ random variables $X_{1},\ldots,X_{n}$  all distributed uniformly, $X_{i} \sim \mathrm{Uniform}\left(0,1\right)$ .  We want to find the expected value of $\mathbb{E}[Y_{n}]$  where $Y_{n} = \max\left\{X_{1},\ldots,X_{n}\right\}$. Here I got $F_Y\left(y\right) = \int\mathrm{d}x_{1}\ldots\int\mathrm{d}x_{n} = \left[F_{X}\left(y\right)\right]^n $ but to get $f_{Y}\left(y\right)$ i need to differentiate $F_{Y}\left(y\right)$ with respect to $y$ but how do i differentiate $\left[F_{X}\left(y\right)\right]^{n}$ with respect to $y\,?$.

If $X_1,\ldots,X_n\sim Uniform(0,1)$ and $Y=\max[X_1,\ldots,X_n]$, find $E(Y)$.   I don't really have any good starting point. I guess Y is a function of the X's and so I might be able to apply the theorem about the expectation of a function, but I don't know how to deal with this since max is a discrete function.  Can anybody help me please?


This question, which , remains effectively unanswered. Although there an answer did finally get  posted, it seemed to be more of a parody of an answer than a real one,  to me at least.   So here goes; please consider this sentence:     I can barely see a foot in front of me in this fog.   As a standalone sentence, it can’t be the answer to a question starting with “What can you...” because “a foot” is here a unit of the length of vision, and so a question it may be the answer to might be “How far can you see in this fog?"   Would I be right saying that *barely° in this sentence modifies can whereas a foot modifies to see? If so, does it mean that it plays the role of an adverb? But can a noun be an adverb? If so, what type of adverb is it in that sentence?  P.S. There’s a related post on the ELL site dealing with the role of a  foot in a sentence, but it doesn’t seem to answer my question.

From comments to , I learn that The Oxford Advanced Learner's Dictionary says , shows the word weekdays is an adverb.  It seems to me that in "We open weekdays at 7 a.m.", and "We open tomorrow at 7 a.m." both weekdays and tomorrow are the same "part of speech" - and again in "I'll go tomorrow".  I will happily describe words like happily and quickly as adverbs - for example...     "I'll go quickly", and by extension "I'll go quickly and quietly".   On the other hand...     "I'll go tomorrow" can't be extended to "I'll go tomorrow and quietly".   Am I being thick, or is OALD spouting nonsense?


Can someone please suggest a good latex editor for mac. something close to one that is used in this video    I liked the highlight and everything that this editor is offering. right now I am using TeXworks and it is so very plain  Thanks for the help

What editors/IDEs are available for easing the process of writing TeX/LaTeX documents? Please state some useful features like code completion, spell checking, building final DVI or PDF files, etc.  This question is undergoing a systematic refurbishment, see  on Meta. If you’d like to see another editor feature covered here or to take care of an editor that’s not covered yet, share your ideas in that meta question.  List of editors Links to answers.


What happens if we clamp a string at both it's ends and pluck it at different distances from one of the ends? Will the frequency of oscillation be the same or will it differ based on the place from where it was plucked?

When you energise a taut string, the following resonant modes of vibration occur:    Plotting on the frequency domain, you can see their corresponding frequencies:    But what is the underlying physical principle? Why does this happen?  Is there any way of explaining it that could be understood by a smart 15 year old?  EDIT: I'm going to give my best attempt so far. Here goes:   We can start with sympathetic resonance. Sounding a particular frequency, a pure sinewave.  And noticing the string resonates sympathetically at the frequency of each harmonic. Say this is explained and understood. Now imagine that plucking a string is equivalent to a burst of white noise, which contains frequencies all the way through the spectrum. This could be approached backwards, by starting with random frequencies and noticing that resultant wave produced looks like white noise.   If the above is scientifically correct, then it restricts the domain of the question.  I would really like to be able to understand it scientifically and also be able to explain it intuitively.  PS Images from


I saw a question, which looks like this:  public @interface Controller {  /**  * The value may indicate a suggestion for a logical component name,  * to be turned into a Spring bean in case of an autodetected component.  * @return the suggested component name, if any  */ String value() default "";   }  What is the default keyword, and the "" after default?

I have just discovered this feature.   Declaring an interface using the "@interface" syntax allows you to put a default value.  public @interface HelloWorld {       public String sayHello() default "hello world"; }   This is something new for me. How is that default value suppose to be used.  I cannot find references to that, because the www is full of java interface documents prior to "@" addition in Java 1.5 ( was it on .5 or in .4? )     EDIT  Thanks for the answers ( I was somehow close to "annotation", for I use the tag already )  :P   I knew I should've read that document years ago!!!... let's see...      Many APIs require a fair amount of boilerplate code. For....


I have a drop down menu that lets users filter through different types of items in an online store.  Currently, whenever a user clicks the add button, an alert should pop up with the index of the item.  This works when the page first loads and no filter is selected, but once the filter is applied, the onclick doesn't work.    Javascript that creates the html      function createProductData(product, index){     var trow = "
";         trow += "" + product.name + "	";         trow += ""+product.description + "	";         trow += ""+product.price + "	";         trow += "<button class='btn btn-primary addme ' data-index='"+ index +"'>Add</button>
";     return trow; }      Click function  /* *adds an items index to the 'cart' array, calls the displayCart function */ $('.addme').on('click', function(){     var thisButton = $(this);     var index = parseInt(thisButton.data('index'));     cart.push(index);     alert(index);     //displayCart(); })//end onlcick   The class name doesn't change when a new list is put out, so I'm not entirely sure what's causing the hiccup.

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.


Recently I’ve been thinking of an old science fiction short story that I read between roughly twenty and thirty years ago and that I would read again: it was published probably in the Fifties or Sixties and I seem to remember it was written by an established author.    It was short, possibly very short: and although I don’t remember how it ended, I have a feeling it hadn’t a happy ending.  The little I can remember about the plot pivots on an unnamed man - a prisoner probably - who wakes up in a long, empty, black or dark corridor: maybe he’s bound, maybe not; he doesn’t know why he’s prisoner and how he’s wound up there. As he explores the corridor, new sections open, possibly endlessly. As far as I remember, there wasn't much else in the story: just the man, the corridor and his thoughts.  I can add that somehow I used to pair this story in my mind with Plato’s allegory of the cave but I'm unsure how much this can be helpful.

I'm looking for a book of science fiction short stories. One of the stories describes the experiences of a man who finds himself in a corridor with a dead body. The corridor turns out to be a Möbius strip. I must have read that late 1970s.


I have a Toshiba laptop satellite with a 300GB hard drive and it is partitioned into six partitions and I want to cut/trim them to just dual-boot Windows 7 and Ubuntu 14.04, which is a reinstall so it /sda8. I had 13.10 which /sda6 and I also have 14.10 /sda7 all are ext4's and was able to reformat the partition 6 but I can't delete the partition and I keep getting:   CAN'T DELETE AS LONG AS A PARTION GRATER 6 IS MOUNTED   And I cant unmount /sda8 still, that what is running, also how would I get these other partitions removed after? Can I combine the old into one and change /sda8 to 6 so it will automaticaly load? I want to keep Windows 7 at present.

I'd like to see the full How-To on how to use manual partitioning during Ubuntu installation. The existing guides (at least those I found here) cover only automatic part and leave untouched the manual part (or extremely short and contain no pictures).  I'd like to cover such situations:     If your disk contains other systems:


I have quite a big problem for playing cause I often reach 95% of ram used when I play, even if I have 8Gb in my computer.  What I don't understand is if I open Task Manager and sum everything, I never reach how much used ram it tell me I am using.  For example in this screen, it tells me 48% so around 3.8G used, but if I sum everything I don't even reach 1G.  So can someone explain me what is happening ?      PS: Done check with poolmon and the highest driver show a use of 0.1Gb of ram, so that is not the problem and this is not a duplicate !  PS2 : RamMap say exactly the same as task manager.

A few days ago I updated my PC to Windows 10. However, after some use my PC started to slow down until it was impossible to use – it was due to high memory usage. After a restart, everything came back to normal (total usage around 25% of 8GB of RAM). However, during a few hours of usage the memory builds up again to 70%, and if not restarted it further goes to 100%, and later on even freezes. Task manager does not help very much as it does not show all the processes (added screenshots below). Also tried RAMMap but it gives an error: "error refreshing database". I tried Googling this question, yet without much success.  I do not know much about PCs, but maybe some of you know this issue, or could help to find out what is using my RAM.


It seems that neither winsub or woeusb are installable, except from source but I don't want to go down that rabbit hole, on Ubuntu 18.04. So what is the normal way of making the simplest thing - a bootable Windows USB?

I'd like to create a Windows bootable USB stick, but I don't have a Windows machine with me at the moment to do so. How could I achieve the same using Ubuntu?


In my analysis section where I used a partial least squares (PLS) structural equation technique, A reviewer commented that: "Not controlling for state or university etc, particularly in a diverse country like Nigeria, is a serious limitation in the quantitative analysis"  What did he mean, and any possible solutions, please? Thank you

To my understanding, "Control" can have two meanings in statistics.   Control group: In an experiment, no treatment is given to the member of the control group.  Ex: Placebo vs Drug: You give drugs to one group and not to the other (control),  which is also referred as "controlled experiment".  Control for a variable: Technique of separating out the effect of a particular independent variable. Some of the other names given to this techniques are, " accounting for", "holding constant", "controlling for", some variable.  For example: In a Football viewing study (like or not like),  you may want to take out the effect of gender as we think gender causes bias, that is, male may like it more than female.     So, my question is for point (2). Two questions:  How do you "control"/ "account for" variables, in general. What techniques are used? (In terms of regression, ANOVA framework).   In above example, does choosing male and female randomly constitutes control? That is, is "randomness" one of the techniques for controlling other effects?


public class sort {      public static void main(String[] args)  {          int i =1;         Scanner input = new Scanner(System.in);         System.out.print("Please enter the number of data points: ");         int data = input.nextInt();         double [] userArray = new double[data];         if(data < 0){             System.out.println("The number should be posotive. Exiting.");         } else {System.out.println("Enter the data:"); }             while (i <= data) {              int userInput = input.nextInt();              i++;         }                  insertionSort(userArray);     }      static void insertionSort(double[] arr) {         int i, j;         double newValue;         for (i = 1; i < arr.length; i++) {             newValue = arr[i];             j = i;             while (j > 0 && arr[j - 1] > newValue) {                 arr[j] = arr[j - 1];                 j--;             }             arr[j] = newValue;         }         System.out.println("The sorted data is: " + arr);     } }   Currently the output looks like this:  Please enter the number of data points: 5 Enter the data:  4 2 5 3 1   The sorted data is: [D@3d4eac69  the numbers are all inputed by the user, and the end of the output "[D@3d4eac69" is always outputted when I print arr.

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


I recently installed Ubuntu 18.04 on Mi notebook air. But, I couldn't connect to the Wi-Fi and it tells me that "No Wi-Fi adapter found"  Things I have Tried  Followed the link   Typed :  lshw -C network  Result:   *-network                         description: Network controller        product: Intel Corporation        vendor: Intel Corporation        physical id: 14.3        bus info: pci@0000:00:14.3        version: 00        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix bus_master cap_list        configuration: driver=iwlwifi latency=0        resources: irq:16 memory:b4210000-b4213fff   *-network        description: Ethernet interface        physical id: 1        logical name: enp0s20f0u3        serial: a6:db:bc:17:91:0f        capabilities: ethernet physical        configuration: broadcast=yes driver=rndis_host driverversion=22-Aug-2005 firmware=RNDIS device ip=192.168.42.216 link=yes multicast=yes   To know about chipset,  lspci -vvnn | grep Network   Result  00:14.3 Network controller [0280]: Intel Corporation Device [8086:02f0]   Driver for PCI device  lspci -vvnn | grep -A 9 Network | grep Kernel   Result:  Kernel driver in use: iwlwifi     Kernel modules: iwlwifi   I also checked the kernel version  uname -srm   Result:  Linux 5.0.0-37-generic x86_64   Then from , I downloaded iwlwifi-9000-pu-b0-jf-b0-34.618819.0.tgz based on kernel version and  copied the files in  /lib/firmware although I am not sure if its correct. Then I restarted laptop. But still the Wi-Fi is not working.  Furthermore I followed the steps from , but Still not working.   Output of  lspci -knn | grep Net -A3; rfkill list  00:14.3 Network controller [0280]: Intel Corporation Device [8086:02f0]     Subsystem: Intel Corporation Device [8086:0034]     Kernel driver in use: iwlwifi     Kernel modules: iwlwifi 0: hci0: Bluetooth     Soft blocked: no     Hard blocked: no 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no

Please note that this question is specific to Intel WiFi adapters.  My laptop is an HP ENVY with an Intel AX201 Wifi Adapter. I've dualbooted Ubuntu with Windows.  AX201 WiFi adapter is not supported by latest Ubuntu 18.04 version, because Ubuntu 18.04 comes with Linux Kernel 5.0, whereas support for AX201 comes built-in in Linux Kernel 5.2+. Canonical claims that Ubuntu 18.04 will get Linux Kernel 5.3 sometime next year. However, I wont be able to wait that long.  I tried downloading and installing Kernel 5.2.14, but I cant go beyond Grub: I get the error:     error: you need to load the kernel first.   Other option is to download the Intel Backport Driver, which I tried. That didn't seem to work either. As per the tutorials, I've restarted frequently, but that didnt work either.  Also I'm not quite sure if Intel IWLWIFI Backport driver supports AX201 in the first place.  WiFi works while I'm booted in Windows.  What should I do?  Thanks in advance!  UPDATE  I tried out @Pilot6's answer, and it worked. Thanks!  I have one last question: I've read that if you upgrade the Kernel beyond what Ubuntu 18.4 supports, its kinda unsafe (which I read as prone to system crashes).  I dont want system crashes because I have only one partition (root) for Ubuntu, and any crash would likely mean all my data is lost. One method forward would be to split my Ubuntu partition into root and home.  So if I want to access WiFi on my device safely without risking any crashes, what should I do?  My understanding of Ubuntu and Linux may be wrong as they are built on forum answers only. Please correct me if Im wrong anywhere.


I have game situation as shown in picture:     Red dot: player Brown dot: obstacle ( rock, tree, etc) Grey: non visible area ( under fog of war)   My question is: how can I draw that kind of shape, changed dynamically, with XNA 4.0. I can calculate each point of this shadow polygon. I would avoid drawing it pixel by pixel due to performance reasons, maybe particles? But i won't have sharp edges with this technique. Any tips?

I want to have 2D lighting that can be blocked by in-game objects. My game has a top-down view and all game objects are described by rectangles.  Let's say I have a 10x10 world and I place a light at 1x1 and walls all around that light. I want to be able to see the light source at 1x1, but not anywhere else, because it's blocked by the walls.  I've heard of casting light rays works, but how does that really work?


Is there a way to put unity at the bottom of the screen or is there an alternative to unity?

I can’t get used to the new Unity system. I’d like to move the left Unity panel to the bottom of screen (like Windows 7 – more similar is better).  But I can't find a way. Is it possible?


In QGIS and other systems sometimes I have a layer in geographic reference system (typically WGS84, EPSG:4326) and I'd like to calculate a buffer of say 5000m around a point.  So, given a point coordinate (lat/lon) and a distance (in meters), what is the geographic length (angle) in a geographic reference system (for geographic lengths shorter than 180 degrees)?  I'm referring to two implementations (QGIS, postgis.net/docs/ST_Buffer.html ) which offer just that one "buffer radius" parameter.   Remarks:   - I'm aware of Cosine Formula and Vincenty (like question 109562) but    can't resolve the formulas to angle.  - For the solution I prefer standalone implementations, say in Excel, pl/pgsql, Python or R.

I am having an issue with buffer. My data is in Geographic coordinate system. I am trying to do a buffer of 600m and i am finding different results for each case, have tried thse so far:    Map in web maercator map in UTM zone 12 map in geogaphic coordinate   I am missing some data points due to this and wanted to check how I can resolve this issue. I know that UTM is the most accurate projection for distance but I wanted to know if by using WebMercator map if there is a way to get correct buffer results , any ideas? Thanks jay


I would like to keep in black a part of my label (title) and make the other one varying according to a value.  In this (simplified) example, as required, the value color is varying according to a concentration, but also the title.     I would like to keep the first line in black and make the second one varying.  Text formula:  'Drill ' ||  "id"    ||  '\n'  ||  CASE     WHEN "Conc" >100          THEN               "Polutant"  || ': ' ||  "Conc"          else         '' END   Color formula:  if  ("Conc"> 220, color_rgb( 255,0,0) , color_rgb( 0,0,0))   Can QGis handle such a situation and how, or have I to program a function? In this last case, do you have an example to put me on the right way?

I would like to label data entries with multiple fields (that is easy, using the expression editor) in QGIS 2.18. But I fail to alter the styling of the labels, so that say the colour of the label from one data field (e.g., in the first line) was different to the second label value (second line). An older answer had the standard solution (duplicating the layer, ) I am wondering whether QGIS 2.18 or even the up and coming 3.0 will have a solution.


Consider question 10.3.  I am not able to prove 10.3. Attempt: f(x) $\geq$ 1 ae implies $\int_{I} f(x) \geq \int_{I} 1$ on I ae and $\int_{I} 1 $ is lenght of I so $\int_{I} f(x) $ is divergent. Also $s_n (x) \leq f$ so, $\int_{I} s_n(x) \leq \int_{I} f $. These are my thoughts . But how to show what is asked?

Let $\{s_n\}$ be an increasing sequence of step functions which converges pointwise on an interval $I$ to a limit function $f$.  If $I$ is unbounded and if $f(x) \geq 1$ everywhere on $I$ except on a set of measure zero, prove that the sequence $\{\int_I s_n\}$ diverges.  (Here $\int_I s_n$ refers to the Lebesgue Integral.)  Conceptually, this makes sense.  Clearly, if $f(x) \geq 1$ almost everywhere on an unbounded interval, then the sequence of Lebesgue integrals should diverge.  However, in proving this, I am running into issues with the convergence of $\{s_n\}$ being pointwise.  If it were uniform, I could easily show this.  How do I show that (even for pointwise convergence) I can choose $n$ large enough to make $\int_I s_n$ as big as I want?


Is it possible to solve this by hand? Without using the Extended Euclidean Algorithm  We do the Euclidean algorithm and we get:  720 = 231 * 3 + 27  231 = 27 * 8 + 15  27 = 15 * 1 + 12  15 = 12 * 1 + 3  12 = 3 * 4 + 0  The GCD is 3.  We now isolate the remainders:  27 = 720 - 231 * 3  15 = 231 - 27 * 8  12 = 27 - 15 * 1  3 = 15 - 12 * 1  We proceed by substitution:  3 = 15 - 12 * 1  What now? How can we proceed when we have *1? There is no substitution possible?  Help! Thanks!

I've only found a recursive algorithm of the extended Euclidean algorithm. I'd like to know how to use it by hand. Any idea?


I don't know the legitimate term for them, but I'm referring to the "shaded" or "stripy" regions that appear that can appear in your models (see the picture below)  Here is a contrived example deliberately created to reproduce the artifacts:     What are these artifacts called? I did a few google searches to learn more about this but came up short because I can only describe them as "visual artifacts" which is too broad.  What is causing these artifacts to appear? In both cases there are overlapping faces, but what causes Blender to show them in the way that it does? To approach from another angle: why could Blender not "simply" ignore overlapping faces? Are there general strategies one would take to fixing these issues? If so, what?   Even a link to a resource that explains this would be appreciated.

I was following  on creating a watch and noticed that when I rendered the watch, some pieces were messed up.  I'm new to 3D modeling and I've just learned Blender, I can't explain it well, so here's a picture:    Other examples:     I don't know if it's a problem with my World texture, the object, or the object's texture/material, so I can't even guess how to fix it. What causes this? Is it possible to fix it?


I can't seem to figure out this proof. I'm using weak induction and always get stuck during the inductive step.  Prove for n > 0:  $$f_{2n+1} = f_{n+1}^2 + f_n^2$$

Using induction, how can I show the following identity about the fibonacci numbers? I'm having trouble with simplification when doing the induction step.  Identity: $$f_n^2 + f_{n+1}^2 = f_{2n+1}$$  I get to:  $$f_{n+1}^2 + f_{n+2}^2$$  Should I replace $f_{n+2}$ using the recursion? When I do that, I end up with the product of terms, and that just doesn't seem right. Any guidance on how to get manipulate during the induction step?  Thanks!


A young baseball fan wants to collect a complete set of 262 baseball cards. The baseball cards are available in a completely random fashion, one per package of chewing gum.  How many boxes of chewing gum does the fan need to buy in order to have a full set with probability ≥ $0.99$?  I was told I need more info to solve this problem. However, this is all the info given. Is this missing data?

I heard an interesting question recently:     What is the minimum number of people required to make it more likely than not that all 365 possible birthdays are covered?   Monte Carlo simulation suggests 2287 ($\pm 1$, I think).  More generally, with $p$ people, what is the probability that for each of the 365 days of the year, there is at least one person in the group with that birthday?  (Yes, ignoring the leap-day.)


In exam class, by inserting a fixed minipage same size of your answerslines for students you create the same space when answers are printed or when answers are not printed. How come the depth is still different? Don't tell me to use \vspace.  \documentclass[11pt,a4paper,addpoints]{exam} \unframedsolutions  \usepackage{tikz} \usepackage{graphicx} \usepackage{geometry} \usepackage{calc} \usepackage[skins]{tcolorbox} \usepackage{calc} \newgeometry{left=2cm,top=2cm,right=2cm,bottom=2cm}  \newtcolorbox{greenbox}[1][]{%   size=fbox,   arc=5mm,   boxsep=0.7cm,   colframe=green,   colback=green!8,   beforeafter skip=5mm,% <--- Space setting before and after   #1% }  %\printanswers \begin{document}  \begin{questions}   \begin{greenbox}   \question[2] What is the first question?   \begin{solutionorlines}[4cm]               %heidht no answers=4cm   \begin{minipage}[t][4cm]{\textwidth-1.4cm} %height answers =4cm    The depth of this box is larger when answers are printed compared to answers not printed. How do I make "answers" and "no answers" the same dimension?    \end{minipage}   \end{solutionorlines} \end{greenbox}%   \end{questions}  \end{document}

I want to put my tikzpicture nicely between paragraphs. How do I do that? I do not want  to put it in a picture environment because than there is extra space underneath.  \documentclass[11pt,a4paper,addpoints]{exam} \unframedsolutions %\printanswers \usepackage{tikz} \usepackage{graphicx} \usepackage{geometry} \usepackage{calc}  \newgeometry{left=2cm,top=2cm,right=2cm,bottom=2cm}  \begin{document} \begin{questions}   Line above tikzpicture.  \begin{tikzpicture}[rounded corners=5mm] \path node[rectangle,draw=green,fill=green!8,inner sep=.70cm] {\parbox{\textwidth-1.4cm-\fboxrule}{  \question[2] What is the first question? \begin{solutionorlines}[4cm] This box is smaller than when the solutions are not printed. How do I make this the same dimension as when answers are not printed? \end{solutionorlines} }}; \end{tikzpicture}  Line under tikzpicture. I don't want this. I want the tikzpicture between paragraphs.  \end{questions} \end{document}


Hi. I'm new here. And I'm not good in English.      I've got some problem in my code.      Step 1.   I made the first dropdown list.      Step 2.   The second dropdown list would be created when the first dropdown list value is changed.      Step 3.   Alert msg should be shown when a selected value of the second dropdown list is changed.      Step1,2 is OK but Step 3 is NOT.      Please give me the way to solve this problem. thanks!   HTML  <select id="group"> <option value="NONE">SELECT GROUP</option> <option value="A">A</option> <option value="B">B</option> </select>   SCRIPT  /////// It works /////// $('#group').change(function(event){     var optionName = $('#group').val();    var AA = new Array("1", "2");    var BB = new Array("3", "4");     switch(optionName){           case 'A':        $('#company').remove().end();        var s= $('<select ></select>').attr('id','company');         $('<option>').attr('value','NONE').text('A').appendTo(s);        for(i=0; i<AA.length; i++)          $('<option>').attr('value', AA[i]).text(AA[i]).appendTo(s);                      s.appendTo('body');        break;    case 'B':        $('#company').remove().end();        var s= $('<select></select>').attr('id','company');        $('<option>').attr('value','NONE').text('B').appendTo(s);                         for(i=0; i<BB.length; i++)         $('<option>').attr('value', BB[i]).text(BB[i]).appendTo(s);                   s.appendTo('body');        break;  default:        $('#company').remove().end();        break;  } });  ///// It doesn't work ///// $('#company').change(function(event){    alert($('#company').val()); });

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 have a hp laptop with an AMD graphics card and I have installed Ubuntu 14.04 alongside my window 8.1. Under Ubuntu the laptop is quiet silent and smooth (no overheating) but the battery is draining very fast. It only last for one hour max. In windows it lasts for ~2.5 hours.

This question is present as a matter of historical interest.  While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will be closed per the .   It is possible to greatly extend the usage time of a laptop or netbook running on battery by disabling various services and installing various packages.   What tricks or tips do people have for getting an extra hour or two out of their batteries?


I just set up Eclipse with Salesforce, and when I try to Refresh from Server, it tells me  "unable to perform synchronize check with remote server Invalid username, password, security token; or user locked out Your project may be out of sync."  When I try to Deploy to Server, it gives me that, and then asks for my password, and then it works. But when I try to refresh from server, it just gives me that error and then doesn't ask for anything.  Is there a way to fix this?  Edit:  I asked a similar question before , that solution worked then, but it's not working anymore.   Edit: Is anyone out there? I reinstalled windows on my computer, reinstalled Force.com IDE, and I still cannot get this to work.

Eclipse is giving me this error when I try to copy an object back to the Force.com server: "unable to perform synchronize check with remote server Invalid username, password, security token; or user locked out Your project may be out of sync."  This is my first try at using Eclipse, so it may not be set up right.  Can anyone help?  Thanks!  Edit: screenshot of trying to deploy:


I am reading this book “Quantum Computing Explained” by David McMahon. I found the following statement on page 74  Note that the order of the tensor product is not relevant, meaning $|\phi\rangle \otimes |\chi\rangle = |\chi\rangle \otimes  |\phi\rangle$   I found it surprising to face this in a quantum computing book, because this is not true. Have any of you read the book or have any idea how it could be true? (Though as I said, I don’t think it is true).

I'm reading "Quantum Computing Expained" of David McMahon, and encountered a confusing concept. In the beginning of Chapter 4, author described the tensor product as below:  To construct a basis for the larger Hilbert space, we simply form the tensor products of basis vectors from the spaces $H_1$ and $H_2$. Let us denote the basis of $H_1$ by $|u_i\rangle$ and the basis of $H_2$ by $|v_i\rangle$. Then it follows that we can construct a basis $|w_i\rangle$ for $H=H_1\otimes H_2$ using $|w_i\rangle = |u_i\rangle \otimes |v_i\rangle$ (4.6) Note that the order of the tensor product is not relevant, meaning $|\phi\rangle\otimes |\chi\rangle = |\phi\rangle \otimes |\chi\rangle$.  In last equation, I think it implies that tensor product of two state vector is commutative. However, with simple computation to prove this sentence, I could hardly understand why this holds. Can anyone help me to understand what author want to explain?


Currently I have an java object called work, that object has this method inside of it.  public void Connection(Connection conn) throws NamingException, SQLException {       // Setup the Database datasource     Context ctx = new InitialContext();     Context env = (Context) ctx.lookup("java:comp/env");     DataSource ds = (DataSource) env.lookup("jdbc/carRentalSystem");     conn = ds.getConnection(); }   I am calling this method inside of my servlet to connect to my DB and add a table row. For what ever reason I keep getting a null pointer exception when running it through debug. Can anyone guide me how to get this to work properly?  protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {      // Obtain submitted form data      Work work = new Work();     String firstName = req.getParameter("First_Name");     String lastName = req.getParameter("Last_Name");     String username = req.getParameter("User_Name");     String email = req.getParameter("Email_Address");     String password = req.getParameter("Password");      ResultSet rs = null;     Connection conn = null;     Statement st = null;      try {         work.Connection(conn);           // Prepare the SQL statmenet to insert the values          PreparedStatement stmt = conn.prepareStatement("INSERT INTO userdetails(First_Name, Last_Name, Email_Address, Password, User_Name)  VALUES (?,?,?,?,?)");         stmt.setString(1, firstName);         stmt.setString(2, lastName);         stmt.setString(3, email);         stmt.setString(4, password);         stmt.setString(5, username);          // Execute the insert         stmt.executeUpdate();         conn.close();          // Dispatch into success page         RequestDispatcher requestDispatcher = req.getRequestDispatcher("login.jsp");         requestDispatcher.forward(req, res);     } catch (Exception e) {         work.ErrorHome(req, res, e);     } finally {         try {             if (st != null)                 st.close();         } catch (java.sql.SQLException e) {         }         try {             if (conn != null)                 conn.close();         } catch (java.sql.SQLException e) {         }         try {             if (rs != null)                 rs.close();         } catch (java.sql.SQLException e) {         }     } }   }

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I have a package of sausage that I intended to use yesterday. It was taken out of the freezer to thaw at about 4 o' clock. At 9 o' clock it felt fully thawed but we ended up putting it back in the refrigerator where it sits as we speak. When used the sausage is going to be baked in the oven for half an hour. Are we safe to eat this?

I generally defrost meat on the kitchen counter. A friend of mine suggested that this was dangerous and suggested that I defrost meat in the refrigerator. I am no biologist but it seems to me that as long as the meat doesn't get warm defrosting it on the counter should be safe.  Generally, I remove the frozen items from the freezer and place them on a plate on the counter in the packaging they were frozen in. When they are mostly / completely thawed I place the meat in the refrigerator.  Am I wrong and should I be defrosting in the refrigerator?


I am having two list of Users class i.e UsersExisting, UsersToUpdate. Class Structure is like below.  public class Users {     public string Name{get;set}     public Roles[] AvailableRoles{get;set} }  class Roles {     public int Serial{get;set}     public string Name{get;set}     public bool IsActive{get;set} }   I have to check whether UsersToUpdate has already all the Role details of UsersExisting.  Eg. This is the list  UsersExisting.AvailableRoles={{1,"admin",true},{2,"hr",false},{3,"it",true}}; UsersToUpdate.AvailableRoles={{1,"admin",true},{2,"hr",false},{3,"it",true},{4,"finance",false}};   How to do this with LINQ.  I am doing like this.  bool isUsersUpdated = !UsersExisting.AvailableRoles .Except(UsersToUpdate.AvailableRoles).Any();   This is throwing error.

Any idea on how to check whether that list is a subset of another?  Specifically, I have  List<double> t1 = new List<double> { 1, 3, 5 }; List<double> t2 = new List<double> { 1, 5 };   How to check that t2 is a subset of t1, using LINQ?


Energy stored in capacitors is represented by $$U = \frac{1}{2} QV$$ Now I have heard 2 reasons why there’s a half factor, unlike the general potential energy equation, which is $U = QV$.  Capacitors should’ve stored $QV$ amounts of energy. But, because electrons are being pushed to a negative plate, and electrons are being pulled off from an increasing positive plate, work is being done and half of $QV$ is needed to do work. The remaining half is the energy stored in capacitors. When you are discharging a capacitor, voltage keeps on decreasing as charge keeps on decreasing. As a result, energy keeps on decreasing and the sum of the energy transferred happens to be half of $QV$.  I don’t really know what’s the correct way to approach this. Both sound equally valid to me.

The maximum energy stored by a capacitor is when it’s (theoretically) fully charged, or just before it reaches dielectric breakdown, if you will. It seems, then, that the maximum energy ($E$) $=QV$, where $Q$ is the maximum charge attained and $V$ is the maximum ‘voltage’. However, the correct equation for the maximum energy is $E=\frac{1}{2}QV$. Why? I’m looking for a simple, intuitive explanation because my reasoning that $E=QV$ seems sound to me. I know about , but I’m looking for a reason to disprove my specific argument that $E=QV$ and not the “Oh, it comes from integration.” response.


OK, I'm not a techno geek, I just expect my computer to work. Windows hangs up on me too often, and I'm tired of Microsoft for many reasons. So after many recommendations I downloaded Ubuntu. But it came in an ISO file, and I have no idea what to do with it. I also apparently downloaded a 64-bit version although my old laptop has only 2 GB RAM and currently runs 32-bit XP.  So what do I do now/ To me this is like replacing the engine in my own car-- when I barely know more than checking fluids. I just drive it. Help?

I would like to see a full how-to guide on how to install Ubuntu.


Say I have a protected method in PHP, as shown below:  class Test {      protected function hello($x) {         echo "hello " . $x . "<br>";     }      public function __construct() {         $i = 2;         self::hello($i);         $this::hello($i);     } }  $test = new Test();   The output is hello 2 printed twice. So calling the protected method hello works via both self and $this. Which is the correct approach? My personal answer is self, since $this refers to the current object, and any object of this class shouldn't have access to its protected method. Am I right or wrong?  Edit: This question isn't a duplicate. The other question talks only about accessing static members members through self and $this. I am interested in protected members specifically.

In PHP 5, what is the difference between using self and $this?  When is each appropriate?


Ok so I have a button that when someone clicks it appends some info to a section.   like so:  function() {   $(".blend-tile").click(function() {      $(this).hide();     var li = $('

X

');     $('#mixers').append(li);     $('.tpic', this).clone(true, true).contents().appendTo(li.find('.color-img'));     $('.infora', this).clone(true, true).contents().appendTo(li.find('.infora'));     if ($('#mixers li').length === 6) {       $(".tiles").hide();       $(".nomore").show();     }   }); });   Which is all good work's fine.  But I also want all of this to remove() when I click
X
.  and for that I am using:  $(function() {   $(".clear-tile").click(function() {     $(this).parent().remove();   }); });   But nothing happens no error nothing.  I also have similar function's in my file that use remove() and such which work fine. It's just anything that I try to trigger from .clear-tile just doesn't work at all.  I have a feeling it's down to me appending it but I'm not sure any help would be much appreciated

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.


Is there a way to format the Name element generated as dynamic text from ?  This element serves as my title and it is too long and needs to be wrapped onto another line.

I was trying to figure out how to use dynamic text from an attribute table in a collection of Data Driven Pages in ArcGIS 10.   I've looked in the help files, but can't find anything on dynamic text from attribute tables.


I got following error while running sudo update-manager -d command. Why this error occurred? And how to solve it?  sudo update-manager -d Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused  (update-manager:2298): Gtk-WARNING **: cannot open display: :0

All of the sudden gksu stopped working for me:  ~$ gksu gparted  (gpartedbin:24252): Gtk-WARNING **: cannot open display: :0   The same happens with gparted-pkexec:  ~$ gparted-pkexec  No protocol specified  (gpartedbin:25454): Gtk-WARNING **: cannot open display: :0   What could possibly be causing this?   I am not running this through SSH or VNC. This is localhost in a normal terminal window.


Is     This one is prettier a flower than a rose.   acceptable?  Or am I not allowed to invert it and have to say      This one is a prettier flower than a rose.   ?

I couldn't afford that big a car. It was so warm a day that I could hardly work.   The sentences stated above have been taken from Practical English Usage by Michael Swan. If I write-   I couldn't afford that big car. It was so warm day that I could hardly work.   These make sense. But placement of article a makes these sentences awkward to me. Please say why and when articles are placed after adjectives. And what are the differences among 1, 2 and 3, 4.


Let $n$ be a positive integer and consider $2009$ (not necessarily distinct) subsets of $\{1,2,\ldots,n\}$ such that each of them has size $45$ and any two of them have exactly $1$ common element. Prove that there is an integer which belongs to all $2009$ subsets. Progress: 1) By Fisher's inequality the number of distinct subsets is at most $n$ and so by Pigeonhole there are some $\lceil 2009/n \rceil$ of the $2009$ subsets which coincide.  Suppose the desired statement is false, let $k_i$ be the number of subsets containing $i$ and let $k = \max_{i} k_i$. We claim that $k\leq 44$. Suppose $k = k_j$ and pick sets $A$ and $B$ which contain $j$ and $X$ which does not contain $j$. Then $A\cap B = \{j\}$ and $A \cap X \neq B \cap X$. Now by fixing $A$ and $X$ and letting $B$ run through all subsets which contain $j$, the claim follows.  Any help appreciated! (Hopefully with an entirely combinatorial proof.)

I found an interesting problem regarding the principle of inclusion and exclusion. Given $1985$ sets, each containing $45$ items, find their total union, if the union of any two is $89$. This is what I did: First, I found out the intersection of any two. Using the principle of inclusion and exclusion, I managed to find out that |$A_{1}$|$\cup$|$A_{2}$|=|$A_{1}$|+|$A_{2}$|-|$A_{1}$|$\cap$|$A_{2}$|. From this, we know that $89=45+45-x$, where $x=1$. The first thing that came to my mind was that this intersection could be the common intersection of all the sets: A solution I found to the entire problem is that there is one element that every set has in common, and 44 elements that each set does not share with no other set. To clarify, one can imagine a flower, whose petals are individual sets, their only common item being the center of the flower. Each and every pair of sets therefore contains the required 89 elements ($44$ elements on one petal $+$ $44$ elements on the other petal $+ 1$ element in the centre), each set also contains $45$ elements. Therefore, the total sum of all the elements, or the union of all the sets, is $1985\times44+1$. But I do not know how to prove this with formulas and expressions. I am also not sure whether this is correct, because of what I found when I tried to solve a similar problem but only with three sets: The rules of this problem are exactly the same as before, only now we have $3$ sets instead of $1985$. I found out two ways to arrange the elements of the sets which satisfy the rules, each of them having a different total union. If we had a three-set Venn diagram, one solution is this: 1 element in the intersection of them all ($A \cap B \cap C$) 44 elements in each individual set but not in any intersection (in $A$,$B$,$C$) The other solution is this: 1 element in each intersection of every pair, but not in the intersection of them all 43 elements in each individual set. Their unions are different, because while in the first solution, the union is $44\times3+1$, while in the second solution, the union is $43\times3+3$. These are different numbers and therefore I am unsure about my solution to the original problem. My question is whether there is an analytical way to solve this problem, or whether I am missing something.


Send an invitation and let the user create their own password   In this sentence user is singular, and their is plural. So I am confused whether this sentence is correct or not.  Is this sentence correct? If not how can I correct it?

Is there a pronoun I can use as a gender-neutral pronoun when referring back to a singular noun phrase?  Each student should save his questions until the end. Each student should save her questions until the end.


I have once come across a material/ substance/ compound,  or something, that cuts off objects from Earth's gravitational pull.    In other words, it would keep the object suspended in the air and will not allow it to touch the ground, hence, we can say that this is a barrier between the object and the earth's gravity.   Can you please give me the name and properties of this material / substance / compound / gas / or what ever it is?

Electromagnetic waves can be shielded by a perfect conductor. What about gravitational fields or waves?


Lets assume that the red ball is more dense than the white fluid and less dense than the blue fluid. The fluids are of very low viscosity and the machine can be of any height. The flaps open when pushed from the bottom and after the ball goes through then they close hermetically(some magnets perhaps).  My understanding is as follows:  The ball needs a finite velocity to open the flaps. Since H1, H2, can be of any height that is not a problem.  The ball needs a finite velocity to jump off the water high enough. That is not a problem since H3 can be of any height.  The ball needs a finite velocity to get into the water. That is not a problem since H1+H2+H3 can be of any height.  If it worked it would be a perpetuum mobile. Please help me find out why it won't work.

I realize this isn't possible, but I can't see why not, especially if you change the model a little bit so that the balls simply travel through a tube of water on the way up, rather than exactly this model.  Please be clear and detailed.  I've heard explanations like "the balls wouldn't move" but that doesn't do it for me - I really do not see why the balls on the right would not be pulled/pushed up, and the rest of the chain wouldn't continue on.


Why is the energy function $h = \dot{q_i}\frac{\partial L}{\partial \dot{q_i}} - L $ not always equal to total energy  $E = T + V$? Here $T$ is Kinetic Energy and $V$ is Potential Energy. I've read that $h$ is not always the same as total energy for any given Lagrangian System, but I do not understand why this is. Under what circumstances is $h$ not equal to $E$? Also, my understanding is that the Hamiltonian $H$ is defined as $H = \dot{q_i}\frac{\partial L}{\partial \dot{q_i}} - L$. Does this mean the energy function $h$ is always the same as the Halmitionain $H$?

I thought the Hamiltonian was always equal to the total energy of a system but have read that this isn't always true. Is there an example of this and does the Hamiltonian have a physical interpretation in such a case?


I am confused about invoking bash from python code. I wrote a small script that shows strange behaviors when invoking bash from python : import subprocess  def check_output ( command,**w ):     print( '\n>>> %s'%command )     try :         return subprocess.check_output( command,**w ).decode()     except Exception as e :         return str( e )  print( check_output( ['ls','-l'])) print( check_output( ['ls','-l',';','ls','-a'])) print( check_output( 'ls -l' )) print( check_output( 'ls -l ; ls -a' )) print( check_output( ['echo','99'],shell=1)) print( check_output( ['echo','11',';','echo','22'],shell=1)) print( check_output( 'echo 33 ; echo 44',shell=1 ))  And the output: >>> ['ls', '-l'] total 124 -rwxrwxrwx 1 root root    59 Mar 22 09:57 main.py -rwxrwxrwx 1 root root  3885 Mar 17 17:30 README.md drwxrwxrwx 0 root root  4096 Mar 22 10:33 src -rwxrwxrwx 1 root root    36 Mar 22 09:57 sub.c drwxrwxrwx 0 root root  4096 Mar 22 10:33 test   >>> ['ls', '-l', ';', 'ls', '-a'] ls: cannot access ';': No such file or directory ls: cannot access 'ls': No such file or directory Command '['ls', '-l', ';', 'ls', '-a']' returned non-zero exit status 2.  >>> ls -l [Errno 2] No such file or directory: 'ls -l': 'ls -l'  >>> ls -l ; ls -a [Errno 2] No such file or directory: 'ls -l ; ls -a': 'ls -l ; ls -a'  >>> ['echo', '99']  >>> ['echo', '11', ';', 'echo', '22']  >>> echo 33 ; echo 44 33 44  The first and last commands are as I expected, but the others seems strange to me. The multiple commands separator ; seems to act differently depending on parameter shell. And also the concatenated commands... By the way I get the same results with python 2 and 3 (under kali linux).

I'm trying to write a shell script that, when run, will set some environment variables that will stay set in the caller's shell.  setenv FOO foo   in csh/tcsh, or  export FOO=foo   in sh/bash only set it during the script's execution.  I already know that   source myscript   will run the commands of the script rather than launching a new shell, and that can result in setting the "caller's" environment.  But here's the rub:  I want this script to be callable from either bash or csh.  In other words, I want users of either shell to be able to run my script and have their shell's environment changed.  So 'source' won't work for me, since a user running csh can't source a bash script, and a user running bash can't source a csh script.  Is there any reasonable solution that doesn't involve having to write and maintain TWO versions on the script?


Let $X$ be a Banach space with norm $\|\cdot\|$. Let $(x_n)$ be a Cauchy sequence in $X$ containing a subsequence $(x_{n_k})$ which converges to some $x \in X$.   Is it true that $(x_n)$ must also converge to $x$?   I think the answer is yes, since $$\|x_n - x\| \leq \|x_n - x_{n_k}\| + \|x_{n_k} - x\| < \epsilon,$$ but I would appreciate any verification/correction.

Let $(X,d)$ be a metric space, and say $(x_n)$ is a Cauchy sequence such that it has a convergent subsequence $(x_{n_k})$ that converges to $x$. We show $x_n \to x$. Let $\epsilon > 0$. Take $N >0$ such that for all $n,m > N$, we have   $$d(x_n,x_m) < \frac{\epsilon}{2}.$$  By hypothesis, we can take also $K >0$ such that for all $n_k > K$, we have  $$ d(x_{n_k},x) < \frac{\epsilon}{2}.$$  Put $M = \max \{N,K\}$. Therefore, for all $n,m,n_k > M$, we have  $$ d(x_n,x) \leq d(x_n, x_{n_k}) + d( x_{n_k},x) < \frac{\epsilon}{2} + \frac{\epsilon}{2} = \epsilon.$$  Hence, $x_n \to x$ as desired.  Is this a correct approach? Thank you very much in advance.


I checked the source code of java Collection interface and List interface. Some of the methods in Collection interface e.g int size(), are re-declared in List interface though it is not necessary as List extends the Collection interface.(Java 11).

I've been looking at the JMS API from J2EE and found a strange behavior where certain methods that are declared in an interface (e.g., createQueue in Session) are declared again in the subinterfaces such as QueueSession, and with identical documentation.  Since an subinterface "inherits" all the method declarations of the interface it inherits, and since the JavaDoc tool has no problem sorting out the JavaDocs of the subinterface and creating an "inherited operations" list, I can't figure out what this achieves.  The only think of is that initially the call was in Session, and then moved to QueueSession when the specific subclass was created, though then I would have expected to see something in the documentation of the upperclass. But this is just conjecture.  So the question is: Is there a convincing reason to redeclare a method in a subinterface?