I've been having an issue on my network that has completely vexed me.  I have three workstations running Ubuntu 13.04, one Windows 7 workstation, and three servers on Ubuntu Server 12.04. One of the servers is a domain controller running Samba4 and handles DNS, Kerberos, NTP, and DHCP.  Today I was trying to add a laptop to the domain, running Ubuntu 13.10. I issue net ads join -U AdminUser and the laptop joins the domain with no errors. I literally copied and pasted the config files from the other workstations and verified the permissions.  When I run wbinfo I can see the domain users and groups. However, when I run getent I see only local users and groups. If I run wbinfo -a domainuser --verbose, I am asked for the user's password and the password is accepted with no errors. Kerberos works as well.  nsswitch.conf, pam.d/common-auth, pam.d/common-session, pam.d/common-account, smb.conf, and krb5.conf are all exact copies of the other systems (which work), and I've even read through them all to verify this.  Is there something I've overlooked?   Is there something that was changed on Ubuntu between 13.04 and 13.10?   Any help would be appreciated!


Multiple tags search broken when searching as anonymous user?

When I input [asdf][lisp] into the search field on , without being logged in, only one tag remains. Is it broken?


How to install the Java plugin for Firefox?

I am trying to install Java and plugins for Firefox. I installed both the JDK and JRE.  When I try with the sudo update-alternatives --config java command it shows only one choice available.  Plugins are not usable in Firefox.


Calculating Centroid of all lands of Earth using SQL Server Spatial?

I want to find the center point of all lands of the earth.  What I have tried up to now is downloading shapefile of all countries and polar parts of the earth. Then I imported that shapefile into a SQL Server 2008 database and then tried to run some queries to find that point but all of them were in vain.  How can I calculate the Centroid of all lands of the earth using SQL Server?


Value extracted from TextField doesn't trigger if statement

