Currently I am working on an assignment that needs me to typeset the following Sylvester matrix in LaTeX.     I have no idea how to typeset the two braces on the right side so I would like to ask for it. I am using the document class of amsart and I can implement any package if needed.  Thanks in advance..  ps. The enclosed is what I have so far  \begin{align*} Syl_i(A,B)= \underbrace{ \begin{bmatrix} a_m & \cdots & a_0 & & \\ &\ddots & \cdots & \ddots & \\ & & a_m & \cdots & a_0 \\ b_n & \cdots & b_0 & & \\ &\ddots & \cdots & \ddots & \\ & &b_n & \cdots &b_0 \\ \end{bmatrix} }_{m+n-i} \end{align*}   The problem is that I don't know how to add the two braces right to the matrix..

I created the following matrix with , and I would like to add at the bottom (respectively right) something like an underbrace (resp. "rightbrace") under each of the two blocks, together with a number specifying the number of columns (resp. rows) of the block. This amounts to two braces on the bottom and two on the right, and each brace should have a number below (resp. at the right) of it.  I did not find anything about that on the easybmat manual. I think I see how to do the braces with the  package, but then I am not able to create the block structure of the matrix in the first place.  \documentclass{article} \usepackage{easybmat} \begin{document} \[  M(z)= \left[ \begin{BMAT}[5pt]{c|c}{c} \begin{BMAT}[5pt]{c:c:c}{ccccccc} & & \\ & & \\ & & \\ v_1 & \dots & v_m \\ & & \\ & & \\ & & \end{BMAT} & \begin{BMAT}{c}{c|c} \begin{BMAT}[5pt]{c:c:c}{ccc} & & \\ w_1(a) & \dots & w_n(a) \\ & & \end{BMAT} \\ \begin{BMAT}[10pt]{c}{c} B(z) \end{BMAT} \end{BMAT} \end{BMAT}  \right] \] \end{document}     This is more or less what i wish:


Take the square $[0,1]^2$ and divide it up with $n$ random lines. We can choose our random lines by choosing one point randomly on one of the four sides and then choosing another point randomly lines and also what is the probability that no region is greater than $0.5$?  If anyone has any cases or any ideas, or especially a full solution I'd be very grateful.   Thanks!

Take the square $[0,1]^2$ we take $n$ random lines through the square. You can choose random lines by choosing a point on one of the sides of the squares and randomly choosing a different point on any of the other three sides and then drawing a line connecting them.   What is the probability that after $n$ of these random lines the largest region is greater than or equal to $0.5$?  Any tips or cases help, thanks.


I'm running a binary logistic regression on 15 independent variables for 180 observations in Stata (version 11). This I do for four different groups, i.e. four dependent variables. For three, it works fine, but the fourth gives me the warning message that one IV "predicts success perfectly" and that the IV is "dropped and 96 obs not used". This IV is a dummy (and considered important for this one out of the four groups).  This leaves me with 84 observations. In comparison with the other three estimations, the SE seem to be a bit inflated, but p-values are fine (if I drop the problematic IV, the SE go down, but the p-values go up). The LR chi squared shows significance at the 10% level and the pseudo R squared is 0.191.  I suppose this is a case of (quasi-)complete separation. My questions are   if I can still use the regression estimates after such a warning, because Stata dropped the problematic cases (=all of the 84 the observations, for which the dummy exists or is coded 1). or if I should drop the problematic IV (which would be unfortunate, even though I would have a the original sample size of 180 then) and if neither 1. or 2., how I can deal with this problem.    I know that 180 observations are not much for a model with 15 IVs. However, I'm hoping for some advice on how to solve the problem other than reducing an overfitted model - especially specific Stata knowledge would be of great help.

If you have a variable which perfectly separates zeroes and ones in target variable, R will yield the following "perfect or quasi perfect separation" warning message:  Warning message: glm.fit: fitted probabilities numerically 0 or 1 occurred    We still get the model but the coefficient estimates are inflated.   How do you deal with this in practice?


Is there a foreach statement in java that I can use to create a string from an ArrayList such as:  ArrayList<String> captured_photos=new ArrayList<String>(); captured_photos.add("pic1"); captured_photos.add("pic2"); String MyMessage=""; foreach(AnElement,My_ArrayList){MyMessage+=AnElement+", ";}   That will create MyMessage: "pic1, pic2, "?

Consider:  List<String> someList = new ArrayList<String>(); // add "monkey", "donkey", "skeleton key" to someList     for (String item : someList) {     System.out.println(item); }   What would the equivalent for loop look like without using the for each syntax?


Cannot find an answer that is actually for non gui Linux to copy output of command line and paste into a config file.  The output of curl -s https://api.wordpress.org/secret-key/1.1/salt/ to setup wordpress on a server is what I'm trying to do.  Sorry if repeated, but can't find a working answer. Thanks.

My goal is to output an html source into a file, I'm using w3m to browse the web from terminal.  When using the following command on terminal: w3m <url> -dump the program displays the web site in a non interactive way, but no its html source.  If you open a web site with w3m <url>, the terminal will display the site and if you press v, then the program will display the html source, I tried to script this but with no success. I thought the command line argument -dump_source would help me, but the only thing I got is a non-human reading content, I don't know what -dump_source was supposed to return  Here is what I tried so far:   Use -T text/html with -dump on terminal but the output didn't changed Use -T text/plain with -dump_source on terminal hoping that the non-human output would be converted to a plain text, but no success (I didn't understand what -T is used for, even after reading w3m manual by typing man w3m on terminal) Knowing that pressing v while w3m is displaying a web site switch from web page content to html source code, I tried to use gdb to attach it to the w3m process and redirect its stdin and stdout to my files (input.txt, output.txt) which input.txt contains a single v, but I had no success. Doing this on my test program worked as expected. I followed what was described . If I write ls -l /proc/<w3m_pid>/fd, where w3m_pid is my w3m process id which I got by using ps ax on terminal, I can see there is 3 file descriptors, if I try to redirect the third one, the program crashes and displays: Error occured: errorno=25 Redirecting the standard I/O with w3m <url> < input.txt > output.txt also did not worked W3M uses keybinding to navigate on the web, it means that if you press v there is no need to hit enter, the terminal is not buffering the input, using gdb attached to the w3m process I tried to remove it by using p system ("/bin/stty cooked"), but the w3m keybind did not changed.   My question is: why redirecting I/O with gdb is not working and what I can do to get html source code? w3m have an option to output html source code that I'm missing or I would have to use another program?  PS: I need html source code for a university homework, with html source code I can create a script to browse the web and output the page into a file, than I'm supposed to use those outputs with flex to extract statics information about things on the web, like: how many the word stack appears in questions about the c language? This is my idea.  Any suggestions would be appreciated.  W3M version: 0.5.3+debian-15  GDB version: 7.7.1   Ubuntu version: 14.04  Thanks in advance!


Let $R = k[x, y]$ be the polynomial ring in two variables and $I$ an ideal of $R$ such that $R/I$ is finite dimensional. I wonder if the following statement is correct?   If $\mathfrak{m}$ is a maximal ideal in $R/I$, then its annihilator in $R/I$ is nonzero.   Here, I assume $k$ is algebraically closed. Thanks!

Let $K$ be a field and $A$ an affine $K$-algebra. Show that $A$ has (Krull) dimension zero (is artinian) if and only if it is finite dimensional over $K$.


I have a situation where I want to show/hide my SharePoint list column / Fields in a list form based on the value of some other field on the form.   Example :  I have 2 dropdowns say "IssueType", "Level" and a TextBox, I want that my TextBox should be visible only when value from dropdowns are "Error" and "High" respectively.  How can I achieve this in the form?  I am OK with using JS, CSR or any other option available as this is for my own learning purpose.

I need to hide field 'B' when the value in field 'A' is NOT equal to 'Other'.  This is a custom list form.  Is jquery the way to go?


My nikon D90 is showing FEE error on all settings and is not clicking pictures at the moment. Nikon support says the answer lies in page 26 of the User's manual but i didn't find anything helpful. I've used this lens for about a year and this is the first time this has occurred. It works with my kit lens (18-105mm AF/MF). What can be done to reset this?

I have a AF Nikkor 50mm f/1.8. When I have the aperture setting on the lens to 22 I can take photos. But when I change the dial to anything other than 22(lowest f/stop) then I get a flashing fEE message and r09 where the number of exposure left is.  I don't have the manual for this lens but am just wondering if anyone knows what the issue is here.  My camera is a Nikon D70S.


How do I display an image inline in a post or answer on Stack Exchange?  I've noticed other answers on similar questions show how to link to pictures, but don't show how to display a picture in a post.  I've answered the question below to help the community.  Note to community: I'm asking this (duplicate) question to provide the answer because the other (duplicate) questions like this didn't let me provide a more detailed answer since they were closed as duplicates, and the existing answers on all the existing questions like this didn't contain enough detail for me to figure out how to post inline pictures, although they were good hints to get started. My answer below is verbose and explains how to anyone.  Example of successful inline image:

Sometimes I need to upload, embed, or display inline an image in a question or answer. How can I do that?


Prove that $\int_{0}^{1}\frac{\log(1+x)}{1+x^2}\, dx=\frac{\pi}{8}\log 2$  I have tried to sole the problem, but failed. Any one can help me to sole the problems.      Here, I have tried to solve this using integration by parts : Let $I=\int_{0}^{1}\frac{\log(1+x)}{1+x^2}\, dx$.  Then $I=\left[ \tan^{-1}x\,\log(1+x)\right]_0^1-\int_{0}^{1} \frac{\tan^{-1}x}{1+x}\, dx$     How can I integrate the second term?


for the addon I'm working on, I need a list of all fcurves (a list of all selected/visible fcurves would be enouph) Do I really have to loop through all animation_data objects to get this list?  Thanks in advance, Jacques Lucke

I'm looking for something similar to this, or other:  len(bpy.context.selected_objects)


