A set of sentences true under an arbitrarily large finite models, then it is true under some infinite model

Here is what I want to prove     $\Sigma$ a set of sentences such that there are arbitrarily large finite models in which $\Sigma$ is true. Prove that $\Sigma$ is true in some infinite model.   Here is my attempt:  Let $A$ be the domain of model $\mathfrak{A}$. Let $|A|=n$ be the size of $\mathfrak{A}$. If $n=0$, then $A=\emptyset$ and we have no variable assignment to talk about. Given $n$, consider sentence $\mathcal{T}$ such that          \begin{align*}    &\mathcal{T}:=\forall x_1\forall x_2\dots\forall x_n(\wedge_{j=1}^{n}\wedge_{i=1}^{n}(x_i\neq x_j))\text{ }\text{ when $n>1$}\\    &\mathcal{T}:=\forall x_1 x_1=x_1\text{ }\text{ when $n=1$}   \end{align*}         where $\wedge_{j=1}^{n+1}\wedge_{i=1}^{n}(x_i\neq x_j)=(x_1\neq x_2)\wedge (x_1\neq x_3)\wedge\dots\wedge (x_1\neq x_{n})\wedge (x_2\neq x_1)\wedge\dots$  If $n=1$, then any model with a smaller size is empty. And for any model with at least size $n$, since $x_1=x_1$ is true under any variable assignments, hence $\mathcal{T}$ is true in these models.  For $n>1$, if size of $\mathfrak{B}$ is less than $n$, then there must be at least one pair of identical elements in $\{b_1,\dots, b_{n}\}\subseteq B$ by Pigeonhole principle. Hence for any variable assignment $s$, if $s'\equiv s$ except $s'(x_i)=b_i$ $\forall 1\leq i\leq n$, then $s'(x_{i})=b_i= b_j=s'(x_{j})$ for some $1\leq i\neq j\leq n$. Hence $\mathcal{T}$ is never true in these model. If size of $\mathfrak{B}$ is at least $n$, then we can choose $\{b_1,\dots, b_{n}\}\subseteq B$ be pairwise distinct so that for any variable assignment $s$, if $s'\equiv s$ except $s'(x_i)=b_i$ $\forall 1\leq i\leq n$, then $s'(x_{i})=b_i\neq b_j=s'(x_{j})$ for all $1\leq i\neq j\leq n$, i.e. $\mathcal{T}$ is true under $s$ in $\mathfrak{B}$.   Now for each $n$, we get a sentence $\mathcal{T}$ that is true in all and only those models that have size $\geq n$. Let $\Sigma$ be a set of $\mathcal{T}$ for all $n$. Hence any finite subset of $\Sigma$ is true under some infinite model, so satisfiable. By Compactness, we know if every finite subset of a set of sentences is satisfiable then, the whole set is satisfiable, so we done.  My questions: Since $\Sigma$ is true under some arbitrarily large finite models, so I assume that for each $n$, every sentence in it is true in all model with size greater than $n$. However, I specifically choose my sentences to construct the $\Sigma$ instead of consider case in general. So am I wrong? And what will be a sentence look like in general such that given $n$, it is true in all and only those models that have size $\geq n$. Thanks in advance.  ==============update======================  Thanks @Asaf Karagila for pointing out the mistakes on the quantifier. $\mathcal{T}$ should be $\exists x_1\exists x_2\dots\exists x_n(\wedge_{j=1}^{n}\wedge_{i=1}^{n}(x_i\neq x_j))\text{ }\text{ when $n>1$}$. And the rest follow. And as mentioned by @Alex Kruckman, my question is a duplicate of a question asked by @MrTopology. I follow his idea to finish the problem in general case  Now for each $n$, we get a sentence $\mathcal{T}$ that is true in all and only those models that have size $\geq n$. Let $\Sigma^*$ be collection of  $\mathcal{T}$ for all $n$. Hence $\Sigma^*$ is true in infinite model. Let $\overline{\Sigma}=\Sigma^*\bigcup\Sigma$. As $\Sigma$ is a set of sentences such that there are arbitrarily large finite models in which it is true, any finite subset of $\overline{\Sigma}$ is true under some finite model, so satisfiable. By Compactness, we know if every finite subset of a set of sentences is satisfiable then, the whole set is satisfiable, so $\overline{\Sigma}$ satisfiable. Since $\Sigma^*$ is true only in some infinite model under construction, hence $\overline{\Sigma}$ is true in some infinite model, then so is $\Sigma$


Why is part of my model not being rendered?

Why is the selected object displaying in the 3D view, but not rendering?  In object mode, it shows up:   However, it does not show up in render mode:   Why is this so and what causes it to hide in render mode?


How to type the tilde character that is not in my keyboard layout?

I'm using Windows 7 system with an Italian keyboard layout    As you can see this layout miss the tilde ~ character and the backtick character. Btw backtick is not so important because I can emulate it in bash script using $( and ). The problem is that every time I need the tilde I have to hold Alt and type 1 2 6 (i.e. its ASCII code), it's boring! And I need it not only in CygWin, but also in GNU R, in eclipse, and much more.  Have you have had this problem with an not-US layout? Is there any fastest way to type the tilde?


My caption is not centered under the two subfigures. Compile able code and data file is attached. Kindly help  \documentclass[conference]{IEEEtran} \ifCLASSINFOpdf \else \fi \hyphenation{op-tical net-works semi-conduc-tor} \usepackage[pdftex]{graphics} \usepackage{pgfplots} \usepackage{subcaption} \usepackage{pgfplotstable} \usepackage[justification=centering]{caption} \usepgfplotslibrary{patchplots} \pgfplotsset{compat=1.7} \begin{document} \begin{center} \begin{figure} \centering     \begin{subfigure}{.1\linewidth} \begin{tikzpicture} \begin{axis}[     ylabel=Satisfied Requests,     xlabel=Requests,     height=5cm, width=8cm,     y label style={at={(axis description cs:-0.2,0.5)},anchor=north},     legend cell align=left, legend columns=-1, legend style={inner xsep=2pt, inner ysep=2pt,at={(0.365,0.216)},anchor=east,font=\tiny},     label style={font=\small},     legend columns=1,     xticklabel style={anchor=near xticklabel},     ymin=0.2, ymax=0.6, ytick={0.1,0.2,0.3,0.4,0.5,0.6},     xmin=0, xmax=1, xtick={0,0.2,0.4,0.6,0.8,1.0}, ] \addplot [thick,mark size=1.8pt,mark=square,red] table[x=x, y=y]{a.txt}; \legend{Proactive high load, Proactive low load, Reactive low load, Reactive high load} \end{axis} \end{tikzpicture} \end{subfigure} \hfill \hspace{5.8cm}  \begin{subfigure}{.1\linewidth} \begin{tikzpicture} \begin{axis}[     ylabel=Satisfied Requests,     xlabel=Cache size,     height=5cm, width=8cm,     y label style={at={(axis description cs:-0.2,0.5)},anchor=north},     legend cell align=left, legend columns=-1, legend style={inner xsep=2pt, inner ysep=2pt,at={(0.996,0.21)},anchor=east,font=\tiny},     label style={font=\small},     legend columns=1,     xticklabel style={anchor=near xticklabel},     ymin=0, ymax=1, ytick={0,0.2,0.4,0.6,0.8,1.0},     xmin=0, xmax=1, xtick={0,0.2,0.4,0.6,0.8,1.0}, ] \addplot [thick,mark size=1.8pt,mark=square,red] table[x=x, y=y]{a.txt}; \end{axis} \end{tikzpicture} \end{subfigure} \vspace{0.3cm} \caption{Simulation results for Proactive vs. Reactive caching with low and high load.} \label{LQI-timex} \end{figure} \end{center} \end{document}      x   y 0.1 0.53896 0.2 0.52122 0.3 0.50326 0.4 0.48145 0.5 0.45054 0.6 0.42319 0.7 0.40357 0.8 0.38396 0.9 0.36315 1   0.34668


How to open and repair an m4v or mp4 video file?

Yesterday I was filming a scene with my phone but suddenly the application crashed and when I try to open the m4v generated it says that is corrupted.  I have downloaded the video files (around 36MB) on my PC and I am trying to open and repair it. Can you suggest me a way to do it?  FFMPEG info  As suggested in comments I try check what FFMPEG says me about that file with this command  ffmpeg.exe -i VID_20120425_144739.m4v -c:v copy -c:a copy out.mp4 2> log.txt   Here it is the result:  ffmpeg version N-40126-ga4b58fd Copyright (c) 2000-2012 the FFmpeg developers   built on Apr 26 2012 03:29:50 with gcc 4.6.3   configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib   libavutil      51. 47.100 / 51. 47.100   libavcodec     54. 15.100 / 54. 15.100   libavformat    54.  3.100 / 54.  3.100   libavdevice    53.  4.100 / 53.  4.100   libavfilter     2. 72.100 /  2. 72.100   libswscale      2.  1.100 /  2.  1.100   libswresample   0. 11.100 /  0. 11.100   libpostproc    52.  0.100 / 52.  0.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 003fc940] moov atom not found VID_20120425_144739.m4v: Invalid data found when processing input   Latest two lines are displayed in red.


I have a wide table that I wish to center, caption and label.   \documentclass{amsart} \usepackage{graphicx,amsmath,gensymb} \usepackage[nobysame,lite,short-months]{amsrefs} \begin{document}         \begin{table}     \centering     \begin{tabular}{*{6}{c|} c}          Polymer & $\sigma$(S/m) &          $\mathrm{T}_{\mathrm{eq}}$ $(\degree C)$ & Time Taken (s) &          Density $\rho$ (kg/$\mathrm{m}^3$) & $\mathrm{C}_{\mathrm{p}}$ (J/kgK)         & K (W/mK) \\ \hline \hline         & & & & & & \\[-.3cm]         Kapton & $8.24 \times 10^{-11}$ & 435 & 556 & 1420 & 1090 &          $<1.4437, 1.4437, .1208>$ \\         PEI & $5.44 \times 10^{-12}$ & 219 & 372 & 1270 & 1135 &         $<1.5430,1.5430,.2215>$ \\         FPE & $5.24 \times 10^{-11}$ & 361 & 955 & 1210 & 1729.41 &         $<1.5232,1.5232,.2103>$ \\         BCB-BNNS & $1.46 \times 10^{-12}$ & 204 & 349 & 1100 & 2300 &          $<1.8119,1.8119,3.1126>$     \end{tabular} \end{table}  \end{document}   However, when I run this code, the table is still too wide, and looks like the following.    Is there any way to fix this inside the table environment?


Targeting an element in an Async AJAX call in a loop