Idea behind this is to have a "Search" textfield. When user types in some data and clicks on a button. Another window opens with data according to typed into "Search" textfield. I create my textfield like this TextField search = new TextField();  On a button click I do this:  searchButton.setOnAction(e -> {             String st = search.getText().toString();             System.out.println(search.getText());             setSt(st);             InfoWindow.display("Detailed information on " + st);         });   setSt() method looks like this:  public void setSt(String st)     {         this.st = st;     }   this.st is declared like this: private static String st;  In the informational window class I try to evaluate what user typed in:  public static void display(String title){     Stage window = new Stage();      window.initModality(Modality.APPLICATION_MODAL);     window.setTitle(title);     window.setMinWidth(250);     String st = MainClass.getSt();     if(st == "M16"){         textLabel = new Label("The M16 rifle, officially designated Rifle, Caliber 5.56 mm.\n" +                 " M16, is a United States military adaptation of the Armalite AR-15 rifle.\n" +                 "The original M16 was a select-fire, 5.56×45mm rifle with a 20-round magazine.");     }     VBox layout = new VBox(10);     layout.getChildren().addAll(textLabel);     layout.setAlignment(Pos.CENTER);     Scene scene = new Scene(layout);     window.setScene(scene);     window.showAndWait(); }   getSt() method looks like this:   public static String getSt() {     return st; }   I've went through the program flow with the help of the debugger. It get's to the point of evaluation if(st == "M16") and I can see in debugger that st = "M16"(because I've typed that in "Search" textfield), but it doesn't get into the 'if', it just continues as if condition would be false. What could be the problem here? Can you help to figure it out? It is definitely not in the reach of my knowledge.


I am trying to create an environment specifically for C-code, but when I compile the document below, LaTeX just hangs. I'm running MiKTeX 2.9 if that matters. Is lstlistings one of those environments (as explained ,  and ) for which this is impossible?  \documentclass{article}     \usepackage{listings}      \newenvironment{ccode}{\begin{lstlisting}[language = C]}{\end{lstlisting}}  \begin{document}  \begin{lstlisting}[language = C] printf("Hello, world!\n"); \end{lstlisting}  %\begin{ccode} %printf("Hello, world!\n"); %\end{ccode}  \end{document}


I run the method  MyObject[] myObjects = append(MyObject.class, myObjectCurrentArray, append1, append2, append3);  public static final <T> T [] append(Class T, T[] array, T... appendThese){     T[] newArray = new Object[array.length + appendThese.length];     //put T[] array and T...appendThese into newArray     return newArray; }   This throws the Exception     java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lxxx.MyObject;   How should I fix this?


I am reading paper about  of electrons, which can exhibit famous Majorana fermions at ends of wire. The Hamiltonian (his Eq. (6)) reads  $H = \frac{i}{2} \sum_j - \mu c_{2j-1}c_{2j} +(w+|\Delta|)c_{2j}c_{2j+1} +(-w+|\Delta|)c_{2j-1}c_{2j+2}$  in terms of the Majorana operators $c_{2j-1}$ and  $c_{2j}$ and constants $\mu, w, |\Delta|$ can be thought of as parameters controlling Fermi level, hopping and gap.  Kitaev shows there are solutions of Hamiltonian $H$ with zero-energy. He  gives the operators associated to zero-energy solutions in ansatz form (his Eq. (14)):  $b' = \sum_j \left( \alpha_{+}' x_{+}^{j} + \alpha_{-}' x_{-}^{j}\right) c_{2j-1}$  $b'' = \sum_j \left( \alpha_{+}'' x_{+}^{-j} + \alpha_{-}'' x_{-}^{-j}\right) c_{2j}$  where all $\alpha$ are constants and $x_{\pm}$ are unknowns to be found.  Q1) How to find $x_{\pm}$?  Q2) How to show $x_{\pm} = \frac{-\mu \pm \sqrt{\mu^2 - 4 w^2 + 4 |\Delta|^2}}{2 (w+|\Delta|)}$?  I attempted to show it by computing $[b', H]=[b'', H]=0$, but it did not give correct answer.  Any help appreciated.


Extra wear of multicore processor when only a single core is used. Is there such a thing?

There are specific processes that seem to load only one of the processor cores, out of the eight cores my processor has. I have some such processes that run only 10-20 seconds, but others run in this fashion for up to 1.5-3 minutes. During this my cooling fan can speed up to really intense rates. I was thinking, if there is so much heat to deal with, while it is being concentrated on only one core, then is it possible — considering the entire area of the processor — that some part is getting hot while the opposite end/corner isn't so much? When considering heat expansion in materials, shouldn't it mean that the processor's materials are under extra stress and may be driven to develop cracks from the uneven expansion? Is this how it happens really? Can there be a difference in this regard between processors used in laptops (smaller, I guess) and processors used on traditional format motherboards?  Clarification 1: I am not interested in the effects of heat when:  its origin is distributed evenly across the processor body when it is encountered in a constant / long-term fashion.  This question is specifically about heat-expansion involving the processor, while  happening in an uneven distribution, happening in cyclical bursts.   Clarification 2: The post that is suggested to contain answers for this question (in the "duplicate" marking), in fact does not take uneven distribution into consideration, and addresses a lot of peripherals, but not does not seem to go into depth of heat distribution in, and material engineering of processors.


mathspec and \RequirePackage{amsmath} error

In my package, I request amsmath with \RequirePackage{amsmath}, resulting in this basic setup:  \documentclass{minimal} \usepackage{amsmath} \usepackage{mathspec} \RequirePackage{amsmath} % part of another package, \usepackage{...} \begin{document} hi \end{document}   This leads to the error     Package mathspec Error: 'amsmath' must be loaded earlier than 'mathspec'.   at the 2nd request for amsmath, although amsmath is already loaded.  I could, of course load my package before mathspec. However, a user of my package has the problem that he uses a template and cannot load packages before  mathspec, only after it.   I'd consider this a bug. The error should not be raised when amsmath is already loaded. Do you agree? Is there a way I could change my package (replace \RequirePackage{amsmath}) to avoid this error?


European driver's license Type B and 10,000lb vehicle in USA

We are a Belgian couple and want to travel in the US with a truck camper. This truck camper will weigh around 10,000 lbs (4500 kg).    In Belgium we have a driver's licence Type B (European and International), the normal driver's licence for a car. But in Europe those licences are limited to vehicles under 7,715 lbs (3500 kg).   Could you tell us whether this driver's licence will be legally sufficient to drive our truck camper of almost 10,000 lbs in the US?


Font size in content areas is too small to be comfy for me. Please make it customisable.   Functional areas are ok because I don't have to actually read them to know what's there.


\cite maximum 2 names using maxnames=2, how to get all names appear in cross-references Bibliography?

I want to have maximum two author name in my content, but for Bibliography will be listed all name:  \usepackage[backend=biber, style=authoryear, maxnames=2]{biblatex}   in:  @article{1testing,   title={Title 1},   author={Zanthony1 and rrAnthony2 and Anthony3},   journal={Journal 1},   volume={24},   number={2},   pages={258--300},   year={1992},   publisher={Springer} }  @article{2testing,   title={Title 2},   author={Zanthony1 and rrAnthony2 and Anthony3},   journal={Journal 2},   volume={24},   number={2},   pages={200--264},   year={1992},   publisher={Springer} }   It will have:  The standard \verb=\cite= command produces the following output: \cite{1testing}.   Output below in text is correct:   However, in Bibliography, I want to listed all full name without   et.al.


What plan makes most sense for this bathroom rough in?

I'm trying to figure out the best way to layout this rough in. I'm ok with the location of the toilet and shower. However the sink rough in is throwing me a bit. The pipe running down from the ceiling sticks out on the way down. How would I overcome this issue? I believe I would have to dig up the concrete and move it so it's more vertical. Otherwise it doesn't seem like there's much room from the toilet to finished wall.


Need help calculating a definite integral

I'm trying to calculate the following integral:   $$ \int_0^1 e^{-\lambda(1-x)} (1-x)^{n-1} x^{k-n} dx $$ It seems like kind of a combination of Gamma and Beta function. I'm suspecting that it has something to do with both of them, however I can't see the connection.  Any hint would be welcome!


Given enough RSA signature values, is it possible to determine the public key value?

Given enough RSA signature values, is it possible to determine which public key is required to verify the values?  Could there be enough information to establish which key is required? Is there anything in the RSA scheme to retrieve the modulus, assuming the public exponent can be guessed?  Only padded RSA for signature generation with PKCS#1 v1.5 padding or PSS padding may be considered, not raw/textbook RSA.    This question is related to  asking about the same question for RSA encryption.


I know this has been asked a few times, but my scenario is a little different... The objective I need to accomplish is to convert a string of digits '20150425' (which happens to be a date), into a date format such as, '2015-04-25'.  I need this because I am trying to compare date objects in my code, but have one variable type represented as a string.  Example below:     date = '20150425' ## want to convert this string to date type format     # conversion here     conv_date = '2015-04-25' ## format i want it converted into   Hope this is clear.  Should not be difficult, just do not know how to do it.


There didn't exist computers.      Will there happen similar events in the future?   Are these sentences grammatical or is my mind making stuff up? I haven't been able to find much on the net.


Are there any non-contemporaneous items in the Logan trailers?

Is has been established that Logan .  And, as can be seen from the trailers  and , it takes place in desert terrain in Oklahoma, Texas, and Mexico.   So most things are old and dusty. But, for example, the cars and objects in the gas station store don't appear to have been modified to appear to be from our future.  Besides the obviously sci-fi elements (cybernetic mutants and their weapons, for example, which in the X-Men universe are not necessarily futuristic) is there anything else that would indicate that this is 12 years into the future?    Edit:   Follow on question:


Is there any use for the quantity $\int f(x)^2 dx$ in statistics or information theory?

Is there any use for the quantity $$ \int f(x)^2 dx $$ in statistics or information theory?


How can I disable my laptop from reinstalling uninstalled drivers?

I've uninstalled the driver for the onboard keyboard, because it keys in random keys, but everytime I restart it reinstalls the onboard keyboard drivers. I've tried renaming the keyboard driver in the Windows folder, but I can't; it says I need from permission from TrustedInstaller. And I can't access the group policy because mine is the standard that doesn't have gpedit.msc. How can I prevent it from reinstalling the driver?    OS: Windows 8 Laptop model: Acer v3 772g


Is the double-slit experiment typically carried out in a vacuum?

It is my understanding of the double-slit experiment that when a measuring device is activated, to measure which of the two slits a particle is travelling through, this measuring is responsible for a different outcome than when the device is left off. When the device is left off particles leave an interference pattern, suggesting a single particle (or its wave) interferes with itself; when the device is activated no interference pattern is left, and particles are observed to travel through a single slit.  Now, does all this imply that this experiment is typically carried out in a vacuum? If not, how is it that interaction with other particles in the environment of the experiment's set-up are not already influencing the outcome, regardless of whether the measuring device is on or left off?  This question may very well be a very naive one, due to my very limited understanding of particle interaction, vacuums and/or physics in general. If so, I would appreciate a brief, layman's, overview of where my understanding of the different subjects at play here is likely to be lacking.


story about an ark on land demonstrating time dilation

I'm looking for a story about an ark on land where the people who live in the ark are pulling the ark along.  If they travel forward of the ark, time speeds up, if they travel in a reverse direction to the ark, time slows down.


Difference between static modifier and static block

Someone explain to me the differences between the following two statements?  A static final variable initialized by a static code block:  private static final String foo; static { foo = "foo"; }   A static final variable initialized by an assignment:  private static final String foo = "foo";


Are penalties applied if you have too many 404 errors on your site?

Do the search engines take the number of 404 errors returned by a site into account when calculating the site rank? For example I have 8,000 404 errors and I am thinking that that's affecting my SEO in a negative way.  However, I read  about 404 errors which suggests that they are not always a negative quality indicator.   So I am confused...are high numbers of 404 errors harmful to a site or not?


How to find $ \lim\limits_{ x\to 100 } \frac { 10-\sqrt { x } }{ x-100 }$

Find $ \lim\limits_{ x\to 100 } \dfrac { 10-\sqrt { x } }{ x-100 }$  (without using a calculator and other machines...?)


Warning when logging in to data.se with Google account

The Google page says     Important notice: OpenID2 for Google accounts is going away on April 20, 2015. .   Looks like Google is giving a decent warning. This warning is NOT shown when logging into MSE, SO, etc. (Presumably because they use oauth2 instead)


Hello maths community!  One day I was solving a geometry problem and I thought I had found a way of solving it. When I was solving the problem, I kind of invented a new way of finding an area of a shape that is related to circle but just recently I realized that I was wrong. The method I invented was invalid but I just don't understand why wouldn't it work... I won't describe the problem here but I am going to show an example of the method I invented.  Warning. The following methods are invalid!  To find the area of a circle with my method is to first split the circle in half and first find the area of that and then multiply it by 2 in the end to make our life easier.  A half circle is made out of bunch of vertical "lines" and I thought one could use integrals to add these "lines" up to get the area. To do this we need to find a function to get the length of one "line" and then integrate the function. If we draw a right triangle inside the half circle, the task will become easy.      Now, to get $l$, we use sine: $l=r\cdot \sin(φ)$  Then we take the integral with respect to $φ$. I guess this part is the one causing problems...  $$\int_{0}^\pi l \, dφ=\int_0^\pi r\cdot \sin(φ) \, dφ=r\int_0^\pi \sin(φ) \, dφ = r (-\cos(\pi) +\cos(0))=2r$$  Well we know already that the area of a half circle is definitely $2r$  and if we multiplied it by $2$ we would get $4r$ and $4r \neq \pi r^2$  With my logic this would seem very valid and I would just like to know why this doesn't work. Thanks!


I want to place 2 images side by side in LaTeX. I have 2 .png files and I don't understand how to do it in LaTeX. I have tried many ways but could not get a good result.


I'm working with moderncv and keep getting the following warnings:  C:\Users\USER\AppData\Roaming\MiKTeX\2.9\tex\latex\moderncv\moderncvheadii.sty: LaTeX Warning: You have requested package `moderncvheadii',               but the package provides `moderncvheadii'. C:\Users\USER\AppData\Roaming\MiKTeX\2.9\tex\latex\moderncv\moderncvbodyi.sty: LaTeX Warning: You have requested package `moderncvbodyi',               but the package provides `moderncvbodyi'. C:\Users\USER\AppData\Roaming\MiKTeX\2.9\tex\latex\moderncv\moderncvfooti.sty: LaTeX Warning: You have requested package `moderncvfooti',               but the package provides `moderncvfooti'. PATH_TO_MY:FILE.tex:64: LaTeX Font Warning: Font shape `U/fontawesometwo/m/sl' undefined(Font)              using `U/fontawesometwo/m/n' instead on input line 64. PATH_TO_MY:FILE.tex: LaTeX Font Warning: Some font shapes were not available, defaults substituted.   There was a lot more of such stuff before I did what dmtree explains . Do you know how I can get rid of the last five warnings? I'm using Windows 10 with MikTex.


Showing that $R[x_1,...,x_n]$ is the only $R$-algebra up to isomorphism that satisfies the universal property of the polynomial ring.

I am currently working through some exercises in Computational Commutative Algebra 1, and I have run in to some difficulties.  The universal property of the polynomial ring states:  Let $S$ be an $R$-algebra ($R$ a commutative ring) with structural homomorphism $\phi:R \to S$. For $n \in \mathbb{N}$ and elements $s_1,\dots,s_n$, there exists a unique homomorphism: $\psi: R[x_1,\ldots,x_n] \to S$ with $\psi(x_i)=s_i$ and with $\psi(r)=\phi(r)$ for all $r \in R$.  I am trying to prove that any $R$-algebra satisfying this property is isomorphic to $R[x_1,\ldots,x_n]$ with a unique isomorphism, but i am running in to some problems since l'm new to $R$-algebras.  What I have tried so far:  Assume that $T$ is an $R$-algebra with structural homomorphism $\phi_T: R \to T$. Let $t_1,ldots,t_n \in T$ and assume that there exists a unique homomorphism $\psi_T : T \to S$ such that $\psi_T(t_i)=s_i$. I want to construct a unique $R$-algebra homomorphism $\Phi: R[x_1,\ldots,x_n] \to T$. My first thought was the homomorphism induced by $x_i \mapsto t_i$. Is this enough information to define a unique homomorphism?   I also have some difficulty figuring out how the universal property comes into play. I think that it is used in proving the uniqueness of the $R$-algebra isomorphism between $R[x_1,\ldots,x_n]$ and $T$, but I am not sure.  Any help would be appreciated.


Puppet client not connection to master - SSL connect Error

I installed the puppet master and agent on the same machine. When the client is started, I got the following error message.  puppet agent --server=agent.com --no-daemonize --debug    err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed.  This is often because the time is out of sync on the server or client


How can I make all fonts with all font faces show a sample string for comparison?

For a specific task I want to select a decent font. For that I want to compare the text “E G PM” for all my installed fonts (or even more) on a Linux system (Ubuntu in this case). Especially the bold face of a font (if it has any) will more likely match my requirements.  A quick visual viewing will probably sort 90% out already, so I was thinking of seeing a list of my string in the different font faces available on my system.  The font viewers/managers I tried are not up for the task. Which app could help me here or how can I quickly solve my problem otherwise?  The apps I tried are:   fontmatrix   version 0.6.0+svn20110930 (0.9.99) a bug hinders your configured text to be shown (font name is always shown) it does not show the bold face of a font in the list (just regular)  gnome-specimen   you have to add each font face individually (2-3 clicks) to seem them you see substituted fonts (if glyph is not in font) without being warned/told  fontypython crashes at startup on this Ubuntu bionic system fontmanager.app is unusable in i3 window manager  gwaterfall   text is fixed to “Lazy dog...” needs each font selected individually (4 clicks at least)  font-manager   has a great browse mode, but in that mode it doesn’t show your own text (only font name)  gnome-font-viewer can’t set text typecatcher   custom text, yes shows just regular type face for each font (i.e. not bold or others) requires 1 click to see the font doesn’t show system fonts(?), only a big selection of downloadables  Opcion   horrible user interface doesn’t show bold type face (and others) in the list  FontViewer   makes fonts look ugly (doesn’t antialias or whatnot) no list, no bold face  kfontview   doesn’t find system fonts itself (select font with “Open...” on a font file) doesn’t do lists of fonts


How do I change the Ubuntu loading screen?

After I installed "kubuntu-desktop" my loading screen was changed:   to this:   How do I change it back?


Travel to Colombia connecting through the USA

My cousin needs to a attend a conference in Cartagena very soon and he is very confused with planning his travel itinerary. The direct flights from India to Cartagena are very expensive and long.   He has a valid business US visa. He wants to travel from India via the USA to Cartagena. Can he return to the USA from Cartagena (JFK or EWR) and onward to India? Will there be any Immigration when he connects in JFK/EWR?   Since he has a valid visa, can he book the tickets via the USA, which saves him time and money?


Find the limit $\displaystyle\lim_{n\rightarrow\infty}{(1+1/n)^{n^2}e^{-n}}$?  I found the limit as $e^{-1/2}$ using l'Hospital rule. I guess I made a mistake. Because the limit seems to be 1. Also, can we find the limit without L'Hospital rule?


Prove that a topological space equipped with a delta-complex structure is Hausdorff

Suppose that $X$ is a topological space equipped with a delta-complex structure. Prove that $X$ is Hausdorff.  I can actually "see" why it should be Hausdorff after the hint from Hatcher asks to "think of a delta-complex X as a quotient space of a collection of disjoint simplices".  I would appreciate if somebody can write out a full formal argument showing this proof. I'm trying to start from the definition of Hausdorff but I don't know how to carry on.


break 1-meter stick randomly into 3 segment, form triangle?

I have a 1-meter long stick. Let $x,y$ be i.i.d with uniform ([0,1]), representing the cut in the stick. What is the probability that the 3 segment form a triangle?  Attempt:  Pr{triangle} = Pr(triangle | x < y) Pr(x < y) + Pr(triangle | x > y) Pr( x > y).   Let's look at the first term. Pr(triangle | x < y) requires:  1) x + y-x > 1-y  2) x + 1 -y > y-x  3) y-x + 1-y > x  Which is equivalent as   1.y >0.5,  2. x < 0.5  3. y - x < 0.5.  This is a triangle which has the area of 1/8.   Due to symmetry, Pr(triangle | x > y) = 1/8.   Now. Pr{triangle} = Pr(triangle | x < y) Pr(x < y) + Pr(triangle | x > y) Pr( x > y)   = 1/8 *0.5 + 1/8 *0.5 = 1/8 $\neq$ 1/4 (as posted )  Confusion: Did I do something wrong?


Oracle: Inserting into table error - either duplicate column name or invalid datatype

I'm trying to insert data from an external table. INSERT /*+ ignore_row_on_dupkey_index ( consruct ( construct_id ) ) */ INTO construct        (construct_id,       n_term ,       enz_name,       c_term,       cpp,       mutations,       mw_kda) SELECT *     FROM EXTERNAL ((       construct_id NUMBER(10),       n_term VARCHAR2 (50),       enz_name VARCHAR2 (50),       c_term VARCHAR2 (50),       cpp VARCHAR2 (50),       mutations VARCHAR2 (50),       mw_kda NUMBER (7,3))      TYPE ORACLE_LOADER     DEFAULT DIRECTORY data_to_input     ACCESS PARAMETERS (         RECORDS DELIMITED BY NEWLINE         SKIP 1         BADFILE bad_files:'badflie_insert_into_construct_from_construct.bad'         FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'         MISSING FIELD VALUES ARE NULL          )      LOCATION ('CONSTRUCT.CSV')     REJECT LIMIT UNLIMITED) ext          WHERE NOT EXISTS (         SELECT * FROM construct c         WHERE c.n_term = ext.n_term         AND c.enz_name = ext.enz_name         AND c.c_term = ext.c_term         AND c.cpp = ext.cpp         AND c.mutations = ext.mutations     );  But now i get this error: Error at Command Line : 171 Column : 7 Error report - SQL Error: ORA-00957: duplicate column name 00957. 00000 -  "duplicate column name"  Line 171 is the last line of this part INSERT /*+ ignore_row_on_dupkey_index ( consruct ( construct_id ) ) */ INTO construct        (construct_id,       n_term ,       enz_name,       c_term,       cpp,       mutations,       mw_kda)  Which is clearly not a duplicate column. If I do: INSERT /*+ ignore_row_on_dupkey_index ( consruct ( construct_id ) ) */ INTO construct      (construct_id,      n_term,      enz_name,      c_term,      cpp,      mutations,      mw_kda) SELECT *     FROM EXTERNAL ((       ext.construct_id NUMBER (10),       ext.n_term VARCHAR2 (50),       ext.enz_name VARCHAR2 (50),       ext.c_term VARCHAR2 (50),       ext.cpp VARCHAR2 (50),       ext.mutations VARCHAR2 (50),       ext.mw_kda NUMBER (7,3))      TYPE ORACLE_LOADER     DEFAULT DIRECTORY data_to_input     ACCESS PARAMETERS (         RECORDS DELIMITED BY NEWLINE         SKIP 1         BADFILE bad_files:'badflie_insert_into_construct_from_construct.bad'         FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'         MISSING FIELD VALUES ARE NULL          )      LOCATION ('CONSTRUCT.CSV')     REJECT LIMIT UNLIMITED) ext          WHERE NOT EXISTS (         SELECT * FROM construct c         WHERE c.n_term = ext.n_term         AND c.enz_name = ext.enz_name         AND c.c_term = ext.c_term         AND c.cpp = ext.cpp         AND c.mutations = ext.mutations     );  I get Error at Command Line : 174 Column : 10 Error report - SQL Error: ORA-00902: invalid datatype 00902. 00000 -  "invalid datatype"  Line 171 is ext.construct_id NUMBER (10),


Equivalent of MATLAB variable field names in Python

In MATLAB you can do behave such as:  fldname = 'cost';  box.(fldname)  = 5;   Then box.cost will have 5  I would also want to read from box with something like the following:  val = box.(fldname) #where fldname is set somewhere else like above   Is there a similar ability in Python?


Proving that $A_n$ is the only proper nontrivial normal subgroup of $S_n$, $n\geq 5$

There is a famous Theorem telling that:  For $n≥5$, $A_n$ is the only proper nontrivial normal subgroup of $S_n$.  For the proof, we firstly start with assuming a subgroup of $S_n$ which $1≠N⊲S_n$. We proceed until at the last part of proof's body, we assume $N∩A_n=\{1\}$. This assumption should be meet a contradiction with normality of $N$ in $S_n$. There; we get $N=\{1,\pi $} in which $\pi$ is an odd permutation of order $2$. Now for meeting desire inconsistency, I have two approaches:  (a) Since every normal subgroup, having two elements, lies in the center of $G$ so, our $N⊆ Z(S_n)=\{1\}$ for $n≥5$ and then $N=\{1\}$.  (b) Clearly, $1≠N$ acting on set $\Omega=\{1,2,...,n\}$ is intransitive wherein $|\Omega|≥5$ and according to the following Proposition $S_n$ would be imprimitive.  Proposition 7.1: If the transitive group $G$ contains an intransitive normal subgroup different from $1$, then $G$ is imprimitive (Finite Permutation Groups by H.Wielandt).  May I ask if the second approach is valid? I am fond of knowing new approach if exists. Thanks.


Skyrim problem here. I've finally found a house mod that will support a family (as in allow them to move there). I'm excited to install it, but it says that a new save game is highly recommended unless you haven't adopted any kids yet.   I recently adopted Lucia. I have two saves in my game, a quick and a full. I know that the full save has Lucia as adopted, but I'm not sure if the quick does. If it does not, then my reasoning is that I can install the mod and load that save, rather than having to work all the way back through eighteen levels.   And here's the problem. I loaded the quick save and searched for Lucia, in an attempt to see if she was adopted or not. She is nowhere to be found. She is not sitting under the tree in the middle of Whiterun, she is not in Breezehome, and she is not in the inn.   I tried to use console commands. both the moveto and placeatme commands do not work. I used both the refid and the baseid. Neither worked. I used help Lucia, thinking maybe the wiki was wrong on her ID. it gave me a different ID, which also didn't work. Every time, the console says either that it can't find the objectbaseid, or that the id is invalid.   This has led me to the conclusion that Lucia has been entirely erased from the game's memory, and I KNOW that hasn't happened. Can someone tell me what is going on?   Additional details: I am using a Breezehome overhaul mod. When I adopted Lucia, she moved in perfectly with no trouble though, so I can't really see how that would be the problem.


I can't install libdvdcss - script not finding medibuntu, How to get DVD playback?

I am trying to get  instructions working on 12.04, I know I am connected to the internet but it doesn't seem to work.  $ sudo /usr/share/doc/libdvdread4/install-css.sh --2013-10-09 19:18:44--  http://packages.medibuntu.org/dists/precise/free/binary-i386/Packages Resolving packages.medibuntu.org (packages.medibuntu.org)... 88.191.127.22 Connecting to packages.medibuntu.org (packages.medibuntu.org)|88.191.127.22|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2013-10-09 19:18:44 ERROR 404: Not Found.  Dynamic fetch failed; Falling back to static fetch --2013-10-09 19:18:44--  http://packages.medibuntu.org/pool/free/libd/libdvdcss/libdvdcss2_1.2.10-0.2medibuntu1_i386.deb Resolving packages.medibuntu.org (packages.medibuntu.org)... 88.191.127.22 Connecting to packages.medibuntu.org (packages.medibuntu.org)|88.191.127.22|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2013-10-09 19:18:44 ERROR 404: Not Found.   I am trying to get DVD playback going, how can I fix this?


Problem with proving an inequality by mathematical induction

I wonder how to solve this problem using mathematical induction: $1 + \frac{1}{\sqrt{2}} + \frac{1}{\sqrt{3}} + ... + \frac{1}{\sqrt{n}} > \sqrt{n}, n\geq2$ I showed true for $n = 2$ Assumed true for $n = k$, the tried to prove true for $n = k + 1$, but I was unable to finish proof. How should I prove this inequality correctly?


Is it acceptable to open a modal popup on top of another modal popup?

On the web, is it wise to allow a modal popup (B) to be opened from another modal popup (A)?  If modal popup B were to be closed, the user would again be viewing modal popup A.  I am asking as I can envisage some issues e.g. with dismissing the second popup, if the overlay is clicked do both modals close or just the second one? Would the user think that the first modal has gone or would they know they can return to it by closing the second modal? etc.  Example mockup:   Modal A.  Modal B. Opens when 'button' is clicked in Modal A


Client-Side Rendering/JS Link documentation?

Has there been any sort of documentation or anything like that released for SharePoint 2013 Client-Side Rendering/JS Link?  Anthing unofficial? Any dates for when documentation might be released?


After using `networksetup -setdnsservers Wi-Fi "8.8.8.8" "8.8.4.4"` how do I clear them?

I'm looking to script a temporary DNS server change to override the DHCP response I get from the network. I've figured out I can use networksetup but once we're done testing. Before I push to production, I figure I should know how to undo this.  How can I script to clear these changes and restore the settings the network provides now as if I never ran the following script?  networksetup -setdnsservers Wi-Fi "8.8.8.8" "8.8.4.4"   It's not feasible to save any the previous settings and I'm looking to remove the setting so that the actual new values can be retrieved from the network as opposed to saving what the settings were previously so I don't save an old value that is no longer correct.  Basically, I'm looking to ipconfig /renew on macOS.


smooth curve has measure zero in $\mathbb R^3$

Problem says:     Let $u:[0,1]\rightarrow \mathbb R^3$ be a smooth curve. Prove that in   $\mathbb R^3$, $N:=u([0,1])$ has measure zero.   I found more general result as follow:  Sard's theorem says:     If $f:M\rightarrow N$ is a smooth map, and $C$ is the set of all point   critical points of $f$ in $M$. Then $f(C)$ is a measure zero set in N.   And one of its corollary says:     If $f:M\rightarrow N$ is smooth and $\dim M<\dim N $, then $f(M)$ has   measure zero.   So, by applying it, $N$ in the problem has measure zero. But problem is proving the corollary.


Unable to resize(decrease) home partition in Ubuntu 19.10

This question has been asked a lot but,i didn't find a single answer that could help me I run Ubuntu 19.10 from a 64GB USB2.0 pendrive.  I have distributed the partitions as such :  home : 49GB snap : 2GB  root : 10GB   Today when i checked the disk manager i found out that i had used up 86.5% of root partition. What i want to do now is allocate 10GB of home partition to root one .So,the new partitions will be as follows :   home : 39GB snap : 2GB  root : 20GB   But,when i open Gparted/Disks ,select the partition and then click on the resize option,i receive the :   Error unmounting/dev/sdb6: target is busy (udisks-error-quark, 14) I am not aware of which information to hide. So,in the screenshot provided ,i have censored some parts  What i tried to do before asking this question :  I restarted the computer and took note that no other file was open before trying to resize the partition .  If you want any other information to solve my problem. Do let me know.


Twitter has a nice feature to save searches so you can quickly access them quickly in the sidebar.  It would be nice to have something like that for SO/MSO/SU/SF.   Instead of having to type in my search, like  [discussion feature-request only-awesome-features]  in the search box every time, I could save them as a search preset and access them in my prefs in a tab called "Favorite searches" or something like that.  Even better, the saved searches would be available in the site's sidebar, e.g. under related tags.  EDIT: I know, the search is not the best, but searching for certain tags or groups of tags (in the syntax: [tag1 tag2 tag3]) actually works ok, IMO. That's what I want to use it for, searching for certain groups of tags.


QGIS 3.10.7 - Subscript/superscript in the legend text

I'm trying to add subscript/superscript in the legend text of a layout in QGIS. I can do it in a simple text box just click on View as HTML and then using for example <sub> in order to write a subscript. How could I do this in the legend text? I don't find anything to enable HTML on the legend property panel.


What creates three dimensional wormholes?

I read online that wormholes are formed when the fabric of space time is bent, but visualisation was the bending of two dimensional space with a three dimensional object. So what bends three dimensional space to create three dimensional wormholes?


Minimum eigenvalue and singular value of a square matrix

How to show that the relationship $\left | \lambda_{min} \right | \geq \sigma_{min}$ holds between the minimum eigenvalue and singular value of a square matrix $A \in \mathbb{C}^{n \times n}$?


CMS Paper of Higgs Discovery: Exclusion Plots

In the , on page 24, we can find the following plot:  Question: What is the dashed line really representing? After all, it says in the caption that this line represents "the background-only expectations". But why do I expect for background $\frac{\sigma}{\sigma_{\text{SM}}}\ne 1$!? To me, background means SM background, and hence $\frac{\sigma}{\sigma_{\text{SM}}}\ne 1$ should be $1$, not?


On the server I am hosting my website, PHP was upgraded to a newer version which is not supported by Drupal version 4. There is a script and a description for doing the upgrade in Drupal version 5, but this script does not run with the new version of PHP either. Is there any other possibility to upgrade?


So I'm trying to create a custom post type for my theme. I've written the function to register the post type and I can add a post from the admin panel, but when I try to view the new post's permalink, I get a 404 not found page.   Here's my post type function:  add_action( 'init', 'create_press_coverage' );  function create_press_coverage() {     register_post_type( 'press_coverage',         array(             'labels' => array(                 'name' => 'Press Coverages',                 'singular_name' => 'Press Coverage',                 'add_new' => 'Add New',                 'add_new_item' => 'Add New Press Coverage',                 'edit' => 'Edit',                 'edit_item' => 'Edit Press Coverage',                 'new_item' => 'New Press Coverage',                 'view' => 'View',                 'view_item' => 'View Press Coverage',                 'search_items' => 'Search Press Coverage',                 'not_found' => 'No Press Coverages found',                 'not_found_in_trash' => 'No Press Coverages found in Trash',                 'parent' => 'Parent Press Coverage'             ),              'public' => true,             'menu_position' => 8,             'supports' => array( 'title', 'editor', 'comments', 'thumbnail', 'custom-fields' ),             'taxonomies' => array( '' ),             'has_archive' => true         )     ); }   I'm using the roots starter theme. Is there some extra configuration I need to do to make custom post types work with it?  Thanks.


Variations in the pronunciation of "the"

Although there are rather simple rules determining the pronunciation of "the", native speakers quite often deviate from these rules (including, e.g., TV shows). According to the Longman Pronunciation Dictionary,     The EFL learner is advised to use [ðə] before a consonant sound (the   boy, the house), [ði] before a vowel sound (the egg, the hour). Native   speakers, however, sometimes ignore this distribution, in particular   by using [ðə] before a vowel (which is in turn usually reinforced by a   preceding ʔ), or by using [ði:] in any   environment, though especially before a hesitation pause. Furthermore,   some speakers use stressed [ðə] as a strong form, rather than the   usual [ði:].   My question is: when native speakers use [ðə] instead of [ði] before a vowel sound, do they do it on purpose or accidentally? If it is on purpose, how do they (typically) decide which pronunciation to use? What is a valid reason to use [ðə] before a vowel sound?


If for any $k$, $\sum\limits_{n=0}^\infty a_n^k=\sum\limits_{n=0}^\infty b_n^k$, then$(a_n)=(b_{σ(n)}),\ σ \in{\mathfrak S}_{\mathbb N}$

Let $(a_n)_{n≥0}$ and $(b_n)_{n≥0}$ be two sequences of a nomed algebra such that $\sum{\| a_n\|}$ and $\sum{\| b_n\|}$ converge, and$ $$$\forall n, \  a_n, b_n \neq 0$$  Show that $(\forall  k \in \mathbb N^*,  \ \sum_{n=0}^{\infty}{a_n}^k = \sum_{n=0}^{\infty}{b_n}^k) \implies \exists\ \sigma \in{\mathfrak S}_{\mathbb N} \ ,\ (a_n) = (b_{\sigma(n)})$  The vector-space should be a finite-dimensional $\mathbb R$-vector-space.   I do not see how to deal with the hypothesis. If you have ideas/hints...  It would be relevant to deal with complex sequences even if it is less general. But I don't think one can generalize using real and complex cases.


Internet seems to be really slow only when connected to wifi

My internet seems to be really slow only when connected to wifi on my ubuntu box (17.04).The wifi connection in general seems to work really fast on my other macs and windows machines,what could be the problem here?  I have tried disabling the powermanagement for my wireless card as mentioned in many tutorials, and my drivers are installed.  here is a dump of my lspci command :    Network diagnostics logs :   I also got a few timeouts : logs here:   here is my kernel driver :    iwconfig and ifconfig logs:


I have some problem recently, after upgrade to Ubuntu 16.04 I can't read my exfat SD Card anymore.   I double checked, got exfat-fuse and exfat-utils installed, and when I check devices I can see my SD Card as /dev/sdd. However when I try to mount it manually it says error:  $ sudo mount -t exfat /dev/sdd /media/exfat FUSE exfat 1.2.3 ERROR: failed to read boot sector.


I am wondering whether I should capitalize the first word after the colon in the following sentence:     I wondered: how can I utilize knowledge of algebra to reach my goals?   All resources on the internet I found dealt with different cases, such as enumerating after a colon. However, I am almost putting a different sentence after the colon.  I am aware I could rephrase the sentence not to include a colon, but I need to include it.


What are the differences between /ɑ/ and /ɔ/ in American English?

I learned /ɑ/ and /ɔ/ represent two different vowels.   However,recently I read a book, the American writer said she didn't differentiate between /ɑ/ or /ɔ/. She used only /ɑ/ for everything so I think dog, door,caught, cot, core, car must be /ɑ/.  It's easier for me to just say that everything represents /ɑ/. Though, I learn new words with /ɑ/ or /ɔ/ from reading,can I pronounce them with only /ɑ/?


I would like to use colorbrewer with pgfplots to nicely color some graphs in my document. However, this minimal working example   \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.15}    \usepgfplotslibrary{colorbrewer}  \begin{document}  \begin{tikzpicture} \begin{axis}[     colorbrewer cycle list=Dark2, ] \addplot {rnd}; \addplot {rnd-1}; \addplot {rnd-2}; \addplot {rnd-3};  \end{axis} \end{tikzpicture}  \end{document}     throws this error:     ./Plots.tex:47: Package pgfkeys Error: I do not know the key   '/tikz/colorbrewer cycle list', to which you passed 'Dark2', and I am   going to ignore it. Perhaps you misspelled it.   I assume the error comes from an incorrect installation of . I am currently using MacOS.   I followed the installation steps and copied all files to a folder I created in   /usr/local/texlive/texmf-local/tex/latex/colorbrewer   and ran the texhash command - to no avail.  Why can't I get nice colors in my pgfplot plots? Am I at least correct in assuming that the installation is the cause of my troubles, or is the library already included in the colorbrewer package?


True of false: $|f(x)-g(x)|<\epsilon$ $\forall x\in I$ $\Rightarrow$ $|\sup(f(x))-\sup(g(x))|\leq \epsilon$   I actually have an idea for a proof in case it is correct, but just to make sure what I'll write isn't rubbish I would like to get a confirmation from you all.  Intuitively, it seems logical to me.  If anyone has a counter example I would love to see it.  Thanks a lot.


In Game of Thrones S8E5, Daenerys goes on full killing mode and destroys the entire city in spite of the bells ringing, indicating Cersei surrendering.  (It's evident everyone knows the bells ringing means surrender, including Dany.) But even after Cersei and King's Landing surrendering, why did Dany go ahead and destroy the entire city?  There is grief, and then there is rage, and then there is madness. We have seen her handle grief and anger almost always well. The only times she's unreasonably ruthless is when she kills the Tarlys.  So why did Dany do this in spite of all the pep talk from all her advisers and the bells ringing?


Exercise :  Find the Symmetry Group of :   The Tetrahedron The Cube The sphere with radius $r=1$ on $\mathbb R^3$   Discussion :  I am having a hard time understanding and solving exercises like this on my Algebra and Applications course. For example, I know that the answer to the first question is $S_4$ through lectures but I do not know how to prove it and most questions online/here revolve around extended questions of these and not these. Sorry for not providing an attempt, but I am really trying to grasp on how to solve them and work on these questions. I would appreciate any help, hint or thorough solution/discussion to help me get how I work on these.


Volume scatter shader causes black spots

I am following Andrew price's video on making clouds but my clouds are rendering with black spots on them. I have tried turning up the maximum transparency value under light paths but there is no difference between 50 and 200.  What could be causing this?


Can I use ddrescue & Testdisk in ubuntu to create image to recover data?

I mistakely installed ubuntu over my 1tb drive removing essential data and photos which took about 5 mins to install, so I want to know if I can use ddrescue in Ubuntu to create a virtual image of the drive to and then use TestDisk/Photorec to recover lost data? Or is it more recommended to use testdisk straight on the HDD drive?


Is taking laundry powder across national borders likely to cause problems?

Is taking laundry powder across national borders by plane likely to cause any problems?  I'm not worried so much about airport security, as border protection forces mistaking it for heroin.  I'm travelling to Hong Kong, Mongolia, South Korea, Japan, and China, but not to the USA.


Did wizards get involved in Muggle armed conflicts?

I’m not familiar with canon work outside the main seven books.  We know at least the prime minister of the UK is aware of the wizarding world as, if I recall correctly, he’s notified when Voldemort comes back.  Given the UK situation during WWII and specifically the London bombardment, I was wondering if there’s any canon story, comment or similar clarifying whether any wizard would have participated in such conflicts (I’m quoting WWII as probably the most significant but WWI or any other military conflict works as an answer).


SQL: Merge Two Columns having varchar values in xml format

I have a table1 as  id  value1  Xmlvalue  1   abc    <value value1=abc id = 1>             2   abcd   <value value1=abcd id = 2>          3   defg   <value value1=defg id = 3>            4   def    <value value1=def id = 4>  5   ghi    <value value1=ghi id = 5>    and table2 as  id   value1  Xmlvalue    1,2  abc             3,4  def             5    ghi     I need output table as  id   value1  Xmlvalue    1,2  abc     <root><value value1=abc id = 1><value value1=abcd id = 2></root>        3,4  def     <root><value value1=defg id = 3><value value1=def id = 4></root>        5    ghi     <root><value value1=ghi id = 5></root>        Note: My XmlValue columns are of type varchar(max). I have used these columns in other queries in same store procedure and if I make these columns of type XML then it gives me error in group by.


Does Time Stop apply a magical effect on only the caster, or does it affect everyone else too?

If the answers to  are anything to go by, time stop seems to be a surprisingly nuanced spell, but one basic disagreement that's appeared in the comments has been that one camp thinks time stop applies an effect only on the caster, whereas the other thinks it also applies a magical effect to everyone else, too.  Granted, time stop applies a magical effect on the caster - of that, I have no question. But does it also apply a magical effect on everyone else in the multiverse as well?  Why does time stop NOT apply a magical effect on other creatures  Here are the points I've understood for the side that thinks time stop applies only to the caster:   It has a range of Self, meaning that it only applies a magical effect on the caster. There is no spell in D&D that applies an effect to every single creature in the multiverse, except maybe for wish.   Why DOES time stop apply a magical effect on other creatures  Here are the points from the side that thinks time stop applies a magical effect to everyone as well (I'm a member of this camp):   Spells with a range of Self can still apply magical effects to other creatures, such as detect thoughts, dream, magic jar, and spirit guardians. The spell's first sentence says: "You briefly stop the flow of time for everyone but yourself," and that wording seems to directly state that everyone but the caster experiences a magical effect where the flow of time stops for them.   Consequences, implications  There are consequences for choosing one side over the other, which is the motivation for asking this question.  Consequences: Time stop does NOT apply a magical effect to other creatures  Going with the first camp, you can side step the confusion that comes with zones of antimagic and time stop. But, it doesn't strictly follow the wording of the spell by ignoring the sentence "You briefly stop the flow of time for everyone but yourself."  In addition, by claiming that spells with a range of Self do not impose a magical effect on other creatures, that same logic can be applied to, say, magic jar, where a humanoid inside a zone of antimagic can still be possessed because the spell has a range of Self, so it affects only the caster, and therefore the possession of other creatures is not a magical effect of the spell. The same logic can be applied to many other spells with a range of Self, some of which are listed above.  Consequences: Time stop DOES apply a magical effect to other creatures  Going with the second camp, yes, you can more closely follow the spell's text as written. However, you also open the doors to the aforementioned confusion between zones of antimagic and time stop.  If time stop creates a magical effect on every other creature in the multiverse, across planes of existence (which seems to be the valid interpretation of "everyone but yourself" - and take note, this is a 9th level spell on par with wish), then being immune to it in any way (whether you're inside a zone of antimagic, you are immune via the wish spell, or you're one of the gods of the multiverse) will allow you to observe as everyone suddenly freezes in time whenever someone casts time stop.  It also fails to offer a resolution to the linked question, where initiative order between someone inside an antimagic field and a caster of time stop is not well defined.  The Question  With all the above in context, the question is as the title says: does Time Stop apply a magical effect on only the caster, or does it affect everyone else too?


Proof Verification: the orthogonal complement of the column space is the left nullspace

Can someone please check my proof and my definitions.  Let $A \in \mathbb{R}^{n \times m}$ be my matrix.  The left null space of $A$ is written as,  $\mathcal{N}(A^\top) = \{x \in \mathbb{R}^n| A^\top x = 0\}$  The orthogonal complement of the column space $\mathcal{C}(A)$ is written as,  $\mathcal{C}(A)^\perp = \{x \in \mathbb{R}^n | x^\top y = 0, \forall y \in \mathcal{C}(A)\}$     We want to show that $\mathcal{N}(A^\top)  = \mathcal{C}(A)^\perp $   First, we show, $\mathcal{N}(A^\top) \subseteq \mathcal{C}(A)^\perp$  Let $x \in \mathcal{N}(A^\top)$, then $A^\top x = 0 \implies x^\top A = 0^\top \implies x^\top Av= 0^\top v, \forall v \in \mathcal{C}(A) \implies x^\top y = 0 , y = Av$, $\implies x \in C(A)^\perp$.  Next, we show, $\mathcal{N}(A^\top) \supseteq \mathcal{C}(A)^\perp$  Let $x \in C(A)^\perp$, then $x^\top y = 0$, forall $y \in C(A)$. But $y = Av, \forall v \in \mathbb{R}^n$. Hence, $x^\top y = x^\top Av = v^\top A^\top x.$ For all $v \neq 0, A^\top x = 0$, hence $x \in \mathcal{N}(A^\top)$.    I'm pretty confident about the first proof. But the second proof is a bit more rough. Can someone please check for me.


How to prove that linear transformations transforms lines into lines

I want to answer this:  Given $T(x,y)=(ax+by,cx+dy)$ prove that:  T transforms straight lines into straight lines  T transforms parallel lines into parallel lines    I have no clue in how to show this. Any hint would be much appreciated. Thanks!


Why are the Lonely Mountain and the dwarfs not shown in Lord of the Rings?

This has really been bugging me after watching the three Hobbit films and then, even though I had already watched them thousands of times, the Lord of the Rings trilogy (only to get a real insight into what actually happened to Middle Earth as such).  When I watched the Lord of the Rings again, they don't really mention anything about the Lonely Mountain, or about the dwarves and why they didn't help in the battle in Return of the King. They only really spoke about Moria and Balin being killed.  Someone please put my mind at rest and explain why this is.


How can I make a PATCH HTTP Callout from Apex?

I need to make a PATCH http request.  I made the rather incredible discovery today that I can't set an HttpRequest to use the PATCH method, as when sending the request I get a callout exception:     System.CalloutException "Invalid HTTP method: PATCH"   The work around I've found on Stack Exchange and elsewhere is only applicable to a Salesforce Rest API request:    This is therefore not helpful to me as I'm calling out to a third party.  By what manner of magic can I send a PATCH request from Salesforce?  The only work around I can think of is to not do it from Apex - this is not an option.


Remove Stack Exchange mobile app download buttons from emails

Why are the Stack Exchange mobile app download buttons still appearing in emails?  This screenshot:  Confirms that.    posts all say that the Stack Exchange mobile app is no longer supported, and that first one was from eight months ago.  Can we please remove those buttons?  EDIT As pointed out in , the text pointing to the download buttons should also be removed.


What's the relationship between Borel set and set whose boundary is measure zero?

Is a set whose boundary is measure zero a Borel set?  Does any given Borel set has a measure zero boundary?  I want to give my ideas first: If $E \subseteq  R^n $ is some set whose boundary has Lebesgue measure zero, then we can safely do the Riemann integral $\int _E1dx$, which means we can calculate the "volumn" of $E$. Hence I think $E$ is a Borel set.     But how about the inverse arguement?


Java If statement not running inside the while loop

I am trying to parse a CSV file that has the format: name, gender, popularity.I want to count all the females present inside the file but I unable to do so. Here's a sample data from the file : Mary, F, 51479. Here's my code : import java.io.*;  public class CSVFile {     public static void main(String [] args)throws IOException{         String file_name = "xyz.csv";          BufferedReader f = new BufferedReader(new FileReader(file_name));          String line ;          int female_count = 0;          while ((line = f.readLine()) != null){              String [] values = line.split(",");              if (values[1] == "F"){                 female_count += 1;             }         }         System.out.println(female_count);      } }   Can someone please explain it to me that why is my "if" statement not running? Thank You !!


InDesign: How do I automatically align the bottoms of different columns of text boxes to the same height as the one with the most text?

In InDesign, I have some filled text boxes, sized by columns, with the one on the left being three columns wide.   The wide text box is most likely to contain the most text (it's an invoice template).  I will use the 'Fit frame to content' button on the Selection Tool toolbar for automatically vertically resize it to fit the containing text.  How do I make the other three smaller text frames automatically adjust to the same height as the big (and longer) text box?


Define a function $f : \mathbb R \longrightarrow \mathbb R$ by $$f(x)=\begin{cases}e^{-1/x^2}&x\neq 0\\ 0&x=0 \end{cases}$$ Show that $f^{(n)} (0) = 0,$ for all $n \geq 1.$  I can prove that $f'(0) = f''(0) = 0.$ But for larger $n$ how do I show that? I think we have to use induction on $n.$ But I can't able to show that $f^{(n+1)} (0) = 0$ whenever $f^{(n)} (0) = 0.$ I am thinking about applying  here. Is there any clever way to show that? Some suggestion will be boon for me at this stage. Thanks!


I have had hard time to show that     $$G=\left<a,b,c : a^2=b^3=c^5=abc  \right>/\left< abc \right>$$ is a finite group.   I guess that $G=\mathbb{Z}_2*\mathbb{Z}_3*\mathbb{Z}_5$. Even in this situation, it is not clear if it is finite or not. Could anybody help me for this problem?  Thanks in advance!  Edit  :   Apparently, this question has been answered in . However, the answer given in the link used the property of triangle group which is not given in Dummit and Foote algebra. Since the prerequisite of the given problem is the Dummit and Foote's Algebra book, I think there should be another way to solve it. So.. does anybody know how to solve this in different way with the answer of given link?


If a forced runner is tagged for the 3rd out, do any runs count?

Bases loaded with 2 outs. Ball is hit to shortstop. SS tags runner attempting to advance to 3rd. Does the run count from 3rd base


Allow new users to flag comments on their own posts

Something that has always bothered us about the new user experience was the amount of guidance we've got out there telling folks to flag rude or abusive comments, but not allowing new users to do it, because .. . Let's un-complicate it and let new users flag any comment on any post that they own. Or, essentially, if you're allowed to comment on a post, you're allowed to flag comments on that post, too. There are some caveats to get around because:  We gate the feature for a reason, and that reason is it takes a little experience to know how flagging works. We're different, it's just a fact of life. Duplicate close votes leave comments that shouldn't be flagged, which new users will probably want to dispute, and a 'flag' dialog seems like a reasonable place to start to most We're not sure how big of a tide the current restrictions are holding back.  So, here's what we propose: New users see a modified flag UI on comments they can flag: Options:  Rude or abusive This is not a duplicate (as-appropriate) (probably churns back through the close vote queue) Other  But here's the thing, we'd let moderators actually see who flagged in these instances, so moderators could gain context and know what else to look for in the situation. Theorized outcome (isn't theory great? everything works there!) Any of the following would indicate success:  More rude comments surface faster Engagement from new users (going past 1 - 2 questions) goes up Frequency of people contacting us to report snark they could have easily flagged if they had a bit of rep goes down  Any of the following would indicate more work is needed, or possibly a general failing of the idea:  Moderators note an increase in noise they can't really act on from 'other' flags Engagement goes down Nothing really happens, at all  The third item in the second list is actually a distinct possibility, because the flag feature is (as it stands) a little difficult to find. We'll be making it more obvious in the future, as well as mentioning it when we launch our revised code of conduct for new users to accept, but there's a strong chance new users just won't notice the feature. We're thinking about putting this out for testing soon and wanted to get any feedback folks might have. This isn't a permanent implementation (yet), but we really do need to let new users raise flags if they encounter snark / condescension / overt rudeness - we've found too many instances of it that just evaded other folks with privileges seeing and flagging it. Thoughts? What we hadn't thought of yet are rate limits, and probably a few other things. Shog is working on some research and I suspect he'll post a pretty comprehensive reply, but we want your take early so we know much sooner than later if we're not seeing obvious problems.


"Software can't be installed or removed because the authentication service is not available. "

I have 12.10 ubuntu and when I try to remove / install programs I get notification :      Software can't be installed or removed because the authentication service is not available.    (org.freedesktop.PolicyKit.Error.Failed: ('system-bus-name', {'name':  ':1.104'}): org.debian.apt.install-or-remove-packages   When I log in as root user (instead of user account that I regulary use) i have no problems.


group dictionary by values, return key and value list pair

Considering a dictionary with several recurring values. How to group the dictionary by value? For example:  mydict =  {     'germany': 'europe',      'france': 'europe',     'canada': 'north america',      'latvia': 'europe'     'usa': 'north america',     'china': 'asia' }   Group by value into list.  groupdDict = {     'europe': ['germany','france','latvia'],     'north america': ['canada','usa'],     'asia': ['china'] }


What is the best lens for kitesurfing photography?  A similar question was asked before, but I need a bit more clarity if possible.  I'm hesitating between the Canon 500mm f4 II vs Canon 400mm f2.8 or Canon 200-400 with 1.4x  I have a 5D Mark iv (and a 6D body as well).  I have the 70-200 f2.8, which is a great lens that I use for indoor sports, but I feel the need for longer reach to photograph kitesurfing from the beach. I also used the 70-300 that has a bit more reach but IQ seems far below the 70-200. Finally, in terms of my current gear I just ordered the Canon 100-400L II and also a 1.4x teleconverter to get some of that reach and flexibility   My doubts are for kitesurfing. I believe I need the reach, the aperture is important but I tend to shoot with good light. I wonder about the need for the flexibility of the zoom (hence my adding into the mix the 200-400 1.4x TC)  The 500mm f4 II has the focal length, IQ, not too heavy (compared with the 600mm, the 400mm 2.8 or the 200-400) and reasonably fast. It does not have the widest aperture of 2.8, nor the zoom flexibility  The 400mm f2.8 seems to be the lens for sports. However for indoor sports I use the 70-200 f2.8, but for outdoors and in particular for kitesurfing with reasonable light I wonder if that aperture is really a must  The 200-400 f4 1.4x seems great for the flexibility in focal length at a decent IQ. Having ordered the 100-400 II may provide me that flexibility (although losing IQ)   What's the experience of kitesurfing photographers, do you need the zoom flexibility? Do you value the focal length more? What would you recommend?  The other possibility for reach is getting a new body 7D mark ii (although it may be an overkill for camera bodies) to take advantage of the cropped sensor, but I fear I may lose out on IQ vs the FF that I could crop in post if need be.  Thanks!


Set dynamic value to Array in JS like PHP

My question is how I will set a value an array in JS like PHP? for example: in php I have an array named Arr, I set a new value in n position using  Arr[] = value   but I try to do same in JS but display an error


In the Aliens movie, what do the Xenomorphs eat?

In the movies  and , what do the aliens eat? You would think they first feed from the body host, but then when the human host awakens he doesn't have anything visibly wrong, so the human host was used only to incubate the young alien. When they get out of the body they keep growing but when they encounter humans, they don't eat them, they just kill them or use them as new hosts.  So, what do they eat? How can they grow that tall?


error using mv to rename files in shell script

I am trying to rename all files in a directory using mv but it isn't working. My code is:  id= '29 10 15' for zzvar in ${id} ; do   mv /media/storage/DTI/vgcross_sj${var}* /media/storage/DTI/vgcross_SJ${var}* done   Even when I take the loop out and just try the command with one subject, I get the error:  mv: target:/media/storage/DTI/vgcross_SJ  is not a directory.   Obviously it's not a directory, because that's what I'm trying to rename the file as!  Do you have any ideas as to why it's not working?


Is Abraham-Lorentz Force problem still unresolved?

Is  problem still unresolved? I've heard from my electrodynamics class that solving the equation of motion with Abraham-Lorentz term causes either pre-acceleration or runaway solution. Have we found a way to obtain a solution that is neither pre-accelerating nor run away?


When I visit sites like physics.stackexchange and math.stackexchange, instead of seeing the latex that I am used to, I see the dollar signs as though it hasn't compiled. This has just started recently and I am not sure why. Has this happened to anyone else? How can I fix this?


What will happen to a man if he hangs from the power cable of train using one hand and secondly using two hands?

If a man holds and hangs from the power cable of trains with one hand, will he be alive or will he die if he holds and hangs from the electric wire using two hands without touching the ground ? I think in the first case he will survive as electric current does not pass through him if he holds it with one hand. But in the second case current passes through him if he holds it with two hands and he may not survive. But is the second case right ?


Three hours ( or three thousand pounds ) is or are?

When can three hours or three thousand pounds be considered singular and plural ?  e.g. Three hours ( is - are ) a long period to wait for you.  e.g. Three thousand pounds ( was - were ) collected for charity last week.


Why does $\sum_{n=0}^\infty (\sin{\frac{1}{n}})(\sinh{\frac{1}{n}})(\cos n)$ converge

$$\sum_{n=1}^\infty (\sin{\frac{1}{n}})(\sinh{\frac{1}{n}})(\cos n)$$  I tried this  $(\sin{\frac{1}{n}})(\sinh{\frac{1}{n}})(\cos n)\le \sinh{\frac{1}{n}}$ and then i want to prove that $\sinh{\frac{1}{n}}$ converges. I am kind of stuck at this point.


The usage of article 'an' in the following case

It is common to use     1a an historical event      2a an hotel   rather than     1b a historical event      2b a hotel   Why 'an' is used in such case?


JPG processor Java code throws a nullpointer exception

I'm able to import a JPG file, but every time I run my program to output the image it gives this exception :  Exception in thread "main" java.lang.NullPointerException at InvertImage.main(InvertImage.java:24)   Don't know why, here my code:  import java.awt.image.BufferedImage; import javax.imageio.ImageIO;   import java.io.File; import java.io.IOException;  public class InvertImage{     public static void main(String args[])throws IOException{         BufferedImage img = null;         File imgFile = null;          try {             imgFile = new File("Cake.jpg");             img = ImageIO.read(imgFile);         } catch(IOException e){             System.out.println(e);         }          int width = img.getWidth();         int height = img.getHeight();           for(int y = 0; y < height; y++){             for(int x = 0; x < width; x++){                 int pixel = img.getRGB(x, y);                   int a = (pixel >> 24) & 0xff;                 int r = (pixel >> 16) & 0xff;                 int g = (pixel >> 8) & 0xff;                 int b = pixel & 0xff;                  r = 255 - r;                 g = 255 - g;                 b = 255 - b;                  //set new RGB values                 pixel = (a << 24) | ( r << 16) | ( g << 8) | b;                  img.setRGB(x, y, pixel);             }         }          try{             imgFile = new File("Cake_invert.jpg")             ImageIO.write(img, "jpg", imgFile);         }catch(IOException e){             System.out.println(e);         }     } }   Don't know what I'm missing here, just need to output a jpg file once my program finish running.


Rewriting Triple Integral in different order

How can I rewrite, say: $$\int^1_0\int^{z^2}_0\int^y_0{f}dxdydz$$ In the orders $dzdxdy$ and $dydzdx$?  Would I have to solve this triple integral all the way or is there a simple way to do this?


How to re-enable Java plugin on Google Chrome 42 on Windows

As stated in :     In April 2015 (Chrome 42) NPAPI support will be disabled by default in   Chrome and we will unpublish extensions requiring NPAPI plugins from   the Chrome Web Store. All NPAPI plugins will appear as if they are not   installed, as they will not appear in the navigator.plugins list nor   will they be instantiated (even as a placeholder). Although plugin   vendors are working hard to move to alternate technologies, a small   number of users still rely on plugins that haven’t completed the   transition yet. We will provide an override for advanced users (via   chrome://flags/#enable-npapi) and enterprises (via Enterprise Policy)   to temporarily re-enable NPAPI (via the page action UI) while they   wait for mission-critical plugins to make the transition. In addition,   setting any of the plugin Enterprise policies (e.g. EnabledPlugins,   PluginsAllowedForUrls) will temporarily re-enable NPAPI.   So, April came and Google Chrome disabled NPAPI plugins, including Java.  How to re-enable them on Windows machines?


I am trying to install the fSpy add-on for Blender. I've downloaded it as a .zip file and went to user preferences to install it. However, it does not show up in any list of add-ons in user prefs.   When I checked the console it repeatedly shows the following:  Modules Installed () from '/Users/lihechen/Downloads/All Files/Plugins/Blender/fSpy-Blender-master.zip' into '/Users/lihechen/Library/Application Support/Blender/2.81/scripts/addons'   But nothing shows up. Can anyone please help? I'm using Blender 2.81


This problem arose while tallying votes in a poll and displaying the results as a whole number percentage. So if "Option A" received $300$ votes and "Option B" received $100$, the display should read "$75\%$, $25\%$".  There is a requirement that the integer percentages must add up to $100\%$. Which means that rounding up one percentage will cause the other to round down.  How should the following percentages be rounded?   $20.5\%$ & $79.5\%$ (which one rounds up?) $49.5\%$ & $50.5\%$ (equal or not?) $0.5\%$ & $99.5\%$ (is $0.5\%$ statistically significant?)   I tend to feel that the small numbers should be given more priority (so $0.5\%$ rounds up to $1$, while the $1\%$ difference in the $49.5$/$50.5$ split gets increased to $2\%$ giving $49$/$51$).  Is there any "one rule to round them all"?


How to turn off screen rotation in Ubuntu 18.04 LTS?

In Ubuntu 17.04 there was 'Rotation' menu in Display tab. But now in new version of Ubuntu, there's still a Display tab but no more rotation menu. Now I can't turn that off again since I upgraded to 18.04 LTS.


How to set programmatically multiple arguments for views contextual filters?  I can do it with one argument, it works great, but not with multiple arguments.  I want to select all nodes created by a list of people, but views only takes first in array into consideration:  $array = array(3250,32); $view = views_get_view('myview'); $view->set_display("myblock"); $view->set_arguments($array); $view->pre_execute(); $view->execute(); $content = $view->render();    Am I doing something wrong?


Let $X = \{1, 2, 3, \ldots , 25\}$. If a student selects a function randomly from the set of all functions from $X$ onto $X$, then what is the probability that the selected function maps prime numbers to prime numbers?


Summing data from column in the Attribute table

I'm working with population data, and I have an issue when it comes to knowing the sum of a population inside the attribute table.  In my attribute table, I'd like to add all the numbers in the red box, i.e. all the numbers together from the column "UN_2015_E". Is there a way to do so?


I can't install the android-app, according to Google play it isn't compatible with my Galaxy Ace DUOS  currently running Android 2.3.6. What are the exact requirements for the app? Google play only states version 1.6 as a requirement.


How can i overlay an 10x10px image on top of another image?

I have a user avatar on my website. Simple image tag:     Now, i want to float an image (Facebook Icon - 10x10px) over this image on the top left corner of the image.  This is to signify that the user is authenticated to Facebook.  How can i do this? CSS styling on the image tag, or will i have to have a seperate div with absolute positioning?  Doesn't need to be transparent or anything, just needs to be positioned exactly in the top-left corner.  Of course i cant just physically modify the image, as i need to determine whether to overlay the image dynamically based on the Facebook status. But i was hoping to dynamically add a css class.  Any ideas?  ANSWER:  Got it working with a combination of both answers. Used a div instead of another image.  HTML:

   CSS:  .foo {    position: absolute;    top: 0;    right: 0; }  .fboverlay {     background-image: url('/image/facebook/logo.gif');     position: absolute;     z-index: 1;     top: 10px;     left: 10px;     width: 10px;     height: 10px; }   Thanks for the help.


How do I mirror my MacBook onto my iMac?

I have a 2019 13-inch MacBook Pro with 2 Thunderbolt 3 ports and an 21.5-inch Late 2009 iMac. The MacBook is operating on Big Sur (11.4), and the iMac is operating on High Sierra (10.13.6). Is it possible to mirror my MacBook onto my iMac, despite the difference in OS? I currently have a Thunderbolt 2 to USB-C cable, if that helps.


I would like to to create the image above. I have tried to make multiples layers of the waves and edit it's opacity but it does not seem to work. I would really appreciate some feedback and guidance. Thank you.


Traveling to Spain as tourist before entering France on type D visa

I have a quick question that I have seen a variation of before but nothing that is similar to my situation (from what I have seen). I was issued a Type D multi-entry visa from France my study abroad program this fall that is multi-entry. When I applied for the visa I told VFS global that I was going to be going to Spain before on vacation and then heading to France for my program. They never mentioned that I would need to exit Schengen before I go to France for my study abroad program, but then I came across this forum and I see some people saying that you have to exit before I go to my program and I am seeing some saying that I can just go straight to France from my program. Also I am a US citizen so I am allowed to be a tourist without a visa.I did contact the consulate in my country by email but all they responded with was a very obvious copy and paste from a website answer where they did not respond to my question at all but only said that after I travel as a tourist up to 90 days and then  "I can exit and re-enter on my french student visa"(which I am only going to be in Spain for a month)  So my main two questions are:   Do I need to exit Schengen before I fly to France for my program (I will be in Barcelona with my family and have no plans of going to france before the start of my program) If my program begins the 31st and my visa is issues starting August 10th, will it be an issue that I don't fly to France until the 31st?   !!UPDATE!!:  Okay, so I called VFS because the closest consulate to me told me to call them about my question. VFS stated that as long as I am not a tourist for more than 90 days (I am one for technically 6 days because my visa starts a few days after I arrive in Spain) and there isn't a gap between the dates I am a tourist (for 90 days) and the start date of my visa in France then I DO NOT need to leave the Schengen. He explained to me that my visa automatically starts on the start date of my visa. France will see that I am within the dates of my visa (I go 3 weeks after the start date of my visa because that's when my program starts) and stamp my passport.    So it seems like all the other advice given on similar questions about going from a tourist to a vias holder is correct!


As picture below, I want to explain why the bottom of spring will be motionless a little while after release.  But in my view, the bottom of spring will be falling in a low speed after release, since the spring will become short after release, so the gravity will be greater than elasticity in the bottom, so the bottom will fall. But in picture below, seemly, the bottom of spring is motionless. How to explain it?


Understanding directory symlinks traversals and the parent directory

Let's say you have directories /dir1 and /dir2/linked, where the latter is a symlink to the former.   When you cd to linked and pwd, you get the output /dir2/linked. If you then cd .., you'll be put on /dir2. This behaviour is consistent with the concept of you being in /dir2/linked before. However, as I understand it, the parent directory (..) of any directory is stored in the directory inode (i.e.:physically in the disk). Obviously,  since /dir2/linked is really /dir1, the parent directory on the inode must be /  To further complicate matters, while inside /dir2/linked, the outputs of ls .. and cd .. ; ls . are different! It seems like cd honors the symlinked path, while ls honors the "physical" path. As mentioned in , there's cd -P for this use case, though.  man pwd mentions "physical" and "logical" working directories, but I still have a few questions at this point:   Is this behaviour always provided by the PWD environment variable, as mentioned in man pwd? Why do default cd and ls have different behaviours, if they're both shell commands (i.e.: not programs)? Does the typical program (not shell command) use PWD instead of the physical path? I realize it's up to the implementation, but is there any rule of thumb?


If matrix $AB=A$, does it mean B must be an identity matrix?

If matrix multiplication $AB=A$, does it mean $B$ must be an identity matrix? If not, why? What conditions?  $A$ is not a zero matrix.


Integrate $\int_{0}^{\infty} \frac{\sin(t)}{e^t-1} dt$

I would like to get a hint how to integrate following function:  $$\int_{0}^{\infty} \frac{\sin(t)}{e^t-1} dt$$  I guess i have to multiply or add some constant t somewhere, then differentiate the "inner" term for d/dt and then smartly substitute to get an answer which should (i guess again) have the form of sin and exp. And in the last step I would have to get the right value for t, to get back to the original integral.  The following task would be to show the equality of $ \int_{0}^{\infty} \frac{\sin(t)}{e^t-1} dt = \sum_{n=1}^{\infty} \frac{1}{1+n^2}$. That's why I think the solution is some representation of sin and exp. With a representation of the integral in sin and exp terms, this part would get easy.  Greetings


What is the output of running cat swapfile?

Why when I run sudo cat swapfile I get a bunch of unknown characters. What do these characters mean? Plus my keyboard then types these unknown characters. As a side note this is an active swap file. A little snippet of these characters can be seen as:   ����� @�p9�f��SWAPSPACE2


Possible to specify the GUID when adding a List to a SPListCollection?

I found  which goes over how to add a list, but it doesn't seem possible to specify a GUID if you use this method.  Is there any way to create a list and specify the GUID?  I am trying to recreate several lists on a different server and if they do not have the same GUIDs other functionality may break.


What really is the meaning of condescending?

What does condescending really mean? So far all the dictionaries do not actually give a single good illustration that shows the behaviour of being condescending.


Consider an urn containing $n$ balls numbered $1,2,3\dots n$. $k$ balls are picked from this urn,one by one, with replacement, what is the probability of obtaining a non decreasing sequence?  I figured out that after picking the first ball, all the balls before the ball that was picked first will be ‘removed’ because we can’t pick any of those balls if we want a non decreasing sequence, but this is as far as i got, can someone help me out.


Understanding the Details of the Construction of the Tensor Product

This is essentially a follow-up on this question . Specifically, I'm studying the construction of the tensor product of two vector spaces as indicated by the OP's 2nd definition. Namely, that the tensor product of two vector spaces $V$ and $W$ is the quotient space $V \times W / E$ where $E$ is the subspace of $V \times W$ generated by linear combinations of the form  $$ (v_1 + v_2, w) - (v_1, w) - (v_2, w) $$ $$ (v, w_1 + w_2) - (v, w_1) - (v, w_2) $$ $$ (av, w) - a(v,w) $$ $$ (v,aw) - a(v,w) $$  We also denote an element of this quotient space by $v \otimes w$. Now, I'm trying to understand precisely why it follows from this construction that, for example, $(v_1 + v_2) \otimes w = v_1 \otimes w + v_2 \otimes w$. I believe it follows from the following argument:  First, we note that   $$ (v_1 + v_2, w) - (v_1, w) - (v_2, w) = (v_1 + v_2, w) - ((v_1, w) + (v_2, w)) $$  By definition of what it means to be a quotient space, this last equation means that  $$ [ (v_1 + v_2, w)] = [(v_1, w) + (v_2, w)] $$  where $[ \cdot ]$ denotes the induced equivalence class. But, according to the definition of the $\otimes$ operator, we can express this equality as  $$ (v_1 + v_2) \otimes w = v_1 \otimes w + v_2 \otimes w $$  Is this argument valid and is this the appropriate way to think about these things?


What do you call it when someone says they’re not going to mention a thing?

Is there a name for the sort of expression where someone would say something like... “I’m not going to mention the ridiculous hat they’re wearing.” Or “I could make a joke about footballers diving around on the floor after smaller incidents, but I won’t.” By saying they’re not going to mention a topic they have mentioned the topic. It’s used fairly often so I was wondering if there is a word or name for this kind of phrase?


ubuntu update error show after the half update

Aborted (core dumped) Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi' E: Sub-process returned an error code


Asp.Net KeyValuePair does not contain definition or extension

I've created a web app where you can leave recommendations for a person, a person can have multiple recommendations, and got to the point where I'd like to view all recommendations for a particular Person. Once I click on the link to view the recommendations I get an error saying :      'KeyValuePair <`string, Recommendation> does not contain a definition for 'Recommendations' and no extension method 'Recommendations' accepting a first argument of type 'KeyValuePair' could be found.    Here's some of my code, hopefully someone can help me resolve this issue I've been stuck on for hours.   Recommendation Controller   using Lab3Models.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc;  namespace Lab3Models.Controllers {     public class RecommendationController : Controller     {         private static IDictionary<string, Person> _people = null;                  ....          public ActionResult Show(string id)         {             if (Session["people"] != null)             {                 _people = (Dictionary<string, Person>)Session["people"];             }             else             {               _people = new Dictionary<string, Person>();                 Session["people"] = _people;             }             if (!_people.ContainsKey(id))             {                 return HttpNotFound("Sorry, but can't find id: " + id);             }             return View(_people[id]);             }     } }    Person & Recommendation Models    public class Person     {         public string Id { get; set; }         public string FirstName { get; set; }         public string MiddleName { get; set; }         public string LastName { get; set; }         public ICollection<Recommendation> Recommendations { get; set; }          public Person()         {             Recommendations = new List<Recommendation>();         }     }   public class Recommendation     {          public string Id { get; set; }         public int Rating { get; set; }         public string Narrative { get; set; }         public string RecommenderName { get; set; }         public Person ThePerson { get; set; }     }     Show View    @model IDictionary<string, Lab3Models.Models.Recommendation>
@ViewBag.Title

                      Id         	                      Rating         	                      Narrative         	                      Recommender's Name
                   @foreach (var item in Model)     {         foreach (var rec in item.Recommendations)         {
                                      @item.Value.Id                 	                                      @item.Value.Rating                 	                                      @item.Value.Narrative                 	                                      @item.Value.RecommenderName
         }     }
     Please, any help would be great.   EDIT Iterating over a dictionary isn't my problem though, I've iterated through my person dictionary already to display all people I've added to the list. My problem is showing the list of recommendations for a particular person from the original person dictionary.


Does gravity (and all other fundamental forces, for that matter) have infinite energy as they seemingly last forever?

If I put a brick onto an steel platform, that platform can hold the brick A LONG TIME, if not FOREVER. Does the platform exert force? If so, then shouldn't it have infinite energy to resist the pull of gravity? If not, shouldn't it hold at least an ENORMOUS amount of energy to support the brick? And if the platform does NOT exert energy, then what is holding the brick back from plummeting to the earth?  Thanks guys! :)  EDIT: Come to think of it, the platform is held together by the electromagnetic force. But I still wonder whether or not gravity and the other fundamental forces have infinite energy or not.