If I want to bootstrap juju with openstack I get the followed output:  juju -v bootstrap verbose is deprecated with the current meaning, use show-log 2014-02-04 13:15:13 INFO juju.environs open.go:156 environment info already exists; using New not Prepare 2014-02-04 13:15:13 INFO juju.provider.openstack provider.go:116 opening environment "openstack" 2014-02-04 13:15:14 INFO juju.environs.tools tools.go:181 filtering tools by released version 2014-02-04 13:15:14 INFO juju.environs.tools tools.go:85 reading tools with major.minor version 1.16 2014-02-04 13:15:14 INFO juju.environs.tools tools.go:96 filtering tools by series: precise 2014-02-04 13:15:14 INFO juju.environs.boostrap bootstrap.go:50 bootstrapping environment "openstack" 2014-02-04 13:15:14 INFO juju.environs.tools tools.go:181 filtering tools by released version 2014-02-04 13:15:14 INFO juju.environs.tools tools.go:85 reading tools with major.minor version 1.16 2014-02-04 13:15:14 INFO juju.environs.tools tools.go:96 filtering tools by series: precise 2014-02-04 13:15:14 INFO juju.environs.boostrap bootstrap.go:71 environs: picked newest version: 1.16.5 2014-02-04 13:15:15 ERROR juju supercommand.go:282 cannot start bootstrap instance: cannot run instance:      failed to run a server with nova.RunServerOpts{Name:"juju-openstack-machine-0", FlavorId:"42", ImageId:"Juju-Test",      UserData:[]uint8{0x1f, 0x8b, 0x8 .... 0x0}, SecurityGroupNames:[]nova.SecurityGroupName{     nova.SecurityGroupName{Name:"juju-openstack"}, nova.SecurityGroupName{Name:"juju-openstack-0"}}}     caused by: request (http://XX.XX.XX.XX:8774/v2/a02b07a1a6364b88bc96f305e0ce1ef3/servers) returned unexpected status: 400;      error info: {"badRequest": {"message": "Invalid imageRef provided.", "code": 400}}   On OpenStack was also no main juju instance created.  Has someone an idea what goes wrong?

I've deployed Openstack using juju, and everything looks normal except that I cannot browse to openstack-dashboard. I get error 500 Internal Server Error.  I looked through apache2 logs at that node and found  repeated every couple of minutes.  I tried to destroy the service and deploy it on other nodes; co-located with keystone node, then glance node, then by it self. Yet I get the same errors.  It looks like it needs deep python debugging which is weird since this is the typical charm deployment on a normal server. And someone must had tried to deploy this and succeeded!  I'm deploying openstack Essex version 2012.1.4-dev , Ubuntu server version 13.10 , django version is: (1, 5, 4, 'final', 0) And   Please help me :)


I have a document with a lot of tikzpicture made with pgfplots, most of them take data from files so the compilation may be very long. In order to have only a draft I would like to have blank images with same dimension of the full ones.  Until now I used a trick of having a tikzpicture with an empty axis environment of the same dimensions of the original one and with some if statements I included the blank or the full image like this:  \newcommand{\img}{Y} % immages Y(es) or N(o) ... \begin{figure}   \centering   \ifthenelse{\equal{\img}{Y}}{%     \input{Immagini/full.tex}}{%     \input{Immagini/empty.tex}}   \caption{caption} \end{figure}   file full.tex  \begin{tikzpicture}   \begin{axis}[height=9cm, width=.8\textwidth]     \addplot table [x index=0, y index=2] {dati.dat};   \end{axis} \end{tikzpicture}   file empty.tex  \begin{tikzpicture}   \begin{axis}[height=9cm, width=.8\textwidth]   \end{axis} \end{tikzpicture}   But today I read this question  and now I would like to know if there is a similar way to the draft option of the package graphicx that does the same thing with tikzpicture.

I'm working on a fairly big document that has a lot of graphs of functions- so far it has around 200, by the end it will have around 1500. I use pgfplots for each graphic, and the functions are pretty basic: exponential, rational, polynomial, and trigonometric.  Once I am happy with each graph, I don't necessarily need to see it every time I compile, and would like to minimize compilation time for future drafts. Naturally, the document is already chopped up into chapter files, but each chapter contains around 100 figures.  Having studied the pgfplots documentation, I haven't found a draft mode, but I'm interested in knowing if one could be created.    I'm envisaging something similar to the draft mode of the graphicx package, in which graphics are not included, and blank boxes are put in their place.  Some things I've considered:   the  documentclass; but with about 1500 figures, wouldn't this mean over-modulization?  tikzexternalize, but this still requires an initial 'monster' compilation to get the images externalized before the draft option could be invoked   Here's a MWE to play with  \documentclass{article} \usepackage{pgfplots}  \begin{document}  \begin{tikzpicture}     \begin{axis}         \addplot {x^2};     \end{axis} \end{tikzpicture}  \end{document}


I have a Time Machine and two Macs.  I want both computers to be the same, not back them up separately.   Is it possible to use one as a primary (always backing up from one) and then "downloading" the latest changes onto another?