I wonder how async call works when looping through html elements with jquery. I know that async call doesn't stop iterating when server call is being made. That means, script is immediately iterating over next element in sequence, even if response from call is not yet finished.  My problem is, that on each call I have different values set, like this:  $(".businessUnit").each(function (index) {       var $element = $(this);       var iUCBU_KEY = $element.prop('data-iucbu_key');       var iENTE_KEY = $element.prop("data-iente_key");  $.ajax({       method: 'post',       url: '/CodeBase/LoadInsertCATETE_BASE1/',       data: {         iUCBU_KEY: iUCBU_KEY,         iENTE_KEY: iENTE_KEY       },       success: function (response) {         //will there be $element from sequence when call was made?           $element.find('input.price').val(response.price);        },       error: function (response) {        }     });       });   Which $element will be updated? Will it be $element from which call was made or $element in which iteration is currently? Response from server can take a few seconds, so iteration can go several elements further in between call - response.


Roughly speaking (of course not exactly); one can says   is an indian equivalent of ; i.e. an indian format of Psi.       What is the command for trishula in TeX or LateX?   Also any other format(s) of Psi are wellcome!   Especially this !   I only know these formats: \psi and Psi.       Let's clearifying my intention by any another format; for example each of the following are another format's to C: \mathcal{C} or \mathfrak{C} or \mathbb{C}, etc.


Evaluate $\lim_{n\to\infty}\prod_{k=0}^n\cos{\frac{a}{p^k}}$ where $p\in\mathbb{N}$

Evaluate $$\lim_{n\to\infty}\prod_{k=1}^n\cos{\dfrac{a}{p^k}}, p\in\mathbb{N}$$I can use double angle formulae to evaluate $$\lim_{n\to\infty}\prod_{k=1}^n\cos{\dfrac{a}{2^k}}=\dfrac{\sin a}{a}$$ But I wonder the evaluation when $p=3,4,5\cdots$  $$$$The question might be complex-analysis-related.


Cannot get Ubuntu software update to work

When I run software updater and the repository tries to reload, always produces the error message below?   W:GPG error: http://ppa.launchpad.net/gezakovacs/ppa/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D45DF2E8FC91AE7E, E:The repository 'http://ppa.launchpad.net/gezakovacs/ppa/ubuntu bionic InRelease' is not signed.


Measure PIC's own VDD-in voltage with ADC