Installing Mavericks on a brand new machine that shipped with Yosemite pre-installed?

Due to battery backups not working properly in Yosemite, I need to downgrade a machine to Mavericks. Unfortunately, this is a brand new Mac Mini and it shipped with OS X 10.10.0 installed.   I read various questions here, as well as some articles from other websites, and created a Mavericks 10.9.5 installer on a USB stick. I can boot from this USB stick on an iMac we have here, but the Mac Mini will not allow me to.   Is it even possible to run Mavericks on this machine--Macmini7,1?


Possible Duplicate:          I want to Favorite Users.  There are several users whose questions I always enjoy reading.  I would like to be able to Favorite them so I don't have to remember their usernames.


Suppose $z_1$, $z_2$ and $z_3$ are distinct points in $\hat{\mathbb {C}}$ . Show that $z$ is on the circle passing through $z_1$, $z_2$ and $z_3$ if and only if [$z$, $z_1$, $z_2$, $z_3$] is real or ∞.


How to theme webform elements (radio buttons etc.)?

I would like to know how to theme Drupal 7  elements? I want to change the HTML structure of every element, not just wrap form with div or something like that. And I want to leave theme's elements as they were.  EDIT: I would like to add class to label and input type radio button.


How is this c++ code with default parameters can be compiled?