I actually have a Macbook Pro with Snow Leopard (I plan on upgrading to Lion).  I may have to buy an Mac mini in order to have a full dual screen (external identical screens) layout (see my ).  So I will work on a Mac Mini and a Macbook Pro, most of the time on the same LAN.  How to get everything completely synchronised, as fast as possible? (I don't know if iCloud can)  I am talking about every file/data on my computer:   applications application preferences mails calendar iPhoto/aperture libraries lots of small files (web development...) files out of my account (apache server files, php/libraries) ...   I don't want to manage 2 computers and do everything twice (installing something, configuring the system, etc...).


I am using Ubuntu 12.04 X64, I deleted my /usr/bin/env file by mistake. How could I restore this?  Also I copy a file as /usr/bin/dev, I don't know if I originally had a file called /usr/bin/dev. If so, how could I restore this as well?

I was installing Tor and wanted to access it directly from the terminal, so I was trying to copy start-tor-browser to /usr/bin. But by mistake, I have replaced the /usr/bin/env file with the start-tor-browser file. What should I do now??


Ultimately I'm wondering whether the descriptive in "former President [Name]" is superfluous or necessary in everyday usage, such as when talking to an audience who knows who the current president is.

When is it appropriate to use an "expired" honorific to address or refer to a person?   In the U.S., former state governors are occasionally referred to as "Governor So-and-so", although they have not held that office for several years. I see this happening most often when the former governor is actively campaigning for a new office (usually U.S. President), and my impression is that it's done only by someone with an interest in the campaign (for or against) rather than a (relatively) neutral party like a newspaper.  Certainly this could be used as a jab: in a political campaign for high office, addressing one's opponent by a former title — lower than one's own — could imply that the opponent is not qualified for the new job. It could also be used the other way around, to remind listeners that a candidate one supports used to hold an important title.  I'm curious whether there are formal rules for this in the U.S., or at least style or journalist guidelines, for various offices. Are ambassadors, for example, entitled to some sort of emeritus honorific?


I’ve read a lot of articles about how “pass-by-reference” doesn’t exist in Java since a copy of the value of the reference is passed, hence “pass-by-copy-of-reference-value”.  The articles also say a reference value is a pointer. (So pointers do exist in Java.)  Some other articles say: Java has no pointers.  So what is the correct solution?  How does a pointer differ from a reference (or reference value), and do they exist in Java?

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?


When the automata is made I want the start symbol to start from the right instead of left as start symbol is colliding with the line:  Reverse:\\ \begin{tikzpicture}[shorten >=2pt,node distance=2cm,on grid,auto] \node[state,accepting](s) {$s$}; \node[state](q_0) [right=of s] {$q_0$}; \node[initial,state](q_1) [right=of q_0] {$q_1$}; \node[state](q_2) [below=of s] {$q_2$}; \node[state ](q_3) [below=of q_2] {$q_3$}; \path[->] (q_0) edge node{a} (s) (q_1) edge node{b} (q_0) edge [loop above ] node {b} () (q_3) edge  node {a} (q_1) edge [loop below ] node {a} () (q_2) edge node{b} (s) (q_3) edge node{a} (q_2) (q_2) edge [loop right ] node {a} () (q_2) edge [bend left =30] node {b} (q_3); \end{tikzpicture}

When the automata is made I want the start symbol to start from the right instead of left as start symbol is colliding with the line:  \documentclass[a4paper,8pt]{article} \usepackage{amssymb,amsthm} \usepackage{amsmath} \usepackage{setspace} \usepackage{graphicx} %\usepackage{slashbox} \usepackage{graphicx} \usepackage[margin=1in]{geometry} \usepackage{qtree} \newtheorem{thm}{Theorem}[section] \newtheorem{prop}[thm]{Proposition} \newtheorem{cor}[thm]{Corollary} \newtheorem{lemma}[thm]{Lemma} \newtheorem*{defi}{Definition} \linespread{1.2} \usepackage{qtree} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{automata,positioning,decorations.markings,arrows} \usepackage[margin=1in]{geometry} \usepackage{fancyhdr} \pagestyle{fancy}  \begin{document} Reverse:\\ \begin{tikzpicture}[shorten >=2pt,node distance=2cm,on grid,auto] \node[state,accepting](s) {$s$}; \node[state](q_0) [right=of s] {$q_0$}; \node[initial,state](q_1) [right=of q_0] {$q_1$}; \node[state](q_2) [below=of s] {$q_2$}; \node[state ](q_3) [below=of q_2] {$q_3$}; \path[->] (q_0) edge node{a} (s) (q_1) edge node{b} (q_0) edge [loop above ] node {b} () (q_3) edge  node {a} (q_1) edge [loop below ] node {a} () (q_2) edge node{b} (s) (q_3) edge node{a} (q_2) (q_2) edge [loop right ] node {a} () (q_2) edge [bend left =30] node {b} (q_3); \end{tikzpicture} \end{document}


Is it true that   If $f\in C^1(\mathbb{R})$ and $\lim_{x\to\infty}f(x)=0$, then $\lim_{x\to\infty} f'(x)=0$.

I've been thinking about this problem: Let $f: (a, +\infty) \to \mathbb{R}$ be a differentiable function such that $\lim\limits_{x \to +\infty} f(x) = L < \infty$. Then must it be the case that $\lim\limits_{x\to +\infty}f'(x) = 0$?  It looks like it's true, but I haven't managed to work out a proof. I came up with this, but it's pretty sketchy:  $$ \begin{align} \lim_{x \to +\infty} f'(x) &= \lim_{x \to +\infty} \lim_{h \to 0} \frac{f(x+h)-f(x)}{h} \\ &= \lim_{h \to 0} \lim_{x \to +\infty} \frac{f(x+h)-f(x)}{h} \\ &= \lim_{h \to 0} \frac1{h} \lim_{x \to +\infty}[f(x+h)-f(x)] \\ &= \lim_{h \to 0} \frac1{h}(L-L) \\ &= \lim_{h \to 0} \frac{0}{h} \\ &= 0 \end{align} $$  In particular, I don't think I can swap the order of the limits just like that. Is this correct, and if it isn't, how can we prove the statement? I know there is  already, but I think this is different in two aspects. First, that question assumes that $\lim\limits_{x \to +\infty}f'(x)$ exists, which I don't. Second, I also wanted to know if interchanging limits is a valid operation in this case.


Is there a way to automatically use sudo whenever I get "Permission denied"?  I don't want to become superuser, since I still want to be asked for the password in such cases. I just don't want to write sudo in front of everything.

Can I configure Fedora 22 so anything needing root privileges asks for a password, rather than giving an error, and needing me to re-run with sudo?  I wouldn't even mind having to type my password every time, without the few minute (or whatever it is) timer that it remembers the password for.  i.e. Instead of:  $ dnf history You don't have access to the history DB.   It would:  $ dnf history [sudo] password for <username>:   I think some of the gui apps do that, like the gui yum frontend back when I had that installed.  I'm thinking not... That it would be up to each app to implement this.  But, I'm hoping it might instead be that apps say root privilege is needed, and there might be some way for the kernel (or wherever else) to remain in a blocking input stage (for the password) before returning whether the user has access.


I'm trying to make a quick utility class that extends std::vector through composition. For this, I want to make it as generic as possible.  The class works well when declared and implemented in a single file (i.e. main.cpp):  main.cpp  #include <iostream> #include <algorithm> #include <vector>  template<typename T> class FVector {  public:      FVector(std::vector<T> vector): _vector(vector) {}      template <typename unaryOperation>     void forEach(unaryOperation op) {         std::for_each(_vector.begin(),_vector.end(),op);     };  private:      std::vector<T> _vector;  };  int main(int argc, const char * argv[]) {      auto printInt = [](int i){ std::cout << i << std::endl; };     std::vector<int> numbers{1, 2, 3, 4, 5};     FVector<int> fNumbers{numbers};     fNumbers.forEach(printInt);      return 0;  }   But when I try to put the class in its own .h and .cpp file, the compiler won't find the Constructor nor the function.   FVector.h  ... #include <vector>  template<typename T> class FVector {  public:      FVector( std::vector<T> );      template <typename unaryOperation>     void forEach(unaryOperation);  private:      std::vector<T> _vector;   }; ...   FVector.cpp  #include "FVector.hpp" #include <algorithm>  template <typename T> FVector<T>::FVector( std::vector<T> vector ): _vector(vector) {}  template <typename T> template <typename unaryOperation> void FVector<T>::forEach(unaryOperation op) {     std::for_each(_vector.begin(),_vector.end(),op); }   main.cpp  #include <iostream> #include "FVector.hpp"  int main(int argc, const char * argv[]) {      auto printInt = [](int i){ std::cout << i << std::endl; };     std::vector<int> numbers{1, 2, 3, 4, 5};     FVector<int> fNumbers{numbers};     fNumbers.forEach(printInt);      return 0;  }   error     Function 'FVector::forEach<(lambda at blah/main.cpp:95:21)>' has   internal linkage but is not defined   Clearly something in my syntax is very wrong, but I can't find how to declare/implement the functions.  Thanks!

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


A movie where there’s a key which fits any door. It works by, you think of a place and open a door, the door opens for the place you imagined. For example, you think of a bar and open a door, the door you open happens to be a door in that bar you thought of.  In the ending of the movie a villain keeps the protagonist's daughter at a place he imagined and tries to negotiate something with the protagonists. But the protagonist kills him and ends up on not finding his daughter.  I think it’s his daughter, that’s how I remember.

This was an American TV series that was aired about 10 years ago.   This series focused on mysterious artifacts with supernatural abilities, i.e. there was a credit card which teleported people after touching.  It was later revealed that all of the artifacts came from certain hotel room. In this room some kind of supernatural "incident" occurred many years ago. As a result, all items in the room acquired supernatural abilities, There was also a one-eyed man who was present in the room when the incident occurred.


We live in Amsterdam and i am married to a Russian that also has a dutch paspoort. We applied for a Multi Schengen visa for her parents. The  both got it for 4 and mom for 5 years.  They traveled to The Netherlands 4 times on that visa already. All ok.  Now we booked a trip for them direct to Canary Island Tenerife from Moskou.   Can they enter the Island without problems ? As they have a Visa issued by The Netherlands and they fly direct to Spain from Moskou.  I think there i no probelm but are a little worried. There first 4 visits where in The Netherlands so the visa is used for it main Destination.  I read the other topic but its not a Visa issued by The Netherlands to a Russian passport holder. The other topic didnt clearly answered my question. and also this "If you have a multi-entry visa for the Schengen area, you must first enter the country that issued the visa; after this you can enter any Schengen country. If you have a single-entry visa, you can only enter the country that issued the visa. Note to multi-entry visa holders: if your period of stay in Schengen countries within any 180 day period exceeds the allowed period (usually 90 days) as specified in your visa, you may be refused entry" is on aeroflot website. I think they mean the first time you use the visa....   I hope you guys can help me. Thanks a million!

My wife was just issued a multiple entry visa by France, which is good for one year.  Our first trip will be to France, the issuing country.  My question is: after we leave the EU and return, must future trips also start in France? Or may we go directly to (say) Greece from the US on a later visit?


I am a moderator for Woodworking SE and question/answer content often requires images. There is a problem loading images to StackExchange sites in that the size of the files must be less than 2 meg. Most photos these days are larger than that and the user must find a way to reduce the file size. This tends to discourage users from including photos and posts often end up including external links to dropbox or other sites rather than adding the photos. I end up chasing these links down and converting the photos myself to provide meaningful content in the posts that will survive over time. I realize that detail is lost in reducing the size, but 2 meg still allows for adequate information for the images I have reduced (using photshop).   It would be very helpful if the image dialog was able to reduce image sizes itself making it easier for people to post. I have seen this ability on other sites from time to time and would like to request this feature in SE.

The copy-paste feature is great (and I think was only implemented recently).  I wonder though if it could be further improved by also automatically reducing the size of the image if the image is above the 2 MB requirement? That would be even better.  Right now for images on my clipboard that are >2 MB, I have to paste the image somewhere else, save and reduce it, and then try again.


I am new to stock investments. I usually ask for stock broker to write up a quote for me. I can also check the prices on the . However I am not sure which price she quotes,the buy or the sell? My question is what is the difference between the two,If I am selling my shares which price should I look at,and also if I am buying which price do I look at? The questions  I looked at made reference to Bid and Ask which are not terms used on the Malawi Stock Exchange. Can someone clarify this for me please as the terms used in the US may not be the same

In my online brokerage account, I want to buy a particular stock and I see the following:  Bid:  13.20 x200           Ask:  13.27 x1,000   the current stock price is 13.22.   Can someone explain what the bid and ask prices mean relative to the current price?  If I buy 1000 shares, why would I pay more?


I am trying to update a user profile from Firestore in a Fragment, but each time I run the App I get this error:     java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference.   Please your help will be much appreciated, am still a newbie am sorry if my question might offend   public class ProfileFragment extends Fragment {      TextView personName, mAge, bloodGroup, mGender, mHeight, mWeight;     ImageView settingsButton;      String userID;      FirebaseAuth firebaseAuth;     FirebaseFirestore firebaseFirestore;      @Nullable     @Override     public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {         View view = inflater.inflate(R.layout.profile_fragment, container, false);          personName = view.findViewById(R.id.text_person_name);         bloodGroup = view.findViewById(R.id.blood_group);         mAge = view.findViewById(R.id.profile_age);         mGender = view.findViewById(R.id.gender);         mHeight = view.findViewById(R.id.profile_height);         mWeight = view.findViewById(R.id.profile_weight);         settingsButton = view.findViewById(R.id.profile_settings);          firebaseAuth = FirebaseAuth.getInstance();         firebaseFirestore = FirebaseFirestore.getInstance();          // Retrieve UserID         userID = firebaseAuth.getCurrentUser().getUid();          DocumentReference documentReference = firebaseFirestore.collection("patients").document(userID);         documentReference.addSnapshotListener(getActivity(), new EventListener<DocumentSnapshot>() {             @Override             public void onEvent(@javax.annotation.Nullable DocumentSnapshot documentSnapshot, @javax.annotation.Nullable FirebaseFirestoreException e) {                 personName.setText(documentSnapshot.getString("Name"));                 bloodGroup.setText(documentSnapshot.getString("BloodGroup"));                 mAge.setText(documentSnapshot.getString("Age"));                 mGender.setText(documentSnapshot.getString("Gender"));                 mHeight.setText(documentSnapshot.getString("Height"));                 mWeight.setText(documentSnapshot.getString("Weight"));              }         });            return view;      } }

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


I am watching a UK TV programme called "The Apprentice".  The candidates have to sell guided tours.  Some candidates are terrible at giving these tours.  They fluff their lines, or they haven't researched, or they make up "facts".  Watching their ineptitude cause a feeling of discomfort.  What is the best word for this discomfort?  The German word schadenfreude means roughly "the pleasure derived from the misfortunes of others".  The word I want would be almost an antonym of schadenfreude - "the discomfort derived from the mosfortunes of others".  Except not the misfortunes but the uselessness of others.

When I see someone else being embarrassed / humiliated, for example a singer forgetting their words in a concert, I would say something like "I feel embarrassed for them". But is there a better word to describe this feeling?  I would say it's a mix of:   Empathetic discomfort for someone else's humiliation Tension; hope that spectators will be forgiving Frustration that I cannot help them   Other scenarios I would feel the same emotion:   Seeing someone make a presentation, the slides are all out of order, and their face gets red with embarrassment while there's a tense silence in the room. Seeing someone make an embarrassing social blunder in front of unforgiving people. Seeing a speaker who keeps making a distracting and annoying gesture, and they don't realize that the whole audience is annoyed. Seeing someone be taken advantage of, like seeing someone naively and happily accept a terrible offer on a car. Seeing a person of strong image (for example the CEO of your company) do something like accidentally leave their webcam on after a conference call, and employees see him/her let out a big burp and pick their nose or something.   In these cases it's important that the audience is not forgiving, even if they don't confront the person about it. The person may or may not know they are being humiliated.  "Pity" as proposed in an answer seems very close, but I think it lacks a few components. I think "pity" has a chronic connotation - that you are referring to the general state of things rather than a specific event.  I think "pity" also depends on the subject suffering, but in my example they are often oblivious.  It could very well be that there is no word for this at all.  NOTE: Some people do not feel the same way I do in this scenario, so you may not think this question makes any sense.


I just can't get my head around regex and this is driving me crazy.  I have the following string;  'This is a random string of text with a link to google.com/test and another link to facebook.com`   What I want to do, is turn google.com/test into https://google.com/test but leave the facebook.com link as plain text.  So basically, any instance of google.com (Including with prefixes) would turn into a link, but any other URL would remain as plain text.  Can someone give me a nudge in the right direction please?

I am using the function below to match URLs inside a given text and replace them for HTML links. The regular expression is working great, but currently I am only replacing the first match.  How I can replace all the URL? I guess I should be using the exec command, but I did not really figure how to do it.  function replaceURLWithHTMLLinks(text) {     var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/i;     return text.replace(exp,"$1");  }


Normally, if I want to change the type of UV mapping means that I will destroy the look of the model as the mapping no longer corresponds with the image.  Is there a way to change UV mapping and have Blender recalculate what was painted where on the model to reflect the new mapping?

I have a finished model where the UV maps overlap - lots of wood that isn't detailed to be particular to the model.    I'd like to re-map the texture so that specific details can be added. I'd like to rebuild the UV map into non-overlapping islands, without losing the current texture application, and preferably without manually pulling apart the islands.  Is this possible?


I'm converting an html/css template to a WordPress theme. The index.html contains the following Google font which I want to include in the header.php : http://fonts.googleapis.com/css?family=Bree+Serif' rel='stylesheet'> Kindly advise how I can do this.  Regards  Debashis

Enqueuing Google Web Fonts the usual way, i.e., using the wp_enqueue_style function like so...  function wpse_google_webfonts() {     wp_enqueue_style( 'google-webfonts', 'http://fonts.googleapis.com/css?family=Ubuntu+Condensed|Open+Sans:400italic,700italic,400,700' ); } add_action( 'wp_enqueue_scripts', 'wpse_google_webfonts' );   ...results in a link tag placed in the header like so:  <link rel='stylesheet' id='google-webfonts-css'  href='http://fonts.googleapis.com/css?family=Ubuntu+Condensed%7COpen+Sans%3A400italic%2C700italic%2C400%2C700&#038;ver=3.5' type='text/css' media='all' />   As you can see, the resultant URL is encoded.  I am pretty sure it poses no problems, but to keep things clean and clear, I would like to go ahead and ask -- Is there a way to enqueue Google Web Fonts (via functions.php and not a plugin) in a way that the URL output is not encoded?  That's like so:  <link rel='stylesheet' id='google-webfonts-css'  href='http://fonts.googleapis.com/css?family=Ubuntu+Condensed|Open+Sans:400italic,700italic,400,700?ver=3.5' type='text/css' media='all' />   Reason For Bounty  @webaware's answer is near perfect, especially because it's similar to the method employed in  theme.  The only problem in the output is that it's like this:  <link rel='stylesheet' id='twentytwelve-fonts-css'  href='http://fonts.googleapis.com/css?family=Ubuntu+Condensed|Open+Sans:400italic,700italic,400,700&#038;subset=latin,latin-ext' type='text/css' media='all' />   Notice the &#038;? It should be &, otherwise the font-files served only have the latin glyphs (i.e. the subset parameter in the URL is neglected unless you use & and NOT its HTML entity).  Anyone who can help modify @webaware's answer so that the output's looks like this...  <link rel='stylesheet' id='twentytwelve-fonts-css'  href='http://fonts.googleapis.com/css?family=Ubuntu+Condensed|Open+Sans:400italic,700italic,400,700&subset=latin,latin-ext' type='text/css' media='all' />   ...wins the bounty.


Hello all i am installing Jenkins server but i am facing below issue.  W: GPG error:  binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9B7D32F2D50582E6  Please Help  I run this command gpg --import KEYS but it returns   gpg: can't open `KEYS': No such file or directory gpg: Total number processed: 0  I am using proxy for open internet.

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?


Is there any command I can use to understand which is the file manager installed in a machine?  For instance, I'm using Linux Mint and I can use the command nemo. Now I'm connected to another machine and I don't know the file manager that is used on it.

I'm working on different Linux distributions.  In my .bashrc I'd like to set up an alias that opens a window of the default file manager (e.g. nautilus, nemo, pacman, ...).  Is there a way find out what the file-manager of a session is? (It does also depends on the session, doesn't it?)


I receive emails from a bunch of different mailing lists- how do I find emails that are sent only to me? I tried searching "Deliveredto: example@gmail.com" but it didn't bring up every email and also brought up a bunch that I sent.   I work in the media so I receive about 800 emails a day and unfortunately I can't unsubscribe from the lists.

I am receiving emails that has been copied to a several email addresses. For example, an email is copied to engineering.myorg@gmail.com and marketing.myorg@gmail.com and I have subscribed to these two email groups; hence I am getting these emails. And there are some other emails those are only sent to marketing.myorg@gmail.com.   Let's say that I have created two filters, and some email belong to both of these groups. I need to filter the emails that exclusively are sent to marketing.myorg@gmail.com to delete those at once.  How can I do this?  Note: The actual mail groups are in format of mail-group@myorg.com; because, our organization is using gmail application for email.


First off, I read the Questions that may have my answer First.. but still no resolution.  Details are that I can't seem to understand why a mesh that I had to separate apart just so I could color the rubberized handle blue, around the chrome handle (which will animate 45 degrees and I have the key ring and tag set to Ridgid Body Physics).  I took a screenshot of the Red Handled Lever colored just fine, and the attempted Blue Handled Lever.  The main thing I can see with everything I've successfully colored (placed a Material On) is the list of materials at the very top. With the Red (and all other colors that show up successfully) there's just one material in the list, with no toggle up/down window to show the collection of materials.  But when I click on the attempted blue one, you can see the list, along with the toggle up/down feature present.

How do you add more than one material to a mesh?   I have tried adding two materials to the object, and then assigning one of the materials to a vertex-group, but I could not find a place to assign it.  I am making a striped bouncy ball that I want to deform, so adding a different material by separating the mesh into different objects would not be ideal.


I've always been a fan of the unique icons made for . Is there a Stack Exchange employee who makes them? Or are they made by community members on each site?  Whoever made them, I want them to know that they did a fantastic job. I hope they know how much the Stack Exchange community appreciates the work that went into them.

If I created an icon for a site on SE, how could it become the official one? (Instead of the light-blue speech bubble with initials in it)


In other words, can ArcGIS Pro load an ArcMap AddIn?

How can I create an AddIn to ArcGIS Pro and where can I find it from ArcGIS Pro application?


How can I install a Beta version as an upgrade to an existing OS. I would prefer not to wipe out what is on the drive.

How do I upgrade to the unreleased version of Ubuntu for testing?


I'm trying to install ubuntu (64bit amd) alongside windows 7, From Bootable sandisc usb flash , but when i am trying to choose 'try ubuntu' or 'install ubuntu' its stoped on black screen with hide and show horizontal cursor and do nothing. I tried 13.10 , 14.04 but the same problem. Please reply to me soon with the soluition. Thanks in advance.  Ps: My laptop ram was 3GB but i increased it to 4GB.  My laptop: Asus: model x61s , 4GB Ram , windows 7 64bit , processor intel(R).

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


What is the advantage (if any) to fitting both a linear regression model to a dataset and running an ANOVA test if these are both ultimately identical?

ANOVA is equivalent to linear regression with the use of suitable dummy variables. The conclusions remain the same irrespective of whether you use ANOVA or linear regression.   In light of their equivalence, is there any reason why ANOVA is used instead of linear regression?   Note: I am particularly interested in hearing about technical reasons for the use of ANOVA instead of linear regression.   Edit  Here is one example using one-way ANOVA. Suppose, you want to know if the average height of male and females is the same. To test for your hypothesis you would collect data from a random   sample of male and females (say 30 each) and perform the ANOVA analysis (i.e., sum of squares for gender and error) to decide whether an effect exists.  You could also use linear regression to test for this as follows:  Define:  $\text{Gender} = 1$ if respondent is a male and $0$ otherwise. $$ \text{Height} = \text{Intercept} + \beta * \text{Gender} + \text{error} $$ where: $\text{error}\sim\mathcal N(0,\sigma^2)$  Then a test of whether $\beta = 0$ is a an equivalent test for your hypothesis.


I installed Ubuntu 17.10 with an encrypted drive. I want to install different nvidia drivers in recovery mode. But in order to do that I need to access wifi. How do I do that? I find iwconfig confusing    By the way, when I choose network in safe mode I get etc/resolv.conf no such file or directory

Other posts seems to be addressing more complicated network connection issues from the command line.  The Unity panel Network indicator/button doesn't respond too well sometimes - it keeps trying to connect to a network even when i click on "disconnect", stuff like that.  So I want to go command line for the control.  I don't like GUIs anyway.  Is there not some simple command line tool which can do something like the following?  wifi connect MyNetworkNameA wifi disconnect wifi connect MyNetworkNameB


I am able to call ToArray() method of List<T> class from a reference of IList<T> interface, just by including the line using System.Linq. But without the Linq namespace, the code gave an error saying, "no such method in IList interface".  Using C# with .NET Core.  IList<int> l = new List<int>(); ...  int[] arr = (int[])l.ToArray(typeof(int));

What are extension methods in .NET?    EDIT: I have posted a follow up question at


I was in my Combinatorics class the other day, and at some point in a problem, we needed to know $$\sum_{n=1}^{m} n 2^n.$$ Someone in class looked it up and proved what it was by induction, but I was wondering how we can derive what th actual identity is.

Given $$1\cdot 2^1 + 2\cdot 2^2 + 3\cdot 2^3 + 4\cdot 2^4 + \cdots + d \cdot 2^d = \sum_{r=1}^d r \cdot 2^r,$$ how can we infer to the following solution? $$2 (d-1) \cdot 2^d + 2. $$   Thank you


For example if i have a terminal command like this  $ hostname -I this will as a result print your ip as a string to the terminal. I want to use the result of this command as the argv[1] argument for my c++ executable. Is there any way I can do that

I am looking for a way to get the output of a command when it is run from within a C++ program.  I have looked at using the system() function, but that will just execute a command. Here's an example of what I'm looking for:  std::string result = system("./some_command");   I need to run an arbitrary command and get its output. I've looked at , but I have not found anything that will give me what I need.


Consider a photon, positioned in space in a finite portion of a grid. Any point of the grid is vertically or horizontally aligned, each distanced by a Planck unit.    $l_P = 1.616 199(97) × 10−35 m$  The speed of the photon is, in this grid, $v = l_P/t_P$  The photon is first captured at its original point $A$, when $t = 0*t_P$ and $x_A = 5*l_P$.  It is then captured at point $B$, when $t = 10*t_P$. Logically, the position of point B is $x_B = x_A + 10*l_P = 15*l_P$, and $y_B = y_A$.  This is a two-dimensional representation of the aforementioned grid:    The problem here is the actual definition of the Planck distance unit. By definition, a Planck distance can only have a natural coefficient, which means that the unit cannot have a fractional-represented coefficient with it.  Mathematically, it is possible to divide any unit in half. However, the Planck time unit is calculated using the Planck distance unit as well, which means it cannot be fractional as well.   Since the definition of Planck units describes how they cannot be fractionally split, the photon is never going through the $3.5 * l_P$ mark during its movement. Does that mean that we can define time as a frame cycle, where the fastest frame rate is $1*t_P$, and that the photon basically changes position to the closest Planck distance grid point (without having a transitional point in space and time during the process)? In other words, does the photon even reach point $C$ during the translation from $A$ to $B$?

On a quantum scale the smallest unit is the , which is a discrete measure.  There several question that come to mind:   Does that mean that particles can only live in a discrete grid-like structure,  i.e. have to "magically" jump from one pocket to the next? But where are they in between? Does that even give rise to the old paradox that movement as such is impossible (e.g. )? Does the same hold true  for time (i.e. that it is discrete) - with all the ensuing paradoxes? Mathematically does it mean that you have to use difference equations instead of differential equations? (And sums instead of integrals?) From the point of view of the space metric do you have to use a discrete metric (e.g. the ) instead of good old Pythagoras?   Thank you for giving me some answers and/or references where I can turn to.  Update: I just saw this call for papers - it seems to be quite a topic after all: Is Reality Digital or Analog? FQXi Essay Contest, 2011. , , . One can find some pretty amazing papers over there.


I have a question regarding the concept of "work done" in Classical Mechanics, inspired by my time in real life situation of me the gym. "Work done" depends on the direction of the force and the displacement.  If the force is aligned with the displacement, then the work done is positive.  If the force is anti-aligned with the displacement, then the work dine is negative. This means that, if the force I applied is anti-aligned with the displacement, then energy is transferred to me.  However, in weight lifting, I still need to put force and (therefore) effort when I lower my dumbbell: in essence, I was still using up chemical energy when lowering my dumbbell.  This means that chemical energy is used up, even when the dumbbell transfers energy to me: isn't this a violation of conservation of energy?

I read the definition of  as  $$W ~=~ \vec{F} \cdot \vec{d}$$  $$\text{ Work  =  (Force) $\cdot$ (Distance)}.$$ If a book is there on the table, no work is done as no distance is covered. If I hold up a book in my hand and my arm is stretched, if no work is being done, where is my energy going?


I bought a copy of Pokemon Fire Red off Amazon. Shortly after I bought it, I read several reviews stating the person bought a pirated copy. I was wondering... how can I tell if I purchased a pirated game?

How can I tell if used GBA/DS games are pirated?


News.app, Stocks.app, GarageBand... when you try to delete them, you are forbidden because they are "protected" apps.  I tried disabling SIP (System Integrity Protection) and still could not delete News.    I also tried running the sudo rm -rf news.app command in Terminal and nothing happened.    So I revealed package contents and deleted its guts instead.  How can we regain normal admin powers?

There are some preinstalled apps that came with my laptop that I know I wil never ever use.   Apps like "Notes", "Stickies", "Game Center", etc.. that were preinstalled in my Macbook Pro are apps that I don't plan on ever using and it's taking up too much space in my Application Folder.  Are there any ways to remove them? Please note that I have already tried dragging it to the Trash bin, but it won't even go to the Trash bin. It' just stuck in my computer forever.


Most of my clients who ask for a public portal or site on salesforce want two things:   SSL personally branded site   They like being able to manage everything through salesforce but they dont want their public image affected by salesforce specific url strings etc.  The solution I have typically put forth is to put an ngnix/apache proxy in front of the site.  This solution also allows for the url to go from this <customer.urn>.force.com => someting.<customer.urn>   does anyone have another solution that works for them, maybe something on platform?

I'm getting mixed messages online regarding SSL support for a Force.com site that is branded with a custom URL domain:   These two articles,  and , seem to suggest that you can register a force.com domain, mycompany.secure.force.com as a CNAME record for a branded domain, www.mycompany.com. On the other hand this idea, , suggests HTTPS is not supported yet.   Assuming SF cannot support HTTPS yet, what can be done to brand the URL, if at all possible?


When presented with the following:     Use row or column operations to find the determinant in factored form:   $\left\vert \begin{array}{llll} 1 & 1 & 1 & 1 \\  a & b & c & d \\ a^2 & b^2 & c^2 & d^2 \\ a^3 & b^3 & c^3 & d^3 \\ \end{array} \right|$  I don't understand how I could pull a factor from this in a meaningful way using only row and column operations.  Then I'll just get the determinant in terms of $\dfrac{1}{a} ,\ \dfrac{b}{a}, ...$ etc.  What am I missing?  Perhaps the problem is just poorly worded, because it should specify in what way to determine this value (either exclusively or non-exclusively). But, if exclusively, I am at a loss.

I'd like to show the case $n=4$ for the Vandermonde-determinant. It should look like this:  $V_4 := \det \begin{pmatrix} 1 & 1 & 1 & 1 \\ x_1 & x_2 & x_3 & x_4 \\ x_1^2 & x_2^2 & x_3^2 & x_4^2 \\ x_1^3 & x_2^3 & x_3^3 & x_4^3 \end{pmatrix} = (x_4 - x_3)(x_4 - x_2)(x_4 - x_1)(x_3 - x_2)(x_3 - x_2)(x_2 - x_1)$.  I tried calculating the $\det(\dots)$ via the first row. However, it ends up in a very large calculation.. I'm sure there's a better way to show especially this case with $n=4$.  Thank you for any help ;)


I would be travelling to Santiago, Chile from New Delhi, India this weekend. I hold a valid visa for Chile only. I had booked a ticket to fly New Delhi - Paris - Santiago. I have a five hour layover at Charles de Gaulle Airport, Paris, France.

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


I'm receiveing the warning  Strict warning: Only variables should be passed by reference in eval() (line 2 of D:\wwwroot\tixers\modules\php\php.module(80) : eval()'d code).  Everywhere I've looked tells me its a render error but I can't find anything wrong.  The form works and submits all my info to the database, but there warning still shows up.  If you need the code for the module let me know and I will reply to it.    THANKS!  I use  <?php print drupal_render(drupal_get_form('sellTickets_form')); ?>   then in the form 'sellTickets_form  function sellTickets_form($form, &$form_state) {  $form['team'] = array(     '#type' => 'textfield',     '#title' => t('Team Name:'),     '#size' => 30,     '#required' => TRUE, );   ......break for forms.....  $form['total_points'] = array(     '#type' => 'textfield',     '#title' => t('Total Points Awareded'),     '#size' => 30,     '#required' => TRUE, ); $form['submit'] = array(     '#type' => 'submit',      '#value' => t('Submit'), ); return $form;   }  function sellTickets_form_validate($form, &$form_state){  }  function sellTickets_form_submit($form, &$form_state) {     global $user;     $uid = $user->uid;     $team = $form_state['values']['team'];     $price = $form_state['values']['price'];     $section = $form_state['values']['section'];     $row = $form_state['values']['row'];     $seat = $form_state['values']['seat'];     $quantity = $form_state['values']['quantity'];     $opponent = $form_state['values']['opponent'];     $date = $form_state['values']['date'];     $location = $form_state['values']['location'];     $description = $form_state['values']['description'];     $total_points = $form_state['values']['total_points'];     $organization = $form_state['values']['organization'];      db_query("INSERT INTO ticket (     `TEID`, `price`, `location`, `date`, `organization`, `section`, `row`, `seat`, `quantity`, `opponent`, `description`, `points`)       VALUES ('".$team."', '".$price."', '".$location."', '".$date."', '".$organization."','".$section."', '".$row."', '".$seat."', '".$quantity."', '".$opponent."', '".$description."', '".$total_points."');" ); }

I get the following error:     Strict warning: Only variables should be passed by reference in include() (line 18 of /home/sites/dev/theparce/sites/all/themes/parce/block--block--3.tpl.php).   This is the block code which is causing that error.  if ($user_gallery) {   print render(node_show($user_gallery));  // Line 18   print drupal_render ($user_gallery_edit);  } else {   print drupal_render($user_gallery_new); }   Why do I get that error, even if I get all printed as expected?


I've created a new tag for a popular programming library called . I would like to edit the description to provide some context when others are trying to use the tag. Is this possible?

As the title says:     What are tag wikis, and how do I write a good one?


Inside of my XML document I have just a basic textview with the ID of username. When I remove username.setText() the program runs fine.  Here's my code:  public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener { private DrawerLayout drawer; private ImageButton homeButton; int totalTickets = 0; public TextView showValue; private MySqliteOpenHelper mySqliteOpenHelper; private SQLiteDatabase mDatabase; public String googleDisplayName; private TextView username;    @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);     setSupportActionBar(toolbar);     getSupportActionBar().setTitle("");        drawer = findViewById(R.id.drawer_layout);     NavigationView navigationView = findViewById(R.id.nav_menu);     navigationView.setNavigationItemSelectedListener(this);     showValue = (TextView) findViewById(R.id.ticketCounter);     username = (TextView) findViewById(R.id.username);     username.setText("Test");   Not really sure if the problem has something to do with my XML code. I'm getting a NPE but I am not really sure what I need to do to fix that. My textview, username, has a text so it's not null. Maybe I am misunderstanding something, I am pretty new to android.   XML Code:  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="176dp" android:background="#414040" android:gravity="bottom" android:orientation="vertical" android:theme="@style/ThemeOverlay.AppCompat.Dark" tools:layout_editor_absoluteY="25dp">   <TextView     android:id="@+id/version_Number"     android:layout_width="178dp"     android:layout_height="wrap_content"     android:layout_alignParentBottom="true"     android:layout_alignParentStart="true"     android:text="@string/nav_header"     android:textSize="8sp"     app:layout_constraintBottom_toBottomOf="parent"     app:layout_constraintStart_toStartOf="@+id/username"     app:layout_constraintTop_toBottomOf="@+id/username" />  <TextView     android:id="@+id/username"     android:layout_width="wrap_content"     android:layout_height="26dp"     android:layout_above="@+id/version_Number"     android:layout_alignParentStart="true"     android:text="user"     android:textSize="20sp"     android:textStyle="bold"     app:layout_constraintBottom_toTopOf="@+id/version_Number"     app:layout_constraintStart_toStartOf="parent"     app:layout_constraintTop_toBottomOf="@+id/navButton" />

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


For finite cardinals $A < B$, it's clear that the powerset $2^A$ is smaller than the powerset $2^B$. However, it seems that when $A < B$ are infinite cardinals, the strict inequality cannot be proven from ZFC:  tells us that in general, unless something is known about the cofinalities $\text{cf}(A), \text{cf}(B)$, the most we can say is that $2^A \leq 2^B$. (That is, there are models for which both $2^A = 2^B$ and $2^A < 2^B$.) My question is about the smallest possible case: $A = \aleph_0$, $B = \aleph_1$. If we had that $\aleph_1 = 2^{\aleph_0}$ (Continuum Hypothesis) then obviously we would have $2^{\aleph_0} < 2^{(2^{\aleph_0})} = 2^{\aleph_1}$, but it seems like that's probably a lot stronger than we would need to show $2^{\aleph_0} < 2^{\aleph_1}$. Contrapositively, if $2^{\aleph_0} = 2^{\aleph_1}$, that would imply the negation of the Continuum Hypothesis, but again, this seems like a very strong sufficient condition for $\neg CH$ that wouldn't be necessary. Can we show for sure that $2^{\aleph_0} < 2^{\aleph_1}$ or $2^{\aleph_0} = 2^{\aleph_1}$? Is there simply no canonical way to answer this (any more than for the Continuum Hypothesis)? What is the status of this question, and are there any well-known open statements to which it is equivalent? I played around with it in a desultory way to discover why approaches like diagonalization or Konig's theorem wouldn't work to establish an injection $2^{\aleph_1} \to 2^{\aleph_0}$ or lack of same, but maybe there are some cleverer techniques out there I'm not familiar with.

This means: if $V\models{\sf ZFC}$ in such a way that $2^{\aleph_0}=\aleph_2$, can $2^{\aleph_1}$ be anything it ought to be? By the way, can $2^{\aleph_0}=\aleph_2$ be considered the 'simplest' case of $\lnot{\sf CH}$ in some sense?


Post spring 17 release, the “View Encrypted Data” permission and its resulting masking behavior will no longer be available and users can see encrypted field data in plaintext if they have access to field.  In this case, as a developer how can we ensure that the data in the field is actually encrypted at rest/database after enabling encryption on a field? What kind of evidence we can provide to auditor if encryption is audit requirement?

I have enabled platform encryption at my DE and selected Case Subject, Description and Comments to be encrypted.  I have a created a sample case with these values:    And when I query from Developer Console it returns as follows:       How do I know, subject and description are encrypted at Rest? Is there any indicator which can confirm that this data is encrypted?   By the way, in case of File/attachment there is isEncrypted attribute is available which denotes the same as follows.


I am studying for the CAP physics contest and came across this question:     "You are holding a bottle of pop in your hands on a bus. The bubbles in the pop are going straight up. Suddenly, the bus brakes hard to avoid a road hazard. How is the motion of the bubbles in the pop affected?"   I believed that since the bubbles are moving forward in their intertidal frame of reference, that they would move backwards in the drink. However, the answer is they would move towards the front of the bus. I was hoping someone would be able to help me understand why?

I noticed that when I had a helium filled, latex balloon inside of my car, it moved forward in the cabin as I accelerated forward. The faster I accelerated forward, the faster the balloon went from the back of the car to the front of the car. The balloon didn't have a string.  This became a game with my 4 year old as we drove home. We figured out where the balloon would go based on how fast I accelerated, turned corners etc.  I expected that it would act a lot like the water in a cup does, but it was the total opposite it seemed.  What forces caused this behavior?  I assumed it has something to do with the fluid dynamics in the closed cabin, but I can't figure it out.


Here is the output of ifconfig -a: lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536     inet 127.0.0.1  netmask 255.0.0.0     inet6 ::1  prefixlen 128  scopeid 0x10<host>     loop  txqueuelen 1000  (Local Loopback)     RX packets 4653  bytes 433590 (433.5 KB)     RX errors 0  dropped 0  overruns 0  frame 0     TX packets 4653  bytes 433590 (433.5 KB)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  wlx34e894d6ef11: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500     inet 192.168.86.40  netmask 255.255.255.0  broadcast 192.168.86.255     inet6 fe80::e7d2:d7bc:ea13:327  prefixlen 64  scopeid 0x20<link>     ether 34:e8:94:d6:ef:11  txqueuelen 1000  (Ethernet)     RX packets 737205  bytes 1091181187 (1.0 GB)     RX errors 0  dropped 148  overruns 0  frame 0     TX packets 334745  bytes 34779005 (34.7 MB)     TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  Here is the output of sudo nano /etc/network/interfaces: auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet dhcp  Here is the output of ethtool eth0: Settings for eth0: Cannot get device settings: No such device Cannot get wake-on-lan settings: No such device Cannot get message level: No such device Cannot get link status: No such device No data available  Here is the output of sudo lshw -C network: *-network UNCLAIMED           description: Ethernet controller    product: Intel Corporation    vendor: Intel Corporation    physical id: 1f.6    bus info: pci@0000:00:1f.6    version: 00    width: 32 bits    clock: 33MHz    capabilities: pm msi bus_master cap_list    configuration: latency=0    resources: memory:d1200000-d121ffff *-network    description: Wireless interface    physical id: 1    bus info: usb@1:12    logical name: wlx34e894d6ef11    serial: 34:e8:94:d6:ef:11    capabilities: ethernet physical wireless    configuration: broadcast=yes driver=r8188eu ip=192.168.86.40 multicast=yes wireless=IEEE 802.11bgn  Here is the output of sudo lspci -v: 00:1f.6 Ethernet controller: Intel Corporation Device 0d4c        Subsystem: Dell Device 09a6        Flags: bus master, fast devsel, latency 0, IRQ 255        Memory at d1200000 (32-bit, non-prefetchable) [size=128K]        Capabilities: [c8] Power Management version 3        Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+  Output of lspci -knn | grep Eth -A3: 00:1f.6 Ethernet controller [0200]: Intel Corporation Device [8086:0d4c]        Subsystem: Dell Device [1028:09a6] 01:00.0 Non-Volatile memory controller [0108]: Micron Technology Inc Device [1344:5405]        Subsystem: Micron Technology Inc Device [1344:0100]  How can I fix this?

I am currently unable to install ubuntu server 18.04.03 LTS on the latest intel NUC10i7FNH.  Ubuntu always states both network adapters as unclaimed. The previous version (NUC8i7BEH) has the same network controller I219-V and worked like a charm.  *-network:0 UNCLAIMED      description:  Network controller      product: Intel Corporation      vendor: Intel Corporation      physical id: 14.3      ...   Without network it is not even possible to follow most suggestions how to get it enabled, because it is impossible to fetch new packages from internet.  Here are some more information as requested:  The output from: modprobe -v e1000e && dmesg | grep e10   [ 3447.889394] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k [ 3447.889395] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.   The output from: sudo lspci -knn  00:1f.6 Ethernet controller [0200]: Intel Corporation Device [8086:0d4f]     Subsystem: Intel Corporation Device [8086:2081] 01:00.0 PCI bridge [0604]: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 2C 2018] [8086:15e7] (rev 06)    For me this looks somehow, as the kernal driver would not be in use :-/  Here are a few more information i got from playiung around with 19.10 desktop version.  [    0.000000] Linux version 5.3.0-29-generic (buildd@lcy01-amd64-024) (gcc version 9.2.1 20191008 (Ubuntu 9.2.1-9ubuntu2)) #31-Ubuntu SMP Fri Jan 17 17:27:26 UTC 2020 (Ubuntu 5.3.0-29.31-generic 5.3.13)   output from lshw:    *-network:0        Beschreibung: Kabellose Verbindung        Produkt: Intel Corporation        Hersteller: Intel Corporation        Physische ID: 14.3        Bus-Informationen: pci@0000:00:14.3        Logischer Name: wlp0s20f3        Version: 00        Seriennummer: c8:09:a8:9c:cd:e0        Breite: 64 bits        Takt: 33MHz        Fähigkeiten: pm msi pciexpress msix bus_master cap_list ethernet physical wireless        Konfiguration: broadcast=yes driver=iwlwifi driverversion=5.3.0-29-generic firmware=48.4fa0041f.0 ip=192.168.178.109 latency=0 link=yes multicast=yes wireless=IEEE 802.11        Ressourcen: iomemory:600-5ff irq:16 memory:6023114000-6023117fff   The output from: modprobe -v e1000e && dmesg | grep e10  [    2.357430] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k [    2.357430] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [    2.357616] e1000e 0000:00:1f.6: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode [    2.562796] e1000e 0000:00:1f.6 0000:00:1f.6 (uninitialized): registered PHC clock [    2.634139] e1000e 0000:00:1f.6 eth0: (PCI Express:2.5GT/s:Width x1) 1c:69:7a:60:44:f0 [    2.634140] e1000e 0000:00:1f.6 eth0: Intel(R) PRO/1000 Network Connection [    2.634258] e1000e 0000:00:1f.6 eth0: MAC: 13, PHY: 12, PBA No: FFFFFF-0FF [    2.634991] e1000e 0000:00:1f.6 eno1: renamed from eth0 [    5.103285] checking generic (4000000000 e10000) vs hw (4000000000 10000000) [   15.806697] e1000e: eno1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None    output from lspci:  00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (10) I219-V [8086:0d4f]     DeviceName:  LAN     Subsystem: Intel Corporation Ethernet Connection (10) I219-V [8086:2081]     Kernel driver in use: e1000e     Kernel modules: e1000e


Our professor asked us this to prove that  $$ \sqrt[3]{2} + \sqrt[3]{4} \notin \Bbb Q. $$  I know how to prove each one separately that it is irrational, but when it comes to summing two irrational numbers its not certain what the result will be.   How do I solve it in a more certain way?

So while doing all sorts of proving and disproving statements regarding irrational numbers, I ran into this one and it quite stumped me:  Prove that $\sqrt[3]{2} + \sqrt[3]{4}$ is irrational.  I tried all the usual suspects like playing with $\sqrt[3]{2} + \sqrt[3]{4} = \frac{a}{b}$ for $a,b\in \mathbb{Z}$ , but got nowhere.  I also figured maybe I should play with it this way:  $2^\frac{1}{3} + 4^\frac{1}{3}=2^\frac{1}{3} + (2^2)^\frac{1}{3}=2^\frac{1}{3} + 2^\frac{2}{3}=2^\frac{1}{3} + 2^\frac{1}{3}\times 2^\frac{1}{3}=2^\frac{1}{3}(1+2^\frac{1}{3})$  But there I got stumped again, because while $1+2^\frac{1}{3}$ is irrational, nothing promises me that $2^\frac{1}{3} \times (1+2^\frac{1}{3})$ is irrational, and I feel like trying to go further down this road is moot.  So what am I missing (other than sleep and food)? What route should I take to  prove this? Thanks in advance!


If I have my own library projects, which style should I use to #include the headers from them in my application? Are there strict rules, and do the two actually have different meanings to the compiler/preprocessor or is it about standards only?

In the C and C++ programming languages, what is the difference between using angle brackets and using quotes in an include statement, as follows?   #include <filename>  #include "filename"


\documentclass{article} \usepackage{hyperref}  \begin{document}    \url{http://mirror.ctan.org/info/latex2e-help-texinfo/latex2e.html#toc-Overview-of-LaTeX-1} \end{document}   This code produces a clickable link which does not open correctly in the latest version of Firefox (and Safari). It produces a %23 instead of a # in the url. Manually replacing the %23 with # makes the url work.  How can I make LaTeX create the correct clickable link?

I am not sure if this is an issue with how web sites are configured, or the hyperref pacakge.  The following two links are correct (which you can verify by copying the first paramater to \href{}{} and pasting in a browser.    \href{https://en.wikipedia.org/wiki/Global_warming#Regional_trends}{Climate Change: Regional Trends}  \href{http://www.imperial.ac.uk/a-z-research/#group-M}{A-Z Research: Group M}     However, clicking on the pdf file for the second link does not work.   It seems as if the offending link that is attempted to be opened is  http://www.imperial.ac.uk/a-z-research/%23group-M   where the # has been replaced with a %23.  However, the Wikipedia link seems to be displayed with the # in the URL.  So, is there anything I can do when generating the PDF to get both of these links to correctly work. Preferrably I can do this without having to manually click on the link and determine if tweaking is required.  Code:  \documentclass{article} \usepackage{hyperref}  \begin{document}  \href{https://en.wikipedia.org/wiki/Global_warming#Regional_trends}{Climate Change: Regional Trends}  \href{http://www.imperial.ac.uk/a-z-research/#group-M}{A-Z Research: Group M}  \end{document}


Right now on the Featured Items page of the store if a game has Card support it has a sash over the top left corner that says 'Cards'. On your profile, the badges section is a list of all your games that have badge/card support.    But at the moment I don't see anything on the game Library page in any of the 3 views (Detail, List, or Grid) that has any indication of card/badge support.   Is there an individual marker in any Library view (similar to the Cloud in List view that shows Steam Cloud support) to see if a game has trading card support?

Which games drop cards?  I've been looking at the .  However, I recently discovered that it's incomplete (eg. Trine 2 and A.R.E.S. now have cards, but aren't listed there).  Obviously I don't expect someone here to maintain an updated list; but, is there anywhere online I can view an updated list of which games have cards?


I am trying to install Unetbootin on Ubuntu but get the above error and this one:   E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Can anybody tell me how to fix this so I can install Unetbootin successfully?

I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal.


Is there any reason why the below happens? In both cases, we defined grid as 3 by 3 array of zeroes, but when we change middle value to 2, three values are changed to 2 whereas in the second case, only one value was changed to 2.      grid=[[0]*3]*3 grid[1][1]=2 print(grid) [[0, 2, 0], [0, 2, 0], [0, 2, 0]]  grid=[[0 for i in range(3)] for i in range(3)]  grid[1][1]=2 print(grid) [[0, 0, 0], [0, 2, 0], [0, 0, 0]]

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


My desktop application creates a html report at the end showing results and opens it in users default webbrowser. The report is in html5 and utilises a frameset, clicking items on the left hand frame changes the display on the right handside.  But one for one user it didn't work because they had NoScript add on installed which I think by default disables Javascript.  What is the accepted way to inform users they need Javascript enabled, can the report itself proactively identify whether Javascript has been disabled (for the report).

There was a post this morning asking about how many people disable JavaScript. Then I began to wonder what techniques might be used to determine if the user has it disabled.   Does anyone know of some short/simple ways to detect if JavaScript is disabled? My intention is to give a warning that the site is not able to function properly without the browser having JS enabled.   Eventually I would want to redirect them to content that is able to work in the absence of JS, but I need this detection as a placeholder to start.


If a user (other than the data owner) possesses the secret key in symmetric searchable encryption scheme are they able to run the trapdoor algorithm, or is this not publicly available?

As I understand it, the less people know about the internals of my protocol or cipher, the more secure the protocol is. However  states that     A cryptosystem should be secure even if everything about the system, except the key, is public knowledge.   To be more precise, it's the 2nd principle that states     It must not be required to be secret, and it must be able to fall into the hands of the enemy without inconvenience;   Of course I understand why I should keep the key secret, but publishing my protocol's internals seems counter-intuitive. Why should I do it? Wouldn't that give the advantage to the attacker?


The inequality is homogeneous, but I am not sure if that helps. Also, I was thinking about considering a concave function and apply Jensen or Karamata on LHS.


Rather than to install dual-OS on my laptop, I would like to install Ubuntu on my flashdrive (USB flash memory, or whatever you call it). So, whenever I want to run my Ubuntu, I will just plug my flashdrive to the USB port and run it from there by change the boot sequence in BIOS.  Is it possible?

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 tried installing ubuntu to my external toshiba hard drive. What i did was      made a swap of 16Gb   ext4 / of 165Gb    rest left as free space.   Then some installation happend and got below error. The 'grub-efi-amd64-signed' package failed to install into /target/. Without the grub boot loader  Please help me on this installation.

I am installing Ubuntu 16.04 in an Intel NUC computer with UEFI enabled. I am using an SSD from another computer. During the installation I chose Erase the disk and make a new full install  At the end of the process I see:  grub-efi-amd64-signed failed installation /target/ Ubuntu 16.04    And the system does not boot.  I tried to use boot-repair but apparently it does not solve the problem.


This question was already asked for windows 8 and i'm hoping (albeit fairly sure that no) that microsoft changed their policies. Does anyone know if windows 8.1 now support > 2physical CPU in any form? I'd like to build a monster but have it dual boot windows server & windows 8.1 for development purposes (by monster i mean 80 to 160 cores), i know i will be limited to 512GB of ram but i can live with that, but 2 physical CPU is way way low.

This  gives this comparison chart for the four Windows 8 Editions (Core is usually just called Windows 8). I notice specifically, about half-way down, the max physical processors is listed as 1 for "Core" and 2 for all other.  In the second image i see physical processors listed as 8 in a Windows 8 Task Manager.  My question is, what is the limit then? Can anyone verify the article or the screenshot?  Was this a mock-up? Another Edition? (Server perhaps?)      To clarify, i am looking for links to official microsoft.com articles detailing these specifications.  I have been unable to find any.


I'm supposed to prove this. The answer key doesn't tell me anything more than to add zero:  $(a+(-a))$   to:  $(-1)\cdot a$  and use that:  $a=a\cdot 1$  I have these axioms to my disposal:  (A1) for all $x,y$ we have $+y=y+x$  (A2) for all $x,y,z$ we have $(x+y)+z=x+(x+z)$  (A3) there exists a number $0$ so that for all $x$ we have $x+0=x$  (A4) for all $x$ there exists a number $a$ so that $x+a=0$  (M1) for all $x,y$we have $x*y=y*x$  (M2) for all $x,y,z$ we have $(x*y)*z=x*(y*z)$  (M3) there exists a number $1=/=0$ so that for all $x$ we have $x(1/x)=1$  (M4) for all $x=/=0$ there exists a number $b$ so that $x(1/x)=1$  (AM) for all $x,y,z$ we have $z*(x+y)=z*x+z*y)$  $a ∈ R$

In a ring $R$ with identity 1, show that $$a(-1) = (-1)a = -a \qquad\forall\, a \in R$$ I have started with $a + (-a) = 0$ but cant proceed from here.


The title already contains the question, Basically I am wondering if it is possible to naturally define a function, continuous and differentiable, such that when restricted to the integers it is equal to the factorial.

I've already proved that $$\Gamma (n)= (n-1)!$$  but I don´t really know what else to do to verify that $\Gamma$ is an extension of the factorial function for real numbers (positive) Thank you! And I´m sorry for my language, I am Spanish, so thank you again for trying to understand me.


Kristin: I just wanted to give you a call and ask how your Chattanooga   trip was.      Susan: Oh, it was great. It was great. It was more fun than   a barrel of monkeys.      Susan: You know, we took Ethan and be-, his being only eight, it was   fun to watch him at different places and see him, y’know, enjoying the   activities.   Why does Susan use "his being only eight" to refer to his age? Shouldn't it be "He is only eight"?  Source: A.J. Hoge, Effortless English, Real English Conversation ()

In this sentence:     Four items are responsible for three-fourths of the overall spending around the world, the most prominent share being that of food.   Why after the comma, the verb "being" is used? Why it does not use "is"?


My low poly log cabin has a strange wireframe showing through the solid view making it difficult to select certain faces without selecting ones behind it.

I changed my Blender Units to Metric System, but when I'm building things, my meshes are transparent, i.e. I can see through faces like in wireframe even though my wireframe is turned off. All faces have a light white in non-wireframe mode, but I can still see through them.   How do I reverse this?  Another issue I get is this    Looks like clipping is not working properly.


i just need help to convert the input of the user to float thats all  thanks  def takenum(x,y):      print("Your first number is " + x + " your second number is " + y)      result = (x + y)      print(result)  x = input("put your first number: " )  y = input("Put your second number: " )  takenum(x, y)

In Python, how can I parse a numeric string like "545.2222" to its corresponding float value, 545.2222? Or parse the string "31" to an integer, 31?  I just want to know how to parse a float str to a float, and (separately) an int str to an int.


The Problem: Suppose that $Z\thicksim\text{Poisson}(\lambda)$. Find the expected value of $\dfrac{1}{1+Z}.$  We have that \begin{align*} E\left[\frac{1}{1+Z}\right]&=\sum_{k=0}^\infty\frac{1}{1+k}\frac{e^{-\lambda}\lambda^k}{k!}=e^{-\lambda}\sum_{k=0}^\infty\frac{\lambda^k}{(k+1)!}=\frac{e^{-\lambda}}{\lambda}\left[\sum_{k=0}^\infty\frac{\lambda^k}{k!}-1\right]\\ &=\frac{e^{-\lambda}}{\lambda}[e^\lambda-1]=\frac{1}{\lambda}-\frac{e^{-\lambda}}{\lambda}, \end{align*} where we used the Taylor series for the exponential function.    Do you agree with my approach above? Any feedback is most welcomed. Thank you very much for your time.

Find expected value of $\frac{1}{1+\xi}$ if $\xi$ has Poisson distribution.  My try:  $$E\left[ \frac{1}{1+\xi}\right]=\sum_{k=0}^{\infty}{x}_{k}{p}_{k}=\sum_{k=0}^{\infty}\frac{1}{k+1}\frac{\lambda^ke^{-\lambda}}{k!}$$  Is it right?


We know that a person can be infected with HIV viruses when he/she has sexual relationship with those having HIV viruses (and very, very, very rarely, urine/defecation-related transmission) - but I wonder if there are other sources of HIV transmission - so for example, let's say during sexual relationship, some cuts on body (for example, inside vagina) occurred. Then even if the partner did not have HIV viruses, and a person afterwards does not sex with partners with HIV viruses, is there a chance that he/she may get HIV viruses, still?

I am inquisitive to know about how a person contracts AIDS. Among the common masses it's still the belief that having sex with multiple partners causes the disease but that is not the case when read online that it can come only from persons carrying the virus.  So, if a person (male or female) is carrying the virus (HIV positive) does it mean that he/she is suffering from the disease or the person may be carrying the HIV disease and still be free from AIDS. If so how did this chain reaction of spreading the virus start?  Also is it true that immune systems of some rare people in this world can fight with this disease.


I’m a u.s citizen I was in the UK for (2017-2018) school year on a tier 4 visa. I also visited during the Christmas break for three weeks, I’m planning to come back on March to look at Law schools for a week since I’m planning to go to Law School in Scotland. Should I have any problems with border security or am Is it just my anxiety?

I am a US citizen and have recently visted the UK  with simply a passport which allowed me to vist for 6months I have heard rumors that I am obligated to stay in the US for a Equal amount of time that I have visited the UK before I am able to return, but I am struggling tour no any proof of this obligation .. Am I missing somthing or is it simply not true


I just noticed today that our internal document generation system (using XeLaTeX under the hood) does not produce binarily identical PDFs given the same inputs (which is something that we need to ensure for our own traceability mandates). I set out today to fix the problem and came across  which helped me get part of the way there. Unfortunately, I was still seeing differences in the final output hashes. I recompiled the documents with \special{dvipdfmx:config z 0} so that I could try to see a textual diff and that helped me see that the font names themselves are getting prefixed with a string of 5 characters which change for each compilation.  MWE (xelatex): % filename: mwe.tex \documentclass{minimal}  \begin{document} A \end{document}  If I compile this document twice $ xelatex -jobname=mwe1 mwe.tex $ xelatex -jobname=mwe2 mwe.tex  and then look at the fonts contained in each $ pdffonts mwe1.pdf name                                 type              encoding         emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- AMLHNB+LMRoman10-Regular-Identity-H  CID Type 0C       Identity-H       yes yes yes      5  0 $ pdffonts mwe2.pdf name                                 type              encoding         emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- DVQZGA+LMRoman10-Regular-Identity-H  CID Type 0C       Identity-H       yes yes yes      5  0    then I see that this 5-character prefix seems to be changing at random. This is preventing me from achieving my ultimate goal of binarily reproducible builds. Question Is there anything I can do to prevent this prefix from changing each build? If not, then is there any way to coerce xelatex to avoid using a prefix altogether?  For further information, pdflatex does not seem to exhibit this problem (though the font name it derives is different from xelatex, which is to be expected, I suppose). $ pdflatex -jobname=pdftex1 mwe.tex $ pdflatex -jobname=pdftex2 mwe.tex  produces $ pdffonts pdftex1.pdf name                                 type              encoding         emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- GBZLEI+CMR10                         Type 1            Builtin          yes yes no       4  0 $ pdffonts pdftex2.pdf name                                 type              encoding         emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- GBZLEI+CMR10                         Type 1            Builtin          yes yes no       4  0

The question how to create identical PDF files with pdflatex was basically answered in this question already:    The catch was to filter out the entry /ID in the trailer dictionary after the PDF file was created.  I am now forced to use xelatex and there this trick does not work any more, because there are many more changes in the resulting PDF files.  Here is the minimal working example again:  \documentclass[11pt,a4paper]{article} \usepackage[]{hyperref} \hypersetup{         pdfauthor={None},         pdfcreationdate={D:20131010120000},         pdfmoddate={D:20131010120000} } \begin{document} foo  \end{document}   If I now create 2 PDF files, convert them to a hex dump and view the differences...  xelatex mwe.tex; mv mwe.pdf a.pdf; xxd a.pdf > a.bin xelatex mwe.tex; mv mwe.pdf b.pdf; xxd b.pdf > b.bin diff -u a.bin b.bin    ... then you can see that there are many differences in the resulting PDF files unfortunately.  Is there any way to produce bitwise identical PDF files with xelatex?  The reason I need this is that I'd like to create PDF files for a software release package. Of course the software release package should be identical when the underlaying software and documentation has not been changed.


Suppose $f$ is continuous on $[0, 1]$ such that $f(0) = f(1)$. Let $n$ be a positive integer, prove that there exists $x$ such that $$ 0 ≤ x < x + 1/n ≤ 1, \\f(x) = f(x+(1/n)) $$

Let $f \in C[0,1]$ and $f(0)=f(1)$.   How do we prove $\exists a \in [0,1/2]$ such that $f(a)=f(a+1/2)$?  In fact, for every positive integer $n$, there is some $a$, such that $f(a) = f(a+\frac{1}{n})$.  For any other non-zero real $r$ (i.e not of the form $\frac{1}{n}$), there is a continuous function $f \in C[0,1]$, such that $f(0) = f(1)$ and $f(a) \neq f(a+r)$ for any $a$.  This is called the Universal Chord Theorem and is due to Paul Levy.  Note: the accepted answer answers only the first question, so please read the other answers too, and also this answer by Arturo to a different question:     This is being repurposed in an effort to cut down on duplicates, see here: .  and here: .


related to browser window's upper left corner of client area.

I want to know how to get the X and Y position of HTML elements such as img and div in JavaScript relative to the browser window.


I have a subdivided mesh. I have added shrinkwrap modifier to it. Before adding shrinkwrap modifier its has a solid thickness but after adding the shrinkwrap modifier the thickness disappear. I have tried all options but its working. When it is shrink its perfect but no extrude or thickness to the mesh. Any suggestion or help.

I have seen other similar questions but they don't seem to be what I want, please correct me if I'm wrong.  For simplicity: delete the default cube, NumPad7, add cylinder, rotate X 90, then add torus with ext/int 1/0.75 and raise it above the cylinder. It should look like this:.  What I want is to deform the torus against the cylinder, but make it as if it's a projection. This means that, when looked from above, it will look like a normal, undeformed torus (volume changes), but when viewed with NumPad1, it will look like a round-end tube following the curvature of the cylinder, while still having the same round cross-section. To make it worse, my object needs to be deformed by a more complex surface, such as sin(x).  If I'd use soft body, it will look shrinked when looking from above, i.e. it will preserve the volume. If I use shrinkwrap, it either does a projection with its circumference intact, but all flat, or it will project it (similar to what I want), but only the bottom side vertices, like a curtain.  Mesh modifier gets me nowhere since I have to manually tweak the surrounding mesh, and curve modifier also preserves the length/volume, while also squishing the section of the torus at the bending points.  My question(s): is there a way to project (mold) the torus onto the cylinder while preserving it's cross-section? Can this be extended for more complex meshes to be projected or to be projected on?    This is, roughly, what the side view (along Y axis in the 1st pic) would look like after the deforming of the torus:    The unselected shape above is the torus (as it is in the first picture), and the selected shape is what it would look like after the deform, or molding, whatever you want to call it.  And here is what it would look like when seen from above (top view, along Z axis)): i.stack.imgur.com/HVOCo.png (can't add more than 2 pics)  The view would be the same before and after the torus is deformed.


I am running Ubuntu Gnome 15.04 (with Gnome Shell obviously), and I have noticed that sometimes when I quickly hover over the Activities button in the top-right-hand corner, that it opens the Activities overview. Although when moving my mouse over it slightly slower, nothing happens. But sometimes I accidentally move my mouse there, and it opens up that area, and I am now getting really annoyed with accidentally opening it up. So I am wondering if there is a way to make it so that the Activities overview only opens up if the Activities button is clicked on?    OS Information:  No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 15.04 Release:    15.04 Codename:   vivid

I have been searching for a way to disable the "hot corner" feature of the Activities button in Gnome Shell. I would prefer it to require a click such that I don't keep accidentally activating it upon mouse over.