Processor: PIC18F66K22 Compiler:  C18 (XC8 is fine also)   I've just made (and succesfully tested) code to measure the voltage on AN4 analog pin.  Now I want to try something else, not quite sure if it's theoretically possible.  My test-board has a PIC processor, with VDD,AVVD connected to a supply (ranging from 0(if the battery is empty/disconnected) to 4,2(full battery).  Can I use ADC to measure the VDD(-in) of my board?  Why not?:   It's not an ANx pin, not sure how to make the ADC measure it? (Channel?) If the voltage on VDD(-in) drops, will my ADC reference voltage also drop? (So when my PIC only gets 3,3V the ADC will still say it's 100% (as the max Voltage on the chip, also the reference is 3,3V).   Why/what do you ask?:   Can I just measure Channel 30 (VDDCORE)? Could I set my Vref to Vdd and measure a precision voltage reference with the A/D converter. (Not sure how) Or I could add a wire from VDD-in to an ANx pin? Will Internal VREF+ (4.096V) stay 4+V when the VDD-in is around 3,4V? Is there some kind of transformator that makes it so? Internal VREF+ (4.096V) is a bit lower than the max of the battery (4,2V), does this mean I can damage the ADC? Or just that the result will be max when the battery is full. (4,2V out of 4,096V)     Please mind that my knowledge of Electronics is "low". I've learnt way more about the software part in my education, but I'd like to know more about (Embedded) Electronics as it's a crucial part in Embedded Engineering. (It's sad how my school doesn't see this.)


A paper describing grossone used to measure such things as the sierpinski carpet here:     I'd like to discuss the legitimacy of grossone. What is the general consensus in the mathematical world? Is it similar to the $\tau$ vs. $\pi$ debate that was entirely irrelevant? Or is it a legitimate solution to the long standing problems of calculations at infinity?    In the paper, he distinguishes between iterations of the sierpinski carpet, that are undistinguisable with the common notion of infinity.


Maximize the volume given triangle's perimeter

Anys ideas?  Find the triangle with perimeter 2p given that, when we rotate it around one of its sides, the solid obtained have the maximum volume.


I was googling for best c# string concatenation, and I found this at microsoft c# code conventions:      Use the + operator to concatenate short strings, as shown in the following code:   string displayName = nameList[n].LastName + ", " + nameList[n].FirstName;   But I really prefer (String.Format) "$" for more readability IMHO:  string firstName = "MyName"; string lastName = "MyLastName"; string displayName = $"{lastName}, {firstName}"; Console.WriteLine(displayName); // "MyLastName, MyName"   Can you tip me which one do you think is better one? or is just about personal preference?  Thanks!


Find the number of generators of a cyclic group with a given order n

Let us say that $n = 5$. The number of generators of a finite cyclic group would be the number of numbers that are relatively prime to $n$ and the identity element.   Here, when $n=5$, the number of generators would be $2,3,5$. We would also have to include the identity element generator, $e$ for each finite cyclic group. Thus the number of generators of a cyclic group with order $5$ would be 4.  Similarly, when $n=12$, the number of relatively prime generators would be $2,3,5,7,11$ and $1$ for a total of 6.    I think I understand how to find the number of generators of a cyclic finite group, but I can't really explain why.  I also can't draw the connection to this statement:      The order of an element in a finite cyclic group is the smallest positive integer $n$ such that $a^n=e$, denoted ord $a$.  How would I prove that the order of an element $a \in G$ equals the order of $G$? What am I failing to consider?


Map $f: S^n \to S^n$ that extends over $D^{n+1}$ must identify a pair of antipodal points

There is a problem in Armstrong's Basic Topology in chapter 9.3 that I just can't seem to solve by myself, neither have I found a solution online. It goes as follows:      Suppose we have a map $f:S^n \to S^n$ that extends over $D^{n+1}$ in the sence that there is a map $F:D^{n+1}\to S^n$ with $F|_{S^n}=f$. Then there exists a $x\in S^n$ such that $f(x)=f(-x)$.    My idea was to glue two $D^{n+1}$ along $S^n$ to obtain the $S^{n+1}$ and a map $\tilde{F}:S^{n+1}\to S^n$ induced by $F$. Then by the Borsuk Ulam theorem I get a $x\in S^{n+1}$ s.t. $\tilde{F}(x)=\tilde{F}(-x)$, but I can't see how to get a $x\in S^n$ with this property.  Armstrong also states that $f$ having even degree is already sufficent, any hint on how to see that would also be much apprechiated.


Regex for this {{mike}} {{michael}} {{jordan}}

My String is -> {{mike}} {{michael}} {{jordan}}  Give me result like this   group 1 -> mike group 2 -> michael group 3 -> jordan


Voltage label not moving in vertical direction

This is a follow-up to . This time, I would like to move the voltage label downward. \documentclass[12pt]{article} \usepackage{pgfplots} \usepackage{float} \pgfplotsset{compat=1.17} \usepackage{tikz} \usetikzlibrary{shapes, arrows.meta, automata, positioning, matrix, calc} \usepackage[RPvoltages, american,siunitx]{circuitikz} \usepackage[margin=1in]{geometry}  \begin{document}         \begin{figure}[H]         \centering         \begin{circuitikz}             \draw(0,0) to [I, l^= $5\phase{\ang{0}}$] ++(0, 3) coordinate(nearCurSrc) to[C = $-j8$] ++(3, 0) to[L = $j4$] ++(0, -3) coordinate(belowInd) to[short]++(-3, 0);             \draw(belowInd) to[short] ++(3, 0) to[V, v_= $20\phase{\ang{90}}$] ++(0, 3) coordinate(nearVSrc) to[R, l_= 12<\ohm>] ++(-3, 0);             \draw(nearCurSrc) to [short]++(0, 1.5) coordinate(curSrcUp) to [C = $-j4$, v = $\vspace{1cm}\vec{V}_g$] (curSrcUp -| nearVSrc) to[short] (nearVSrc);         \end{circuitikz}     \end{figure} \end{document}  Output:  I also tried \raisebox, but that didn't work either. How to fix it?


Could this experiment show how big the universe really is?

Thought experiment:   Entangle a pair of particles.  Package one half of each pair in a special package, and send it out in a nano-spaceship keep the other half of the pair of entangled particles here on earth accelerate nano-spaceship to 99.99999999999999% of the speed of light using a number of    Due to Lorentz ,  $$ L = L _\text{0} \sqrt {1 - \frac {v^{2}}{c^{2}}} $$  In one years time, the spaceship would have traveled 93B ly away from us.  After one year of travel, the spaceship could be preconfigured to detect the CMB in the direction of travel, and then trigger their quantum entangled particle to send a '0' or a '1' depending on whether the CMB was detected.  Repeat this process using any number of spaceships in any number of directions, and soon you would experimentally show how big the universe really is.  Any problems?


Do cameras exist that can focus on multiple macro depths?

I have tiny plants that I would like to photograph.    As shown in the test photo, I'm able to focus on the plants in the foreground, but not the background.  Do cameras exist that can focus on multiple macro depths (both the foreground and the background)?  Apologies if this question is amateurish. I do not have a background in photography.


I want to subtract n days from a file's timestamp, but it doesn't seem to be working. I have read , and I think I'm close.  This is an excerpt from my code:  import os, time from datetime import datetime, timedelta  def processData1( pageFile ):     f = open(pageFile, "r")     page = f.read()     filedate = time.strftime('%m/%d/%Y', time.gmtime(os.path.getmtime(pageFile)))     print filedate     end_date = filedate - datetime.timedelta(days=10)     print end_date   Printing filedate works, so that date is read correctly from the files. It's the subtraction bit that doesn't seem to be working.  Desired output: If filedate is 06/11/2013, print end_date should yield 06/01/2013.


I am having trouble with equation of type:  φ(n) = a, where a is positive integer and n is an integer  I need to find n, since I need to find all numbers n I was thinking about some modular arithmetic relation but didn't come with anything suitable for problem. What is valid mathematical approach for this problem and how all n can be found? Thanks!


How to translate the modern use of dutch term 'strippenkaart'

Originally, in the Netherlands, a 'strippenkaart' (literally 'stripescard') was a paper card with stripes one could use to travel. Each stripe was equivalent to a certain distance. If you wanted to travel on a bus or on a tram, depending on the distance you were going (counted in zones), a date/time stamp was placed on a particular stripe.  Nowadays, the original 'strippenkaart' for bus and tram has been replaced by a chip card which can be used for all public transport, but the term 'strippenkaart' is still used.   I think it can be defined as follows:     You pay in advance for as many products that are on the card, but you    get a discount.   So, for example, if a coffee costs € 3,00 you can buy a 'strippenkaart' for 10 cups for € 25,50 (instead of € 30,-)  How would a card like that be called in English?  Update  I am not talking about some kind of chip card, which holds some value equivalent to money, which can also be used for purchasing other things. It's more like a piece of paper with boxes that can be checked every time a purchase is made.  Also, I am looking for a more general term that can be used for all kinds of products. So you could have a 'strippenkaart' for cups of coffee, or haircuts etc.


I want to force ssh to always use the program specified by SSH_ASKPASS. In my case the program is just a bash script returning the passphrase.  The problem is, as the ssh documentation says:     If ssh needs a passphrase, it will read the passphrase from the current terminal if it was run from a terminal.   So if I run ssh from a terminal, SSH_ASKPASS is ignored.   There is a similar question:    which proposes create an alias for ssh, like this  $ alias ssh="setsid ssh"   but doesn't work for me, because I don't call ssh directly, is called from git or rsync.   I also found an  in the OpenSSH Bugzilla asking for a fix, but was opened in 2002, so I don't believe is going to be implemented.  I'm thinking on probably weird solutions:   Make a fake ssh agent, which calls the script and returns the passphrase.  Create a process looking for new ssh processes and detach them from the    terminal before ssh asks for the password.   Any better sugestion?


I have a file with values organized in columns, and separated by commas, as in the file below:   324,01,1,113333600000,1,, 016,01,1,134954200000,1,, 770,01,1,109069200000,1,, 853,01,1,111518800000,1,,   When I use the following awk command, the delimiter is being changed from commas to spaces   Code:  awk -F, '{$4=$4/1024}{print $0}'   The output becomes:   324 01 1 110677343.75 1   016 01 1 131791210.93 1   770 01 1 106512890.62 1   853 01 1 108905078.12 1    How can I change the value of the field without changing the delimiter?


How to vertically align inline element and inline-block element

Say I have the following code    p {   display: inline; }  div {   display: inline-block;   width: 100px;   height: 50px;   background: black; }  <p>      Some  text      <div>      </div>     </p>     What is created is this    Here the inline and inline-block elements are not vertically centered. How would I make it look like this :


Given:   The total length of ad + dc The lengths of each ab, bc and ca That angle adb = angle cdb   How can I work out lengths ad and cd


javascript eventListener closure: how does this work?

I'm trying to get a click handler function in javascript to allow multiple parameters and also still be able to access the event object from the browser.  Digging around on stack, I found this     I tested it in a fiddle and it works. I don't understand why though.      My JS code in the fiddle:  div=document.querySelector('div'); data = "data";  let testFunction = function (data) {     return function (event){     console.log(event);    console.log(data);      };  }  div.addEventListener('click', testFunction(data));   I read this article on closures and it helped but still don't understand.     What I think I know is:  When a click happens, testFunction is executed and data is passed.     testFunction returns a function (which creates a closure that stores local variables in scope)  the 'data' variable is in the closure because it was a parameter passed in  But what about 'event'...how does the return function know that 'event' is the event object from the browser???


Why do I have the "required reviews completed" status on my submission in Elsevier?

I had submitted my paper in an Elsevier journal one year back. Now, status update on the submission tracking says "Required reviews completed." However, for the last two weeks still there is no change in the status.  Should I ask the editor what is going on with my submission?


How do I make more space on a Macbook air?

I have a bunch of files that I don't need. I'm wondering what's taking up all the space. I am tempted to almost format the laptop and start fresh.  What can I do to find out what is taking up all the disk space in my Macbook?


I am wondering if it is possible to run a command without keyboard.  Actually, I would like to run dmesg and save the output into a text file. I have written previously a bash script which does the job, and without keyboard I can log in to the Guest account, but I cannot run the script. Even if I make it executable, it doesn't run if I double-click on it.  So, is there a way to run a command or a script without using keyboard?


How can I import photos not in the camera roll from iPad to mac?

The photos in my iPad is synced from iPhoto in my mac, so they are not in the camera roll. But unfortunately I formatted my drive so the iPhoto library in my mac is gone. Now all the photo is in my iPad, but it seems no convenient way to get them out. I hope I can keep all the file name correct.


Are runners or pedestrians allowed to use the bike lane?

This morning on my commute I encountered a runner in the bike lane I was riding in.  This irked me because:   The bike lane was on a busy street, with three lanes of motor vehicle traffic in each direction.  (I was northbound on Embarcadero in San Francisco, for those of you familiar with the city.)  To go around the runner I had to enter the car lanes, which makes me a little uneasy. There is a very wide sidewalk available to runners and other pedestrians along this street.  There were no obstructions on the sidewalk, and it was not choked with other pedestrians.  In other words, there was plenty of room for this runner to run on the sidewalk.  (I'm guessing that he didn't want to run on the concrete sidewalk based on the  belief that the asphalt roadway would be easier on his joints.)   So when I was about to pass the runner, I called out, "You're in my lane!"  His reaction was... not positive.  He started yelling and cursing at me.  I don't know exactly what he said; probably something about runners being entitled to use of the bike lane, too.  So my question is this:  Do runners or other pedestrians have a legal right to use the bike lane (not that SFPD would ever enforce this even if it were a violation), especially when there is a sidewalk available?  If this varies with the jurisdiction -- and it probably does -- then I suppose I'm most curious about what the law says where I do all of my riding, in the San Francisco bay area.  (Irrelevant detail: I'm a runner myself -- I do a lot more running than cycling, in fact -- and I've run on this route many times.  I really have no sympathy for those who want to run in the bike lane, just because I feel like the sidewalk is perfectly adequate for runners when it's available.  I don't ride my bike on the sidewalk, after all.)


Rationale behind pronunciation of "subtle"

I've read , yet I'm still irresolute about the exposition/logic behind the pronunciation of subtle. Why is the b not pronounced?    subtle = subtil(e) in French, in which the b is pronounced. That website avers:     "By the 18th century, however, they smartly dropped the silent b in dette, and doute, and decided to begin pronouncing it in subtil.   The deletion of b in these French nouns may explain the silent b in debt and doubt in English. Yet why does this not extend to "su*b*tle"?  In French, dette and doute have no b (and thus b sound). Would this explain the silent b in "debt" and "doubt"?  In French, the b in subtil(e) is pronounced. Yet the b in "subtle" isn't? Why does this differ?


How to look up a specific Google phrase having punctuation in it

Before run yum remove ceph-release, I would like to look up ceph-release. But quotes like ' and " still brings results like ceph releases, release ceph. So how to look up exactly "ceph-release"?   That was just an example. I would like to know how to look up an exact phrase like "a-b", having punctuation in it.


Trouble with batch conversion of .png to .pdf using convert

convert /home/bill/TempScan/*.png  myfile.pdf   gives error message:  convert-im6.q16: not authorized `myfile.pdf' @ error/constitute.c/WriteImage/1037.   Any help would be appreciated!


How Many times can we low level format a disk drive without damaging it?

I heard that doing too many Low Level formats can damage the hard drive. But it make things really fast and remove almost all the malware infections. So, my question is, how many times can we do the low level format safely without damaging the hard drive?


What to look for in a hosting company for a fully managed dedicated server?

We have a few dedicated servers and we want to move these to a fully managed environment.    We are probably looking at using some sort of Linux/Apache/mysql/tomcat/php stack on the server.  Those are the main requirements.  With about 10-20k hits a day.  (there are several servers in the same situation).  So basically we want our own server, want to be able to be able to load software (very industry standard stuff not whatever) if needed via raising a ticket or using a control panel.  We want to be able to create new database users, database tables, update htaccess on server and folders and all of the normal stuff that you might get in a $20 a month service.    Only difference is we will pay more for dedicated server, for more memory (32GB), and for support.    My question is what should I be looking for in a hosting company that will manage a dedicated server, but also allow some sort of ability for us to manage the individual sites and add new sites.  Is there industry standard terminology or do I need to be specific (I will before signing anything) when looking?


UK visit visa refused twice? How do I reach Embassy?

I'm a woman working in the UAE and I applied for a visit visa to see my friend in Aberdeen and also for tourism. I had booked my hotels and bought my tickets. I provided employment letter and bank statement with my application. I had mentioned I require almost £4,000 for my 13 day trip. I had provided a bank statement until end of October with closing amount of £4,600 and mentioned that my salary of November and December will be deposited before my travel date which was 24th of December.    But the first time it was refused, mentioning that I had only £3,550 as my closing amount. I went through my bank statement - this amount was for September first!! They had overlooked my saving after first of September. I discussed with many companies and I paid a lawyer for consultation. All came to the point that the officer made an error and overlooked my statement. I thought maybe adding more money to my bank statement would make it better. I asked my father for money and he provided me with £2,600 cash which I deposited it to my account.    In my second application I mentioned this was a gift from my father. I provided an invitation letter from my friend. My November salary was also deposited to my account. So my closing amount was now £8,400. But they refused it again!! They had provided one point only. Mentioning that I have added £2,600 and I didn't provide enough documentation for where I got the money. So because of this they cannot trust my documentation.    I had provided my original employment paper, original bank statement. All they had to do was to call the bank but they didn't. Simply with false accusation they refused my visa. All my documents were originals and I was ready for this trip. I had everything planned and it was supposed to be 13 days only. But I won't apply again. My tickets are reserved for 24th of December and I went through so much stress for this two time for a simple visit visa. I have been looking for a way to reach the Embassy. I know there is no right of appeal for a visit visa application.    But how can someone like me can prove their case?    I can apply for judicial review but by the time I get an answer, it is way past my travel date and my annual leave from my job has already finished. I wanted to know if there is any other way I can try. I have lost hope and I'll be cancelling my tickets and hotels soon. I just wanted to see if there is anything else I can do. The first two images are for the first refusal and the third is for my second refusal.


Remove 'Persian (standard) keyboard (FAS)' keyobard layout in windows 10

I've added Persian keyboard to my Windows 10. However it added two keyboard layout which one of them is not my option and make troubles for me while switching between languages.    I could not find nowhere to remove this layout. Does anybody have an idea how can I remove 'Persian (standard) keyboard (FAS)' from my language options (I still want to have Persian Keyboard (FA))?  Here is the screenshot of language options:


Possession in Business Name With Apostrophe

In the following sentence, how would I indicate possession if the word "business'" were replaced by the name of the business: like "Fry's" or "Wendy's"?     Some business' employees are happy.   It seems strange to say that Wendy's employees are happy, since I'm referring to the business, and not just Wendy.


What is the correct way of installing BOINC software?

I've been trying to install the Boinc software (), I could do it in Ubuntu 12.04 but it never worked as well as in Windows (couldn't get it on the systray icons, to be a startup application etc.), but in Ubuntu 12.10 I can't even install it to get the interface, there's a lot of versions and ways to install it.  Anyone knows the correct way for installing and using Boinc in Ubuntu?  Thanks!


How to prove that $8^{18} - 1$ is divisible by $7$

How to prove that: $$ 8^{18}-1\equiv0\pmod7 $$ In the simplest way?


How can I delete all folders of a specific name without deleting Contents in it?

How do I delete all Folders with a specific name (e.g. 128Kbps_Songs) without deleting its files  For example if I have directory "MP3_SONGS" with subdirectories "A", "B", "C" and each subdirectory has MANY directory Contains Film Name "FILM_NAME1", "FILM_NAME2", "FILM_NAME3" in it, In That Each Film NAme I have specific Folder NAme (128Kbps_Songs) in this "128Kbps_Songs" Folder I have That Film mp3 Songs Files  how can I remove the Folder "128Kbps_Songs", in Each Film_Name directory and Have to get these mp3 songs in that FILM_NAME..   ( Have to Delete 128Kbps_Songs Folder in all FILM_NAME without deleting the mp3 Songs in it, have to get the mp3 in FILM_NAME Directory..  MP3_SONGS (Parent Directory) ------ A , B, C  A (Sub Directory1) ------ FILM_NAME1 , FILM_NAME2 B (Sub Directory2) ------ FILM_NAME3 , FILM_NAME4 c (Sub Directory3) ------ FILM_NAME5 , FILM_NAME6  FILM_NAME1 (Directory) ---- 128Kbps_Songs (Directory) ------ FILM_NAME1 (MP3 Files) FILM_NAME2 (Directory) ---- 128Kbps_Songs (Directory) ------ FILM_NAME2 (MP3 Files)  FILM_NAME3 (Directory) ---- 128Kbps_Songs (Directory) ------ FILM_NAME3 (MP3 Files) FILM_NAME4 (Directory) ---- 128Kbps_Songs (Directory) ------ FILM_NAME4 (MP3 Files)  FILM_NAME5 (Directory) ---- 128Kbps_Songs (Directory) ------ FILM_NAME5 (MP3 Files) FILM_NAME6 (Directory) ---- 128Kbps_Songs (Directory) ------ FILM_NAME6 (MP3 Files)  Need Files in: FILM_NAME1 (Directory)  ------ FILM_NAME1 (MP3 Files) FILM_NAME2 (Directory)  ------ FILM_NAME2 (MP3 Files)  FILM_NAME3 (Directory)  ------ FILM_NAME3 (MP3 Files) FILM_NAME4 (Directory)  ------ FILM_NAME4 (MP3 Files)  FILM_NAME5 (Directory)  ------ FILM_NAME5 (MP3 Files) FILM_NAME6 (Directory)  ------ FILM_NAME6 (MP3 Files)


Why does Ubuntu 12.10 not detect my Win7 partition?

I'm trying to install Ubuntu 12.10 alongside Windows 7 on my ASUS laptop and I'm new to all of this.   I'm using  the Ubuntu 12.10 64-bit ISO burned onto a CD.  The first time I tried to install it, Ubuntu said it did not detect any other OS, which meant I only had 4 options:   Erase disk and install Ubuntu (I don't want to do this) Encrypt new Ubuntu. Use LVM. Something else.   If I choose the Something else option, it brings me to the partition menu and says that I have 1 disk with free space of 750516Mb (750Gb), but that's not true because I have Windows 7.  I've already read through several questions and people have mentioned that you could only have 4 primary partitions. So I got hold of partition magic and removed my D: and E:, leaving me with primary C: partition and System reserved partition and a lot of unallocated space.  I restarted the laptop several times and booted the CD again and I got exactly the same as I did previously.  How do fix this problem and install Ubuntu alongside Windows 7?  EDIT 1  Here are my results for   sudo fdisk -l; echo; sudo parted -l; echo; mount; echo; df -h   WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.   Disk /dev/sda: 750.2 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x90050371     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT /dev/sda2          206848   146368214    73080683+   7  HPFS/NTFS/exFAT  Warning: /dev/sda contains GPT signatures, indicating that it has a GPT table. However, it does not have a valid fake msdos partition table, as it should. Perhaps it was corrupted -- possibly by a program that doesn't understand GPT partition tables.  Or perhaps you deleted the GPT table, and are now using an msdos partition table.  Is this a GPT partition table? Yes/No?     After selecting YES  Yes/No? yes                                                                Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used. OK/Cancel?


Vector space of all real-valued continuous function over $[a,b]$

I read somewhere recently (in a general topology book), that the set of all continuous functions $f : [a,b] \rightarrow R$ forms a vector space. Here $[a,b]$ is just an interval on the real line.     I only vaguely recall that trick from my linear algebra classes some N years ago. I mean... it sounds familiar but I want to know a bit more.    So I wonder now: 1) is this true? 2) what is the dimension of this vector space? 3) what is its basis?      I guess the dimension is infinite but ... I mean... is it countable infinite or maybe having same cardinality as $R$ or maybe "bigger" cardinality?


How can i remove Ubuntu? (delete/uninstall)

i have dual boot system! Ubuntu 14.04.3 LTS and Windows Xp! I want to delete the Ubuntu and use only Windows Xp, because my netbook is too old and the wifi does not work with Ubuntu! I searched for a solution for a month and none worked!


I found redstone ore in Survival Mode (Minecraft Pocket Edition) and tried to use all five tools to collect it. It took about a minute or two to break, but I couldn't collect anything from it once broken.  How do I mine redstone ore?


What stock market would legally allow me to manipulate the price of shares?

Say I were to buy shares from myself at a higher-than market price, or place an All-or-Nothing buy order for a fantastic amount of shares, in what markets would it still be within the rules?  I'm thinking if the pink sheets in the USA, the AIM in the UK, or any other market, would have a problem with it?


Where is Newid(), Rand(), and Sysutcdatetime() new value per query vs. row behavior documented?

Within a single query, all current time functions like sysutcdatetime() return a single point in time that is re-used throughout the query for each instance (e.g. of  sysutcdatetime()) no matter how complex (afaik).  However NewId() and Rand() do not follow this behavior and diverge from each other as well and it does not seem to be documented.  How to describe?  Are there other functions?  Union All Example:  select newid() as NewId, rand() as Rand, sysutcdatetime() as Utc union all select newid(), rand(), sysutcdatetime() union all select newid(), rand(), sysutcdatetime()     Select Field Example:  select top 1000000 newid() as NewId, Rand() as Rand, sysutcdatetime() as Utc   from sys.all_objects AS s1    cross join sys.all_objects AS s2     Update Example:  create table #t (     NewId uniqueidentifier,     Rand decimal(18,8) )  insert into #t select null, null  union all select null, null  union all select null, null  update #t    set NewId = newid(),        Rand = rand();  select * from #t


If $\frac{a^n-1}{b^n-1} $ is a natural number for every $n$ then $a = b^m$

Consider two natural numbers $a,b$. Prove that $a = b^m$ if $ \frac{a^n-1}{b^n-1} $ is natural for all $n \in N$.   I tried to assume that there is exist some $k $, such : $a = b^m + k$, so i get $$\displaystyle \frac{\sum_{0}^{n}b^{n-i+m}k^i -1}{b^n-1}$$ but I guess I just waste my time.  Need some good idea.


Navigate directory and move files one level up, recursively

I have many directory with different name, each of them contain a subdirectory named httpd-ack (same name for all of them) in which are stored files.  I need a command to recursively enter each directory, enter subdir httpd-ack, move all files one level up and then delete the httpd-ack folder (which is empty now).  start is  name1/httpd-ack/(files)  name2/httpd-ack/(files)  name3/...[...]  ending should be  name1/(files)  name2/(files)  name3....[...]  Any help will be much appreciated....


As a mathematics student interested in theoretical physics, I found it very hard to study about anomalies in QFT in standard physics texts. They concentrate on particular examples (like chiral anomaly), however, I want to know about general properties of anomalies in a Quantum Field Theory. Do you know of any books, lecture notes, or any other references for a proper general properties of anomalies for a mathematics student?


My players want to use called-shots on Strahd

Possible spoilers for the D&D 5E adventure Curse of Strahd:   So last week my players encountered Strahd at level 3. My intention with this is to teach the players to think before spending their valuable resources. Strahd would not have killed them right away - he was only toying with them and testing their strength. But then one of my players said "I have wooden stakes, I want to stake him in the heart."  We are all new players and I am a new DM. Since 5e has no rules for called shots, I told them that it would be such a difficult hit that they needed to roll a flat 20 on the dice for a critical hit. They then started to "fish" for a critical hit with two weapon fighting and 2 wooden stakes each. I felt like it was a poor way of handling this situation   They've also tried to "call shots" before. The war cleric wanted to hit an enemy on the legs to make it fall prone and the way I handled it was telling them that the battlemaster archetype of the fighter has a similar feature called maneuvers and it would be a boring class if everyone was be able to do it.  So my question here is: how do you handle it when your players want to call shots?


How do I kill grelod the kind with out getting noticed ?? On Xbox 360

I enter at night or when ever she is alone (invisible), I kill her with my bow (I turn invisible)-- and somehow Constance Michel notices this in her room with doors closed, and afterwards runs across the orphanage  telling me she yields and won't stop! How can I kill Grelod the Kind without Constance Michel yelling terrified?


If every subsequence is convergent, prove that the sequence is convergent

If every subsequence of a given sequence of real numbers is convergent, prove that the sequence is convergent.   Help me please. I could not understand how to solve this question.


I have multiple HP Compaq Elite 8300 CMT (with Core i7-3770 processors) workstations that accept DDR3-1600 (PC3-12800) memory. I was about to order some memory of this specification: "(4x8GB) DDR3-1600 PC3-12800 240 PIN DIMM RAM For AMD AM3 AM3+ Socket MB" but as you may note, it says that it's for an AMD board. Here is an image of the DIMM with its accompanying label (I underlined the "AMD Only" on the label):   I thought that this must be a marketing move, but then upon placing the order the seller contacted me to verify that I was ordering this for AMD and NOT Intel.  (Specifically this RAM is to be for this .)  As per this question: , my own question of whether or not this specific processor (apparently memory addressing moved to the CPU mid 2000s) will support this "HIGH DENSITY RAM" appears to have an answer that's just a big "MAYBE".  For example, in the , it's noted that Intel began supporting high density RAM at some point. The problem is that there doesn't seem to be 1) any detail on when this support began and 2) if BIOS updates or processor microcode updates at any point provided necessary support for any Intel chipsets / CPUs that did not previously have support.  And so we return full circle:  When did Intel start supporting "high density RAM / memory" & will the Core i7-3770 support it?


How can I rename a schema using SQL Server?


I am using an Motorola XT1022. I have moved the games and apps from the internal to SD card to free the internal memory, but still there are some moved apps files that are occupying the internal memory. So I can't install any other apps.  Can you tell me how to move that apps files to the SD card?


My furnace is old and only has 4 wire connections, but I require a C wire. How can I create one based on this diagram?  I do have 5 wires running between the furnace and thermostat.


I have followed a thing for how to get bots to move. I chose a gamemode that bots support(PL) and it has a navmesh. The only thing is they stand still like they don't have  a navmesh. PLease help.


Definitions:  $A'$ is the set of all accumulation or limit points.  $\bar{A} = A \cup A'$ - this is known as the closure of $A$.  Let $A$ be a subset of $\mathbb{R}$. A point $p\in\mathbb{R}$ is an accumulation point of $A$ if and only if every open set $G$ containing $p$ contains a point of $A$ different from $p$.  Prove or disprove: $(\overline{A\bigcup B}) = \overline{A}\bigcup \overline{B}$  proof: let $p\in (\overline{A\bigcup B})$ be an accumulation of the union, then there exists some open set $S_{p}$ containing $p$ which also contains a point of $(\overline{A\bigcup B})$ different from $p$. Let's call this point $q$, where $p\neq q$ such that $q\in S_{p} \subset (\overline{A\bigcup B})$.   This is where I am lost, if anyone can help that would be greatly appreciated.


How should Feature Selection and Hyperparameter optimization be ordered in the machine learning pipeline?

My  objective is to classify sensor signals.  The concept of my solution so far is : i) Engineering features from raw signal ii) Selecting relevant features with ReliefF and a clustering approach iii) Apply N.N, Random Forest and SVM  However I am trapped in a dilemma. In ii) and iii), there are hyperparameters like k-Nearest Neigbours for ReliefF or the window length, for which the sensor signal is evaluated, or the number of hidden units in each layer of N.N.  There are 3 Problems I see here : 1) Tuning feature selection parameters will influence the classifier performance 2) Optimizing hyperparameters of classifier will influence the choice of features. 3) Evaluating each possible combination of configuration is intractable.  So my questions are : a) Can I make a simplifying assumption, s.t. tuning feature selection parameters can be decoupled from tuning classifier parameters ? b) Are there any other possible solutions ?


Structural Induction Proof of Compositional Semantics

I need to show by structural induction on WFFs that every WFF, $\theta$, has the following property: For any PL (Propositional Logic) interpretations $I$ and $I'$ if $I(\alpha) = I'(\alpha)$ for every sentence letter $\alpha$ in $\theta$ then $V_{I}(\theta) = V_{I'}(\theta).$    I know that I need to show that:                               Base Step: Every wff $\theta$ is s.t. any PL (Propositional Logic) interpretations $I$ and $I'$ if $I(\alpha) = I'(\alpha)$ for every sentence letter $\alpha$ in $\theta$ then $V_{I}(\theta) = V_{I'}(\theta).$; and  Inductive Step: Modus Ponens preserves this property.  But I am unclear about how to show the Base Step. I am unclear about how to start the proof because I'm having a hard time translating the stipulated property of $\theta$ into a conditional in English to go about giving a conditional proof.  Can anyone help me translate the property $\theta$ above into an English conditional statement (or give me a hint as to how I should) so I can do a conditional proof for the Base Step?


Does a loading animation on a websites initial load improve usability?

I'm working on a site where I am being asked to implement a loading animation on page loads. Essentially, the site will display a loading animation as soon as possible, which will go away once all of the assets (images, essentially) have been loaded.   I'm worried that this will actually reduce usability, but am very interested in any data on this. I want to know the "right" answer.  Essentially I have two feelings:   If images further down the page are still loading, I as a user, don't care. I want to start consuming any content as soon as it's available. From this perspective, hiding the site until everything is loaded would actually reduce perceived performance.  The browser already gives a good indication that the site is still loading. Users are at least subconsciously aware of this and are used to some things appearing after the initial render.    I've seen this sort of thing often on single page javascript applications where I think it makes a lot more sense. The user has an initial loading page, and afterwards the application is ready to go with all assets loaded. But, seeing a loading image every time you click a link feels a bit off to me.   I am very interested in opinions or data from people more knowledgeable and experienced in UX than myself.


In my .bashrc file are these lines  if [ -f ~/.bash_aliases ]; then     . ~/.bash_aliases fi   I know that . <file> syntax is very popular...what is it doing exactly? How might this be different than running  source ~/.bash_aliases


In WPF, how would I apply multiple styles to a FrameworkElement?  For instance, I have a control which already has a style.  I also have a separate style which I would like to add to it without blowing away the first one.  The styles have different TargetTypes, so I can't just extend one with the other.


Transformation parameters for Everest datum to WGS84

I have a shapefile with the following projection information:  PROJCS["Nepal_india_boundary",GEOGCS["Nepal_india_Geo",DATUM["D_Everest_India_Nepal",SPHEROID["Everest_Definition_1962",6377301.243,300.8017255]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",500000.0],PARAMETER["Central_Meridian",84.0],PARAMETER["Standard_Parallel_1",26.666667],PARAMETER["Standard_Parallel_2",29.333333],PARAMETER["Scale_Factor",0.9997],PARAMETER["Latitude_Of_Origin",28.002808],UNIT["Meter",1.0]]   Which transformation parameters (preferably 7 parameters) can I use to transform the shapefile into WGS84 (decimal degree) system?


How to point to an object when iterating through an Array List of objects

I'm trying to build this class, where Product is an object, and getProducts is an ArrayList of the product object. Now, in this instance, I'm trying to iterate through the ArrayList to find the product that has the same name as the input (userinput), and once it finds the same one, I'd tie that product down to a Product p, in a way like using a pointer. So in order to do that I set up a new pointer object, Pointer p=null. I had to initialize it as the subsequent bits require the p.getName and other methods. However in doing so, I'm always getting a null pointer exception. Is there a better way to approach this? public class purchase implements Command {     @Override     public String execute(VendingMachine v, String userinput){        Product p=null;        for( Product i : v.getProducts()){             if(i.getName().equals(userinput)) {                 p=i;             }             break;  EDIT- a couple people had mentioned that I should use .equals(), and yes I had overlooked this, however, that's not the reason causing the issue here. Also edited the question to make it more comprehensive.


When conducting multiple regression, when should you center your predictor variables & when should you standardize them?

In some literature, I have read that a regression with multiple explanatory variables, if in different units, needed to be standardized.  (Standardizing consists in subtracting the mean and dividing by the standard deviation.)  In which other cases do I need to standardize my data?  Are there cases in which I should only center my data (i.e., without dividing by standard deviation)?


Why do gaps appear in my mesh when I animate it?

As I attempt to complete a "Walk cycle" with my model, the mesh at the pants line separates from the skin as the model moves or as I rotate the controls. This happens in many places on my model and it reveals the model interior. It is a one piece mesh, though, so I don't understand why this happens. Is this caused by weight painting problems? How can I fix this?


Book about a genius test tube baby born to a scientist

I'm looking for the name of an author and an old sci-fi book about a genius test tube baby born to a scientist. He that becomes so smart but lacks empathy and is a killer. He also starts making doubles of himself in a lab and starts making synthetic cocaine. Later he plots to kill his mother and father after they find out he's supplying cartels.


Let $V$ be a finite dimensional vector space and let $T:V \to V$ be a linear operator. If the rank of $T^2$ equals then rank of $T$, prove that $(\operatorname{range} T) \cap (\ker T)=\{0\}$  I just want to know whether I'm correct or not. First $T^2$ implies that T is squared, then rank of $T^2=$ rank of $T$ means that $T$ is full rank is that correct? Then the range of $T$ is the space $V$.Is the $\ker T$ means that $\ker T=\{v:T(v)=0\}$? If so range $T \cap \ker T=\{0\}$ right?


RF energy harvesting using UHF and HF from tv, radio and cell towers

I am busy with a project where I want to harvest energy from UHF and VHF such as tv broadcasts, radio and cell phone towers to charge a 100uf capacitor to be able to power a low power appliance such as a cell phone.  My plan is to use a polarized match linear antenna and using the theory and maths of friis equation I expect to get 10-100 mv.   How do I work out or know what the gain will be in dBs?  What should the antenna width be to give me a wavelength impendance of 50ohms to minimize reflection loss with a matched RF-DC charge pump circuit?   The incoming power transduced across the antenna is RF and would induce a very low voltage across the antenna terminal , so how would I rectify and step this voltage up to 3.5v-4v?   If you have any tips or advice please let me know, as well as if you think im on the wrong track. Your help is appreciated.


I am switching from a MTB (with pretty old, but still fine, SPD cleats) to a CX and am in the process of picking pedals. I won't be driving the MTB at all anymore, after that, and have switched it to non-cleat anyways, because I prefer it that way on slow, technical routes.  Do I want to worry about converting the shoes to the road cleat system? Or is that just a big hassle ending in an unhappy compromise? The point would be primarily to not have to go and look for new shoes (as the old ones are still well fitting and have not been used much), and just switch out the system.


What is the intuition behind the Borel Cantelli Lemma?

The  states that the probability of a set of outcomes happening infinitely many times in an infinite sequence is $0$ under some conditions. I neither understand the math (behind the proof) nor the intuition behind what is being said.  Can someone motivate the use of this theorem?


Problems with trademark symbol in viewing into the php

I'm creating a web-based using php (and etc) with mysqli database. I have created a table that contain trademark(™) data in certain column. When I import the data from the csv file, the ™ sign shown perfectly in my phpmyadmin(using utf8). But when it comes to viewing part in my php page, it show � symbol that replaced my ™ symbol. How can i get rid of this?


What pauper cards are legal in MTGO but not paper?

I am trying to collect most cards relevant to pauper. All cards that have ever been printed at the common level on paper are legal for pauper, except for .  Because MTGO pauper is more popular than paper pauper, and because it is so easily available electronically, it is easy to find data and analysis on the most frequently used cards in pauper. I did this.  The problem is that there are some cards, such as Chainer's Edict, that are common on MTGO but have never been printed as paper commons. They are therefore not legal for play with paper pauper.  Is there a list maintained of cards printed at common for MTGO, but not paper? If so, please provide link. If there is no such list but it turns out to be very few cards, then the answer should contain that short list of cards, followed by "as of x date."  Note: For the exact opposite list of cards, see:


why these strings are not pointing to the same object in java?

I know that if I have 2 string variables with the same value, they point to the same string object because of the java string pool. Here is an example: String test = "1234"; String test2 = "1234";      System.out.println(test == test2); System.out.println("1234" == test2);  the output is the following: true true  But if I have the following code, it prints that they aren't the same object String test = "1234"; int i = 1234; String s = "" + i;      System.out.println(test == s); System.out.println("1234" == s);  Output: false false  Anyone would explain to me the reason for that behavior, please?


Indicate comment was flagged in flag history

In the flag history a flag on a comment links to the original question - not the comment that was flagged.  I think that the flag history should clearly indicate that the flag was on a comment. Now it looks like I've flagged a perfectly valid question as rude or offensive, while it was a comment that was inappropriate.


What time, EST, do .com domains get deleted, and available for registration by someone else? I believe it's in the range of 1 hour.  I want to hop on and register one manually without paying for backorder fees.  Is it 2-3 PM?


If time is relative, how could time pass?

EDIT: I appreciate people who answered below. But it does not answer the question, so I will clarify my questions:  -It seems like everyone is saying that time passing is actualized by physical process happening. But wouldn't that mean that photon can never change, as no physical process could happen to it? Then how could photon be absorbed, and whatever other thing that could happen to it.  -We start with this spacetime. At the present moment, I am at a point in spacetime. Which other part of this spacetime constitute "universe at present time"? And if I perceive something happen (say an explosion on a star), what allow me to determine whether it happens at the present, or X amount of time ago?  ==========  Original question: I was just starting to have a look of general relativity, which have an assumption that basically say that time itself is relative. As I was reading this article:   I saw the sentences "So here is one natural notion of the universe: all of three-dimensional space at the present time. Call it the nowverse." Now this strucks me as odd. We knew for a long time that there are no absolute space: it makes no sense to say that an object stay at the "same place". Then what does that means to say "present time". In a more general term, what does it mean for time to pass for an object? Specifically, if an object perceive event A followed by event B, what does it means to say X amount of time elapsed between the 2 events? Since there are no global time coordinate, we can't just take the time coordinates of these 2 events and find the differences. And I am looking for an answer that tie the concept of time pass to actual physical phenomenon, so "length of the object's world line" won't work, since the metric tensor is an even more abstract object.  (the "How can time be relative?" question is about discrepancy between intuition and physics, while this question already assume the physics is correct; in particular, that question does not explain how can people say "the universe at present time")


Can moderators view my registered email address?

Can a moderator (or ex-moderator) view the registered email address if :  I am a member of the particular SE site of which the moderator is moderating?  I am not a member of the particular SE site of which the moderator is moderating?


unable to copy 4GB file from Windows 10 to Flash Drive though there is room

I have a 4GB Virtual Machine file I'd like to get off of my computer entirely, and right now (at least till tomorrow) I have only an 8GB flash drive.  According to the Windows 10 Storage Settings UI, the flash drive has used 320MB of 7.58GB.  However when I try to copy, I get:  The file 'box-disk1.vmdk' is too large for the destination file system. box-disk1.vmdk Type: Virtual Machine Disk Format Size: 4.76GB   I cannot zip the file first either, since I only have 300MB left on my C drive, and when I try it says "The disk may be full"  Is there any solution to this with the resources I have today?


I've been searching for ages, but I only very rarely happen to find a dungeon. Does anyone know if there is a way to find dungeons that is 100% acurate?


Advertize monetary payment for my SO question

So I asked  and I didn't get any answers yet.  I was wondering if it's legitimate to offer a sum of money for answering it. I will offer a bounty tomorrow anyway but I want to attract more people.  So may I advertize a monetary reward for answering the question on the question? I'm fully aware that the answer will still be under the CC license, and anyone (not just me) may use it later - I really don't mind.  BTW - I'm kind of surprised I couldn't find a duplicate (but then again I suck at meta search)


I made a simple TikZ picture like this:    and I would make an animation that rotates the whole image about its z_world axis.  I made this attempt:  \documentclass[10pt]{article} \usepackage[italian]{babel} \usepackage{geometry} \geometry{a4paper}  \usepackage{media9} \usepackage{animate}  \newcounter{angle} \setcounter{angle}{0}  \usepackage{tikz} \usepackage{tikz-3dplot}  \begin{document}  \begin{figure}[ht] \centering  \begin{animateinline}[loop, poster = first, controls]{30}   \whiledo{\theangle<359}{  \tdplotsetmaincoords{120}{\theangle} \begin{tikzpicture}[scale=2,tdplot_main_coords]  \def\laserPointX{1.5} \def\laserPointY{0} \def\laserPointZ{2.5} \def\moduloQuadro{\laserPointX*\laserPointX+\laserPointY*\laserPointY+\laserPointZ*\laserPointZ} \def\moduloLaser{sqrt{(\moduloQuadro)}}  % laser plane \filldraw[red!50, opacity = 0.2] (\laserPointX,\laserPointY,\laserPointZ) -- (0,-0.8,0) -- (0,0.8,0) -- cycle; \shade [ball color=red] (\laserPointX,\laserPointY,\laserPointZ) circle [radius=0.05cm];  % axis laser \draw[-latex,line width=3pt,green!70!black,line cap=round] (0,0,0) -- (1.5*\laserPointZ/\moduloLaser,0,-1.5*\laserPointX/\moduloLaser) node[anchor=west]{$y_{laser}$}; \draw[-latex,line width=3pt,green!70!black,line cap=round] (0,0,0) -- (0,1.5,0) node[anchor=east]{$x_{laser}$}; \draw[-latex,line width=3pt,green!70!black,line cap=round] (0,0,0) -- (\laserPointX/\moduloLaser*1.5,\laserPointY/\moduloLaser*1.5,\laserPointZ/\moduloLaser*1.5) node[anchor=south]{$z_{laser}$};  % axis world \draw[-latex,line width=1pt,blue,line cap=round] (0,0,0) -- (1.5,0,0) node[anchor=north west]{$y_{world}$}; \draw[-latex,line width=1pt,blue,line cap=round] (0,0,0) -- (0,1.5,0) node[anchor=north]{$x_{world}$}; \draw[-latex,line width=1pt,blue,line cap=round] (0,0,0) -- (0,0,1.5) node[anchor=south]{$z_{world}$};  \end{tikzpicture}  \stepcounter{angle} \ifthenelse{\theangle<359}{         \newframe }{         \end{animateinline} } } \end{figure} \end{document}   But I obtained an ugly effect (due to, I think, the TikZ picture that resizes itself every frame) composed by a rotation and a translation.  Does someone know how to achieve a correct rotation?


Rounding off issue clarification in java

I am using Math.round(). This is the sample code:  double value = 0.14499999970197677;  value = Math.round( value* 100.0) / 100.0;   My expectation is it should return 0.15 but it is returning 0.14 Also, if the value is 0.13499999970197677, then it is returning 0.13, why not 0.14  I have already gone through the link   Please tell me clearly that why this is happening with both the numbers?


In ArcGIS Desktop we are able to create a file geodatabase and also a feature class.   Is this possible in QGIS?


What is the perception of foreign Universities (Non UK) in the US for prospective academic positions (Postdoc/Tenure)?

First of all, I know that your work speaks for you, and if you have really good papers, you have better chances, but just bear with me, and for the sake of argument lets assume that your research is only one of the points to consider.  I did my undergrad in what could be considered the best University in my Country (Mexico)and got a Magna Cum Laude.  And then, I did my Graduate studies in the University of Tokyo publishing a couple of Journal Papers (I'm really pushing for that 3rd one!)  This question is directed to people in the US, since I'm looking to find a permanent position.  What is the perception Universities in the US have of foreign Universities? I happen to know that UK Universities like Cambridge and Oxford have no problem (for obvious reasons), but a professor friend of mine told me that other Universities are just not that well known. And having a degree from the Hawaii University was better than having a degree from Tokyo University. (As a side note, he is a professor at Haw Univ, and he wanted me to apply over there)  I just want to know how true or false this is, and realistically speaking how hard/easy is to get a position as a postdoc and eventually a full time professor if you are not from a US univ.  For example, do I have the same chances as someone who graduated from a top University (your Ivy leagues, Public Ivy League, MIT, Stanford, etc) or do I least have the same chances as middle range Universities?  As a side note, I have a postdoc in the UCLA lined up, so I guess that'll boost my chances a bit.


How to show the coordinates of point handles in Adobe Illustrator?

When I move cursor on an anchor point, Illustrator shows me the coordinates of the anchor. But how can I find the [x, y] coordinates of the handles (in red circles)?


Can I get windows 7 like window resizing on Mac OS X?

Windows 7 has a nice new feature for moving around windows.   The one that I am particularly interested in is:  Windows Key + Left/Right : Move the window to the left or right of the screen, or over to a second monitor.  But, Windows Key + Up: Maximize the current window and Windows Key + Down: Restore or minimize the current window. are also quite useful.  Is there anyway that I can get this functionality in OS? Preferably replacing the windows key with Command Key.


After a sizeable amount of work we are releasing a new version of the mobile web site, this time focusing on the question and answer page. We have also fixed or implemented a minimal large part of the issues and requests mentioned in the . Changes Question and answer page  SVG icons for upvote, downvote, favorite, comment upvote white background color for legibility general styling issues with notices (they actually exist now) bounty link is now in question menu (next to flag)   Ask question page  general styling and sizing of element use of placeholders where appropriate instead of page text styling of error messages   Pop-ups  Popups are now inlined in the page instead of being sometimes floating and draggable Many overdue styling issues Close button is SVG Flag indicators are readable Buttons   Misc pages  404 page did not exist. Now it does. Login, logout are formatted Pre-ask and pre-answer warnings are now formatted  Bugfixes  made search magnifying glass bigger fixed language in user timeline so it's consistent with the desktop site added login link on top bar made topbar icons ever so slightly smaller  Restating the obvious: send your <3 to  and   for the most excellent design! Feedback , bugs and suggestions while we move to the next iteration? Please mark bugs with


There is no line here to end. What's the error?

Ans7)As we can see from the automata itself that it is $\epsilon$- NFA so we need to convert it into a NFA and then to a DFA.\\ The Transition table is:\\ \begin{center} \begin{tabular}{|c|c|c|}   \hline  &a&b\\ \hline q2 &\{T,q1\}&\{q0,q1\}\\ \hline q1 &\{q0\}&\{q0\}\\ \hline q0 &\{q1\}&\{q1\}\\ \hline T &$\{phi\}$&$\{\phi\}$ \\ \hline \end{tabular}\\ \end{center} \\


Area 51 reputation not shown in 'Your Communities' drop-down

If you have Area 51 followed, the network drop-down does not display the reputation for the site:    Is this an error or a bug? As with the other quirks of Area 51 mentioned in , it's hard to tell.


Possible Duplicate:          In terms of construction of sentences, can the two words while and whilst be used interchangeably?


It is from . It is at around 8 minute and 39 second. Here it goes:     Culinary cultural fusion is all the rage; more novels translated from languages then ever before, although few are read, and in the surest sign of cultural globalization, football, the world's game, finally has reached America.   I guess the sentence would make sense if the preposition in were dropped out. Could you please tell me what did the host use it for?


Marginal distribution of random variable with multinomial sampling distribution and parameters $(n,\boldsymbol{p})$, where $n \sim $ Poisson

Suppose you have:  $X|N \sim \text{MN}(N,p_1,p_2...p_J)$  $N \sim \text{Poisson}(\lambda)$  Where is the marginal distribution of $X$?


Animation about a tribe living on a (tree root?) tether between two planets

Looking for an animated show/movie. It's about a tribe that live on a tether between two planets, made up of something like tree roots.   The story is about one of them wanting to know more about the place they live and what is beyond their village.


Walking Dead - Corpses in Cars not zombified. Why?

In season 2, episode 1 of the Waking Dead, there is a scene in which dead people are shown in their cars, not having been zombified. However, we know from a later revelation that everyone is infected and will turn in to zombies when they die. Taking that into consideration, it would seem that those who had died in their cars would have turned in their cars and walked away. However, they are simply rotting corpses sitting in their seats without apparent head trauma to indicate prevention of the zombification process.


jQuery .load() is blocking my script on mobile

I'm using jQuery .load() to include some HTML in my page. The content is shown as expected but all the events bounds to the included HTML aren't working  $('.main').empty().load("foo.html"); $(function() {   $('select').on('change', function(){     alert('bar');   }); });   It works on desktop but not on mobile. I cannot figure out why... I suppose that the load() function is responsible for that, because as soon as I put the HTML content directly in the main page, it works...


I am a bit new LaTeX, so having some difficulties.  I am writing a paper using the IEEtran template. I use the graphicx package to insert the figures: \usepackage[pdftex]{graphicx}  I try to add the figure using the following code:  \begin{figure}[!t] \centering \includegraphics[width=2.5in]{testy.pdf} \caption{Simulation Results.} \label{fig_sim} \end{figure}   The figure is in the same directory with the *.tex file  But, after the tex file is complied, the borders of the figure show up in the resulting pdf, also the captions are there, but the picture itself in not rendered. There is a strange border with the name of the picture within it.  What am I doing wrong?


Can't see objects properly in Material Preview

For business reasons I found myself having to install Blender on my office computer to view 3D files. Now it is no longer necessary but this program and its potential intrigued me a lot, so I proceeded to install it on my home computer. Once installed I started to see some tutorials on the web and when I got to coloring objects (or assigning materials) I ran into a problem. Basically once I create the material to assign to the object and its "Base Color" if I go to the "Preview Mode" window I get a completely dark object. At first I thought I had something wrong with my custom object but I also tested the startup cube and I get the same result.  Rendering the final image with Eevee I get the following image.  Instead if I try to render with Cycles I get the right image, but I have read that Cycles doesn't work well with AMD graphic cards, and it is also slow.  My hardware is as follows: Motherboard: MSI B450 Gaming Plus Max CPU: Ryzen 5 3600X GPU: XFX AMD RX580 RAM: Corsair Vengeance 2x8GB 3200MHz C16 AMD drivers are the latest recommended, so 20.11.2 The version of blender I installed is 2.91.0 Please tell me if I was exhaustive with the explanation of the problem or you need more details. Thank you very much!


Center both horizontally and vertically with variable size, maxing 1000px width/height;

I am trying to center vertically and horizontally an image with variable width and height, maxing at 1000px. I archived vertical center but I am unable to add horizontal center without breaking vertical... Here is my code:


Triger Ajax ActionLink from popover button

I have a btn that when clicked its open popover with three other btn. One of them should trigger Ajax. I'm using data-html="true" in order to set the btn inside the popover. I added a onclick to the delete btn in the popover, but when running the page its just wont appear in the tag, the same with href="javascript:function()".  Any Idea what I can do to call Js function from the btn inside the popover? Html:  <a href="#" class="secondary" role="button" id="mealbtn" data-toggle="popover" data-placement="top" data-content='
 c.mealId == item.mealId).First().RecipeId" class="btn btn-info btn-sm">
' data-html="true" title="@Model.recipesCon.Where(c => c.mealId == item.mealId).First().Recipe.name" >   Js try:  $('#delete-meal-btn').click(function () {         alert('btn clicked');   });


I would like to estimate the optimal weights where weights are all positive and add up to $1$. The most basic problem of this is as follows:     Regression $y = \beta_1x_1 + \beta_2x_2$ with constraints $\beta_1 + \beta_2 = 1, \beta_1, \beta_2 > 0$.   Try  I would make up the following loss,  $$ \sum (y_i - \beta_1 x_1 - \beta_2 x_2)^2 + \lambda (\beta_1 + \beta_2 - 1) $$  where $\lambda$ : lagrange multiplier.   But I'm not sure this optimization problem is related to any statistical problem.


Can a superuser (with 'root' access) manipulate data on a database installed on the server?

I am inquiring as to what access a user with the 'root' password on a Linux server has.  On this server, a database is installed.  If someone logs into 'root' do they now have full control (the ability to read, modify, delete, execute) data within that database?  Thank you kindly for your assistance.


Can an atomic nucleus contain both particles and antiparticles?

Is it theoretically possible to make a "deuterium" atom containing a proton and an antineutron in its nucleus?  Would the strong nuclear force cause attraction between a proton and an antineutron?  Would such a nucleus be stable, or would the proton somehow annihilate the antineutron when close enough?


Which one is better : Loop with SOQL or create a List then Loop?

Some of code I read in trigger is like this    for(account a: [select id  from account where id in: mapAccount.keySet()]) {     //code      }    some are like   List<Account> listAccount = [select id  from account where id in: mapAccount.keySet()];   for(Account a: listAccount ){   //coode   }   Are those same from performance view?which one is better?


Android : How to send data from Activity to Fragment (Error: Bundle is empty)

I am very new to Android and a high school student. So I think it'd be nice if you could give me the code, too. I implemented login using firebase and LoginActivity.FragmentIndivative in java.I want to send my name, e-mail address, and phone number to java. So I used a Bundle object, and NullpointerException occurred. Please help me. I don't have time. I'll wait for you guys. I'll attach the code below. Please take good care of me. private void signUp(){     final String email = ((EditText)findViewById(R.id.idText)).getText().toString();     final String password = ((EditText)findViewById(R.id.pwText)).getText().toString();      if(email.length() > 0 && password.length() > 0){         mAuth.signInWithEmailAndPassword(email, password)                 .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {                     @Override                     public void onComplete(@NonNull Task<AuthResult> task) {                         Intent intent1;                         if (task.isSuccessful()) {                             FirebaseUser user = mAuth.getCurrentUser();                             startToast("로그인에 성공하였습니다");                              fragmentIndividual = new FragmentIndividual();                             FragmentManager fm = getSupportFragmentManager();                             FragmentTransaction fmt = fm.beginTransaction();                              intent1 = new Intent(getApplicationContext(), MainActivity.class);                             intent1.putExtra("name", "nnnaa");                             Bundle bundle = new Bundle();                             bundle.putString("name", mAuth.getCurrentUser().getDisplayName());                             bundle.putString("email", mAuth.getCurrentUser().getEmail());                             bundle.putString("phone", mAuth.getCurrentUser().getPhoneNumber());                              System.out.println(email);                             System.out.println(mAuth.getCurrentUser().getEmail());                              startActivity(intent1);                         } else {                             if(task.getException() != null){                                 startToast(task.getException().toString());                             }                         }                     }                 });     }else{         startToast("빈 칸을 채워주세요");     } }   public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {     View view = inflater.inflate(R.layout.fragment_individual, container, false);      Bundle bundle = this.getArguments();     if(bundle != null){         bundle = getArguments();         String name = bundle.getString("name");         String email = bundle.getString("email");         String phone = bundle.getString("phone");          View v = inflater.inflate(R.layout.fragment_individual, container, false);         nameTv = (TextView)v.findViewById(R.id.nameTv);         emailTv = (TextView)v.findViewById(R.id.emailTv);         phoneTv = (TextView)v.findViewById(R.id.phoneTv);          nameTv.setText(name);         emailTv.setText(email);         phoneTv.setText(phone);     }      return view; }


Is GNOME Terminal a type of non-login shell?

According to the answer to  on Ask Ubuntu, GNOME Terminal is a type of non-login shell. As pointed out in the excellent book, A Practical Guide to Fedora and Red Hat Enterprise Linux, 6th Edition:  an interactive non-login shell executes commands in the ~/.bashrc file. The default ~/.bashrc file calls /etc/bashrc.  As a result, /etc/profile won't be processed in a non-login shell. However, I found that I have appended the java home path to the PATH variable and, when I use GNOME Terminal and issue the command java, everything goes fine. Also, the value of the PATH variable is the same as the value I defined in /etc/profile. In view of the above-mentioned facts, there is a conflict, what’s wrong with my understanding?


Steps to solve this system of equations: $\sqrt{x}+y=7$, $\sqrt{y}+x=11$

I want to solve this system of equations, I have been out of Maths for a long!!  $$\sqrt{x}+y=7$$  $$\sqrt{y}+x=11$$  Just wondering easiest step to find values for $x$ and $y$ from the above equations?


What is different from getString with String in java?

I have some json like [{"person":"123abc"}] in variable JSON_STRING i try parse json to string like this      JSONObject person = (new JSONObject(JSON_STRING));     String name = person.getString("person");     String test= "123abc";     if(name == test){        System.out.print("Success");     }else{        System.out.print("Fail");     }    I make some simple logic with if else but i have some problem variable name and testnot same because result Fail. I don't know why content variable name and test considered not same. Please help if anyone have some solution.  Thanks


Why does my logistic regression model fit probabilities numerically 0 or 1?

When I fit a logistic regression model with my data set, I get the warning "glm.fit: fitted probabilities numerically 0 or 1 occurred", and the result for one of my dummy coefficients $x$ is nonsensical (extremely high estimate and variance). I'm aware that this warning usually indicates a perfect prediction problem, where the independent variable $x$ is perfectly separated by the dependent variable $y$. In my case, the reason seems to be that $y$ has the same value for all cases where $x=1$. However, in cases where $x=0$, the values of $y$ vary and it sometimes takes on the same value as when $x=0$. So $y$ doesn't perfectly separate $x$, but still this is what causes the problem. When I change just one of the $y$ values for $x=1$, the model estimation works fine. Why does this error occur in my case, if the perfect prediction problem isn't the cause? I'm not looking for a solution, I just want to understand the problem.


what is the best way to patch a hole in a spherical mesh

how would you fix the hole so that its even like the other parts of the mesh?


I really need help. Even if you are not sure of the solution, please suggest something. I really need it.  I formatted a pendrive in macOS using disk utility (GUID, macOS extended journaled). Then I copied macOS setup for hackintosh. Then I used clover(software to make macOS pendrive bootable) to mount the efi partition. It created a 200MB efi partition. Later I needed to format the drive to use it. On windows, disk management doesn't show the option to delete the efi partition. It shows option to delete the larger partition but even after clicking delete nothing happens. I read many articles on internet. I used diskpart as administrator and selected my disk and used clean command. It showed disk cleaned successfully but it lied. The disk is the same. With efi partition and the data on the main partition also there. I first tried macOS disk utility to erase the disk but it says failed to erase the disk. Under details, it says partition not unmounted. I booted into my linux, used terminal df to list disks. Then unmounted the pendrive using umount. Then formatted using mkfs. All commands are sudo. Terminal showed cleaning disk, creating partition table etc. After it was over, I see again that the disk is unaffected. It's new pendrive. Worked fine. No problems with pendrive whatsoever.   I also tried third party softwares but they all do what diskpart in Windows and terminal in Linux did which is => showed formatting completed but actually nothing happened to the pendrive. Please help me format it.


I am failing to add a heading for the appendix to the ToC with the correct page number:  \documentclass{scrbook} \begin{document} \tableofcontents \chapter{test} \appendix \addcontentsline{toc}{part}{\appendixname} \chapter{First Appendix} \end{document}     I also tried to use the \addappheadtotoc command from the  package, but that changes nothing (expect that it writes 'Appendices' instead).  I assume that the appendix package provides the solution, but I could not figure out how to use it.


Question marks inserted in mysql database

When i'm trying to insert Arabic characters in MySQL, It inserts question marks although it was working well locally  Also I added the set Character set code for db connection as follows :  mysqli_query($dbcon,"SET NAMES 'utf8'");  mysqli_query($dbcon,'SET CHARACTER SET utf8');    All my php files is UTF8 character set also database files is utf8_general


I cannot turn Bluetooth off on my MacBook Pro. I am running 10.7.4 and the option to turn it off is grayed out, both in the toolbar and in System Preferences. I used Onyx to reset permissions but to no avail. Help, please! I am not using any Bluetooth devices and I'm not sure when or how it got turned back on, but I've always made sure it was turned off. My battery is paying the price!


How to create a circuit drawing that allows easy mapping for setting up a breadboard

I've read the post  and whilst it does contain a lot of useful information, it doesn't address my question about a drawing to be use for breadboards.  As I progress through learning EE (with help from the Arduino), I’m finding that creating circuit diagrams is becoming a little awkward, and I’m not sure what is the ‘right’ way of doing this to make it better/clearer.   I create circuit diagrams, then load up breadboards using the diagram as a guide, so a messy diagram is really unhelpful. (I am not planning on creating circuit boards at all at the moment. This is just a hobbyist/learning process, as I play with different circuits, components etc)  Basically, I’m coming up with instances where multiple ICs are creating a LOT of cross over wires making it incredibly difficult to trace things through or easily see what connects to what.   A simple example is trying to link up an 8x8 LED Array (1088BS) to a MAX7219 Led Driver chip. The Pin I/O of each device is not helpful, and just looks like spaghetti on my drawing when I connect everything together.  I’ve currently switched to drawing each IC multiple times, so I can see the I/O in the correct order from each side. In the following drawing, the top half and bottom half of the page each only detail 2 ICs each, although 6 are drawn. (this was drawn using Visio until I learnt the right way to do it in an EE design application)   If I drew this diagram, with the ICs side by side, and the pins in the correct place, as it would be on the breadboard, it would just be an unusable mess.  What is the ‘correct’ way of drawing this kind of design?  And would the ‘correct’ way be more beneficial to me as a guide to laying out breadboards? (and later on vero-boards)  The more I think of it, the more I'm thinking that it may not be possible to achieve, and I should change my approach to the problem rather than creating yet another drawing.


I'm writing an ASP.NET MVC site where I'm running into a dilmena on how to set up proper caching. I'm trying to achieve something similar to how Stack Overflow works with caching, in that all pages are cached while:   Showing the username of the current user, as well as badges and reputation Dynamically hiding/showing certain action links (e.g., the "edit" link on a question is only visible to some users) and more   How is this implemented?  I've tried looking through the SEDE code, but haven't found anything related to caching (probably because SEDE runs on Azure, so it's more complicated). One possible strategy that I can think of is   Thanks!


Probability of Appearance of a character in output.

We start with an arbitrary length string say 'n'. Now we follow a binary tree which has following property:   At first level:  (i). Starting character from the string is selected (and removed) and it represents the left branch of the binary tree.  (ii). Ending character from the string is selected (and removed) and it represents the right branch of the binary tree. At second level:  (i). Starting character from the string is discarded (and removed) and it represents the left branch of the binary tree.  (ii). Ending character from the string is discarded (and removed) and it represents the right branch of the binary tree.   Above two steps alternate until the string becomes completely empty. So from root to every leaf node, we'll have a path where some characters are selected or discarded. All selected characters in the path, appear in the output at leaf.  We need to calculate the probability of every character with which it'll appear in the output.  My approach:  First character will be selected on the root as left subtree, so all the children below it will have the first character which makes its probability 1/2 for left subtree, whereas when we proceed in right subtree, it'll not be discarded in the right subtree of it. Now again this will be selected as the next left subtree but since we have come down by 2 levels, number of times of appearance in output has reduced by 4 folds. And from here the probability will be $1/8$ and so on...   At the end I'm adding all those probabilities so it comes as:  $1/2 + 1/8 + 1/32 + ... $   But I'm stuck after finding the first character's probability. How to go about the second character and so on. I think I'm in wrong direction.  Please help me with this approach or any new approach which would work in this case.


How to extrude edges outward based on multiple axes?

I want to extrude these edges outward so that they are all the same length from their origin edge. Does anyone know how I could do this without doing each edge individually?


When I run the Index.jsp, I got so many errors

exception   org.apache.jasper.JasperException: java.lang.NullPointerException     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)     javax.servlet.http.HttpServlet.service(HttpServlet.java:728)   root cause   java.lang.NullPointerException     org.apache.jsp.index_jsp._jspService(index_jsp.java:117)     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)     javax.servlet.http.HttpServlet.service(HttpServlet.java:728)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)     javax.servlet.http.HttpServlet.service(HttpServlet.java:728)   I am beginner. It happen all time when I run this.


At which time exactly starts the ex-dividend-date?

Let's say some US company declares the ex-divided-date as Sep 30, 2020. Now at which time exactly does this ex-date start? When this stock is traded in stock exchanges world wide, is the UTC time taken? So UTC Sep 30. 2020 00:00:01 AM is the first second of the ex-date?


I was adding some small components to a Digikey order, just because I couldn't stand to pay the shipping costs for the single item I really needed.  I just received my order to find that the SMD LEDs are moisture sensitive.  I hadn't bothered to think about this issue, mainly because I really wanted SMD LEDs on my board because they look cool.  :)  After googling, I've read that either "most" SMD LEDs are moisture-sensitive, or that all are.  I haven't found any that specifically state that they aren't, and Digikey's search tool doesn't have this as a selectable parameter.  So my questions are:    does any manufacturer make a SMD LED that isn't moisture-sensitive, i.e. does not need to be sealed and / or mounted soon after opening the package, and are there any other cool looking LED options, besides a T1 through-hole package?  :)


Can a function with just one point in its domain be continuous?

For example if my function is $f:\{1\}\longrightarrow \mathbb{R}$ such that $f(1)=1$.  I have the next context:  1) According to the definition given in Spivak's book and also in wikipedia, since $\lim_{x\to1}f$ doesn't exist because $1$ is not an accumulation point, then the function is not continuous at $1$ (Otherwise it should be $\lim_{x\to 1}f=f(1)$).   2) According to  , as far as I can understand a function is continuous at an isolated point.  I don't understand.   Edit:   Spivak's definition of limit: The function $f$ approaches to $l$ near $a$ means $\forall \epsilon > 0 \; \exists \delta > 0 \; \forall x \; [0<|x-a|<\delta\implies |f(x)-l|<\epsilon]$ Spivak's definition of continuity: The function $f$ is continuous at $a$ if $\lim_{x\to a}f(x)=f(a)$


Error: Read only property   'StoreFrontController.productDisplay.quantity'   Visualforce :      <apex:page controller="StoreFrontController" tabStyle="Product__c" > <apex:form>      <apex:pageBlock title="Our Products">         <apex:pageBlockSection columns="1">             <apex:pageBlockTable value="{!products}" var="pitem">                 <apex:column headerValue="Product">                 <apex:outputText value="{!pitem.Name}"/>                 </apex:column>                 <apex:column headerValue="Condition">                 <apex:outputText value="{!pitem.condition}"/>                 </apex:column>                <apex:column headerValue="Price">                 <apex:outputText value="{0,number,currency}" style="text-align: right;">                 <apex:param value="{!pitem.Price}"/>                 </apex:outputText>                    </apex:column>                 <apex:column headerValue="Stock">                 <apex:outputText value="{!pitem.stock}"/>                 </apex:column>                 <apex:column headerValue="Qty to Buy">                 <apex:inputText value="{!pitem.quantity}" rendered="{! pitem.Stock}"/>                 <apex:outputText value="Out of Stock" rendered="{! NOT(pitem.Stock)}"/>                 </apex:column>             </apex:pageBlockTable>         </apex:pageBlockSection>         <apex:pageBlockSection>             <apex:commandButton title="Add to Cart" value="{!addToCart}"/>         </apex:pageBlockSection>     </apex:pageBlock>     <apex:pageBlock title="Cart Contents" id="shopping_cart">         <apex:outputText value="{!cartContents}" escape="false" />     </apex:pageBlock>     </apex:form> </apex:page>   **Apex Class : **      public class StoreFrontController {     list<productDisplay> prd;     list<productDisplay> shoppingCart = new list<productDisplay>();      public pageReference addToCart()     {         for(productDisplay ploop : prd)         {             if(0<ploop.quantity)             {                 shoppingCart.add(ploop);             }         }         return null;     }     public String getCartContents()     {         if(0==shoppingCart.size())         {             return '(Empty)';         }         String msg = '<ul>\n';         for(productDisplay pdLoop : shoppingCart)         {             msg += '<li>';             msg += pdLoop.name + ' (' + pdLoop.quantity + ')';             msg += '<li>\n';         }         msg += '</ul>';         return msg;     }         public list<productDisplay> getProducts()     {         if(prd == null)         {             prd = new list<productDisplay>();             for(product__C item : [ SELECT Id, Name, quantity__c, condition__c, Price__c,                                         stock__c FROM product__c])              {                 prd.add(new productDisplay(item));             }         }         return prd;     }     public class productDisplay {     public Product__c p;     productDisplay(Product__c itemDisplay) {         this.p = itemDisplay;     }     public String name     {         get{return p.name;}     }     public String condition     {         get{return p.condition__c;}     }     public Decimal price     {         get{return p.price__c;}     }      public boolean stock     {         get{return(0<p.Stock__c);}     }     public Decimal quantity {get{return(p.Quantity__c);}     } } }


I'm looking to create a virtual printer that passes data to my .NET application. I want to then create an installer that installs both the printer and the .NET application.  It would we really nice to be able to write it all in C#, but I have a feeling that this will require a printer driver to be written is unmanaged code.  Does anyone know of a fairly clean tutorial or example of how to do this?


Is there a jail besides Azkaban for short-term sentences?

There are a number of crimes that in the real world result in short-term jail sentences. For instance, driving under the influence in California results in  (or a license restriction). Other crimes may also have short sentences that are a matter of days.  The only jail that I know about in Harry Potter is Azkaban, and sending someone there for flying a broomstick under the influence seems…harsh. Is there any evidence that such short-term jails exist? If not, are there alternative punishments for less severe crimes that prevent the need for such short-term jail time?