Here is a simple example program which demonstrates what I want to asking for:  class A { public:     int writemem(FilInfo* file, IN BYTE* mem, IN DWORD memSize, BYTE obfs=0, BOOL bEnc=TRUE); };  void main() { ...     (this->writemem(file, mem, memSize), obfs); // does not print compilation error! ... }   How is the above code compilable? Compiling the above program was successful although it does not work what I intended. I am working on Windows 8.1 with VisualStudio SDK 7.1.


how to pass a javascript variable to a java servlet?

I want to pass a javascript variable to a java servlet. I am developing a web application. This is my html code:
Some text
   And this is what i write in the javascript file:  var myVar = document.getElementById('test').innerText;  $.ajax({     url: 'Test',     data: {         myPostVar: myVar     },     type: 'POST' });   And then this in the servlet (in the doGet):  String result = request.getParameter("myPostVar"); System.out.print(result);   And if i run the Test.java to test, it gives me "null". I googled too much but could not find any solution.


What to put in "affiliation" field when submitting paper without affiliation?

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


In SSB4, there is a challenge where the game wants you to get a combo of 100. Is there any way to  get combo tht high?


My teacher said "I am going to have a walk" today in class and to me it seems incorrect. Correct variants that I know are:    Going for a walk Going to take a walk Going to walk  ...   Is this correct? If so, why?


I have string like 10000005 (and it is hex) and i want to make uint hex value like: 0x10000005  How can i do this?  Example:  string hexStr="10000005" uint hex= //???  (0x10000005);   P.S. I need that hex should be : 0x10000005


Change terminal or terminator profile via keybinding or echo command

How can I change profile for terminator or terminal without touching the mouse?   in terminal alt-t will allow me to get to menu to change profile echo -en "\033]0;$*\a"   will allow me to set title from terminal   I'd like to have aliases called "red", "green" etc that allow me to easily change terminal profile so I can more easily distinguish between the many terminals on which I'm doing work.  Does anyone know how to change profile via an echo or keybinding.  It doesn't look like it is supported.  Thanks


How to reset KDE desktop to default on Ubuntu 14.04?

KDE and Gnome Desktops were looking awesome on my Ubuntu 14.04 LTS, today everything seemed ugly. Slim long font, arabic letters in Chromium/Firefox are barely readable no matter how big I made them on system font settings. How can I get back to my previous looks settings, without compromising other settings and tweaks?  Here are my versions:  kde4-config -v:  Qt: 4.8.6 KDE Development Platform: 4.13.3 kde4-config: 1.0   kded4 --version:  Qt: 4.8.6 KDE Development Platform: 4.13.3 KDE Daemon: 4.13.3


How to explain in layman’s terms the significance of the difference of qubits of the D-Wave and IBM QX?

So, @AndrewO mentioned recently that he has had 'encounters' with people wondering why D-Wave has a lot more qubits than IBM. Of course, this comparison is faulty, since the IBM and D-Wave's machine may both exploit quantum effects to a certain degree, IBM's machine matches the thing the TCS people call a 'Quantum computer' a bit more than D-Waves's alleged quantum annealer.   How do you explain to a novice why IBM is still reaching important milesstones, even though the D-Wave has a lot more 'qubits'. I understand that an easy answer is, 'well, you're comparing apples and pears', but that is merely relying on your possible authority and simply doesn't explain anything!   How can you explain that those devices are different, how can you dispell the myth that the number of qubits is not the only metric to judge quantum devices? (preferably to a layman, but assuming basic (undergrad?) physics knowledge is ok, if needed)


Expected value of visits in a state of a discrete Markov chain

Let   $X=(X_n)_{n\in\mathbb N_0}$ be a Markov chain with values in a at most countable Polish space $E$ and $\mathcal E$ be the Borel $\sigma$-algebra on $E$ $(\operatorname P_x)_{x\in E}$ be the distributions of $X$ $N(y)=\sum_{n\in\mathbb N_0}1_{\left\{X_n=y\right\}}$ be the number of visits of $X$ in $y\in E$    Clearly, $$\operatorname E_x[N(y)]=\sum_{n\in\mathbb N_0}\operatorname P_x[X_n=y]\;.$$  I've read that it holds $$\operatorname E_x[N(y)]=\sum_{k\in\mathbb N}\operatorname P_x[N(y)\ge k]\;,$$ but I don't understand why this is true. Is it a typo and what's really meant is "=" instead of "\ge"?


How to subtract string hexadecimal values from dictionaries?

There are two dictionaries (d1 and d2) formed after combining list values. I have to subtract the values (d2-d1) and print the dictionary. d1 = {'Rash': '80000000', 'Kil': '80000020', 'Varsha': '80000020', 'sam': '80010000'}   d2 = {'Varsha': '8000ffe0', 'sam': '80014000', 'Kil': '8000ffe0', 'Rash': '801fffff'}    d3 = {key: d2[key] - d1.get(key, 0) for key in d2}   print(d3)  This is not working as it is giving type error:  TypeError: unsupported operand type(s) for -: 'str' and 'str'


Difference between \textwidth, \linewidth and \hsize

The three lengths \textwidth, \linewidth and \hsize seem to all hold the width of the current line. At least I never saw some real difference between \textwidth and \linewidth in my code. Both seem to be identical even when changed, e.g. by a minipage environment.  Could someone give me an elaborate explanation of the differences between these lengths? I like to understand them in detail. I know that the first two are from LaTeX and the latter one from plainTeX.  There is also \columnwidth which seems to be identical to \linewidth or \textwidth in one-column mode, right? Except when the line is reduced by a minipage or quote etc. environment.


How to enable autologin on Lubuntu 16.04 LTS (LightDM)

There are many instructions on how to enable autologin on various Ubuntu-based distros. However, I couldn't find a solution explicitly for Lubuntu 16.04 LTS with LightDM.


I have seen this question asked but never with a suitable answer for what I need  I work doing remote tech support on computer systems and one of the things I frequently need to do is open ini files and replace certain lines with a new one  as an example we will say.  program.ini   program status = client  Well I would need to change that to server so it reads  program status = server  While yes I can open it in notepad I want to be able to do this via command line in a batch file as I already have a batch tool I have created for everything else I do.  Now, note that not every computer supports powershell scripts so this has to be just in the one batch file. I can not download any additional software as these are not my systems I am connecting to.  Anyone know how this would be done purely via batch as I am at a loss. Not looking to open an editor via command line, just a straight up run it and that line is changed in the ini file.  Thanks for any input -Terra


How to fix javascript float rounding errors for large numbers

I'm trying to write a function that calculates and displays cryptocurrency values with subtracted fees (-0.10000000 in the example for simplicity).  But I can't get it to display correct values for large numbers (and as this is about currency, correct values are somewhat important)...  Please see this fiddle  to see the problem.  my first idea was  $('#result').text(amount ? (amount + fees).toFixed(8) > 0 ? (amount + fees).toFixed(8) : 0 : 0)   but that yields the following results:  10000000.55555555 // 10000000.45555555  (correct) 100000000.55555555 // 100000000.45555556 (off by .00000001) 1000000000.55555555 // this time the INPUT div shows 1000000000.55555558 10000000000.55555555 // input shows 10000000000.55555534, result shows 10000000000.45555496   so there's obviously something wrong there... so then i thought "ok, i know javascript is strange with floats and i've always heard it's better to convert to int, calculate, then convert back to float".  so i tried   $('#result').text(amount ? (amount + fees).toFixed(8) > 0 ? (((amount + fees) * 100000000) / 100000000) : 0 : 0)   with following results:  10000000.55555555 // 10000000.45555555 (correct) 100000000.55555555 // 100000000.45555556 (same as above, so there's a pattern here) 1000000000.55555555 // 1000000000.55555558 / 1000000000.4555556 (yup, same values as above) 10000000000.55555555 // 10000000000.55555534 / 10000000000.455555 (now it's getting weird) ... 100000000000000.55555555 // shows 100000000000000.56250000 as input and 100000000000000.47 as result...   So I am obviously doing something wrong.. How can i make the function calculate the result CORRECTLY (with 8 decimals) and what am I doing wrong in my two attempts?  thank you very much :)  edit  yeah.. i know (as i wrote in my question) that float math is broken. but my question is how i can correctly convert/etc the numbers to get the correct result, and what is wrong about the way i tried to do it


How can I add HTML tags into menu title?  I'm also tryed the following code.   function adminimal_theme_preprocess_menu(&$vars) {   if ($vars['menu_name'] === 'main') {     $vars['items']['standard.front_page']['title']='<i class="icon-home"></i>';   } }   It also converts tags into HTML entities.