"The Loop May 2020" contains inaccessible image with no transcription

In the latest blog post, , there's an image directly after the first line. It contains a chart and looks like it contains useful information, which is nice.  However, if you can't see images (or are using a screen reader or something), then... you can't access any of the information on the chart. This is what it looks like if I disable images:    This is a regression of sorts; in the Q2 Community Roadmap blog post, there was a very nice chart included that was not in image format (which has the additional benefit of being able to copy-paste, and of being dark when dark mode is enabled):    Could you please either at least add alt text for the image in the May 2020 Loop blog post, or, preferably, abandon the chart-in-images thing and just use the text charts?


I want to perform file operations(fread, fwrite... etc) with a array(char*, but if is possible with any type also will be good).  I know that i can do it with sprintf and sscanf, but i no want use these. Why? i are writing a Intel 8080 emulator, and i are writing the RAM, so i will read more that individual chars, read ints and so on.  I want use fread and fwrite because you can give them the size of the elements, with sprintf and sscanf you can use format, but i must write code for every type.  At this moment i don't have any issues, nor much code, i only want know if my question has a answer, else i will see how convert a array of char to other data type...  Resuming, i can use char* as FILE* ?.    Sorry for my bat English...


The following forest flowchart was made (spanish language):    I want to localize the above flowchart on a small part of beamer's slide:    I know maybe \hspace{} and \vspace{} could help, but also something like "resize" is needed. And I don't know how to do it.  Below I copy a MWE with the necessary code:  \documentclass[12pt,twoside]{beamer} \usepackage[spanish,es-noquoting]{babel} \usepackage[utf8]{inputenc}  \usepackage[T1]{fontenc}  \usepackage{multimedia} \usepackage{forest} \usepackage{float} \usepackage{booktabs} %\setbeamercovered{transparent} \usepackage[flushleft]{threeparttable} \setbeamertemplate{frametitle}[default][center] \setbeamersize{text margin left=2em,text margin right=2em} \begin{document}  \begin{frame}[shrink=25]{Resultados - glioxal} \medbreak \centerline{Una vez establecido el estado de protonación se estimó $\Delta G^\circ_{\text{r}}$.} \vspace{-0.5cm}\centering{ \begin{threeparttable} \caption{Reacción problema}\label{table:reaccion_central} \begin{tabular}{lcc} \toprule              \multicolumn{1}{c}{Compuesto}  & \multicolumn{2}{c}{RM1}                      \\ \midrule                                      & $\Delta G^\circ_{\text{COSMO}}$ & $\Delta G^\circ_{\text{SS-COSMO}}$ \\ \cmidrule(lr){2-3} CC$_{\text{ref}}$                  &      -                   &    -                         \\  cis dihidro-dihidroxi                & 20.6                     & 15.9                        \\  trans dihidro-dihidroxi              & 20.6                      & 15.1                         \\  &  &  \\  H$_{\text{ref}}$                   &    -                      &    -                        \\  glioxal-1ºhidratación                & -1.5                    & -4.0                       \\  glioxal-2ºhidratación                & -1.4                     & -2.9                       \\  glioxal-neta                        & -2.9                     & -6.9                         \\ \bottomrule \end{tabular} \begin{tablenotes} \item {\scriptsize $\text{H}_{\text{ref}}$: 2PG = PEP + H2O y $\text{CC}_{\text{ref}}$:2,3-diMMA = propanoato + pir. Se reemplazó dihidro-dihidroxi- imidazol por dihidro-dihidroxi.}%Resultados con hamiltoniano RM1, aplicando la estrategia isodésmica. Las Referencias son:   \end{tablenotes} \end{threeparttable} }\medbreak  \begin{forest}   for tree={     rounded corners, draw, align=center, top color=white, bottom color=blue!20,     edge+=->,     l sep'+=10pt,   },     [This      [is the forest        [chart I want ]%want this block green if is possible.. :)        [but it is not]      ]      [working        [help!]      ]    ]  \end{forest} \end{frame} \end{document}   Any help?


It seems I cannot show off my awesome new collection of haberdashery on the Meta-sites associated with my favorite Stack Exchange Sites.  This is an outrage.  Almost as much of an outrage as


What's the difference between the two?     Later the doctors found out that my case was a bit different.      Later on the doctors found out that my case was a bit different.   Is one more common than the other?


Why is my object disappearing unless is close?

I don't know why, its been a while since I've been on blender but I've opened my project and everything in rendered is blue unless this object (that gray guy, he shouldnt be gray) is close I can not see it and it sinks behind the blue. I might just have a box checked somewhere or it might be something dumb. I am using version 2.7.7


How to upgrade form PHP virsion 7.x to a higher one?

Using phpinfo(), I have found that the installed version of PHP is 7.0.26. I want to upgrade it to PHP 7.2.


Why must you be root to change the max_PID amount using echo when sysctl can change max_PID using sudo?

I am taking a Linux course and am confused by the user restrictions I found in one lab.  The lab is to change the maximum number of PIDs, verify the change, and then put it back to normal.  The lab offers two different ways to do this: 1) echoing the value into /proc/sys/kernel/pid_max, and 2) using sysctl to change the value.  What I am not able to determine is why the echo has to be executed as root and the sysctl can use sudo. Thank you, in advance, for an answer. Here is a copy of my bash window as examples: me@localhost:~$ cat /proc/sys/kernel/pid_max 32768 me@localhost:~$ sudo echo 2400 > /proc/sys/kernel/pid_max bash: /proc/sys/kernel/pid_max: Permission denied me@localhost:~$ sudo sysctl kernel.pid_max=2400 [sudo] password for me: kernel.pid_max = 2400 me@localhost:~$ cat /proc/sys/kernel/pid_max 2400 me@localhost:~$ su Password: root@localhost:/home/me# echo 32768 > /proc/sys/kernel/pid_max root@localhost:/home/punko# exit exit me@localhost:~$ cat /proc/sys/kernel/pid_max 32768


Are HTML encoded symbols allowed in meta description?

I am using HTML-encoded symbols like &mdash; or &amp; inside the meta description field. Will they be displayed properly by Google and other engines or should I correct the text to have only ASCII symbols?


If electromagnetic fields give charge to particles, do photons carry charge?

As I understand these two statements:   An electromagnetic field gives particles charge A photon is a quantum of electromagnetic field   It must mean that a photon carries charge. But I guess it isn't true. Why not?


After an earthquake in California, everything to the east is gone

Definitely published before 1980. City on west coast experiences massive earthquake. A survivor, who I think lives in the mountains above the city, (LA, San Fran?) comes out of his house when the quake has ended and expects to see that the Pacific Ocean has dropped/disappeared, but all is well. He walks back to his house and instead looks east, and everything is gone.


Why reputation needed for commenting but not for answers?

I feel this is little unnatural I appreciate allowing users to answer without any minimum reputation but why restricting them from commenting.By restricting them to comment with limiting reputation to 50 the new users using answers to express their views and the next process will be deleting of that answers I hope there should be no limit for commenting too so that at least some burden on moderators will be reduced.Hoping SE developer will respond in positive way.


Problems with regex applied to a specific string in Python, but it works OK "everywhere" else

I created a regex to parse two floating point numbers and a * symbol between them using Python. As I am completely new to both I've tried basic online guides on using re library and regex itself. I came up with ((\d+)?(\.?)\d+)\*((\d+)?(\.?)\d+) which works fine  even for the string in question, 2+21.0*2*2.  But if I use this expression and string in Python like so m = re.match(r"((\d+)?(\.?)\d+)\*((\d+)?(\.?)\d+)", "2+21.0*2*2") it gives me "None" object. I do not see any obvious problems, any ideas why it does not work?


Am I high? Room owners can edit message that they moved posts?

What on earth?  Why are these message, these audit trail message, allowed to be edited? It's just nuts!  If they are important enough to be added to transcript, why can they be hidden? Yes I know that you can look at the history of that post, but come on now, that is half arsed excused.  I am not asking this as feature requests to make them not editable, I am reporting this as a Samuel L Jackson style mother (better judgment stepped in) bug!  These messages MUST be added to the transcript via the 'feeds' user! It is not trivials information that can be allowed to be just glossed over.


How can I eliminate wine application options from Thunar's context menu?

I have Xfce and in Thunar file association are changing randomly, to wine applications like jpeg and png to Internet Explorer and mp3 to Windows Media Player. I change it back to  gpicview and Totem and after a while, when I click on the file it starts up wine again (which takes forever to load, and IE doesn't even work, and gives an error when it loads).  How can I make my file association changes permanent, and stop them changing to wine software?


why sample variance has has n-1 in the denominator?

Sample variance is calculated according to:  $s^2=\frac{\sum{(x-\bar{x})^2}}{n-1}$  Population variance is calculated according to:  $\sigma^2=\frac{\sum{(x-\mu)^2}}{n}$  Why denominator for sample variance is $n-1$ and not $n$?  Any help is appreciated.


How can I change directory to a folder on my mapped network drive in terminal?

Ok so I'm learning terminal.  I'm trying to cd to folder: /network/NAS/Z-1/1 Video/1 Video  After running df, the NAS volume (Windows 10 volumed on my home network btw) is mounted in "/Volumes/Z-1/" (Not sure why my "Z" folder was renamed to "Z-1"?)  Anyways, so I can change my directory to the "Z" folder (or "Z-1") on the NAS drive, but I can't change my directory to the "1 Video" folder inside the "Z" folder.  I've tried using:  cd /volumes/z-1/1 video  I've also tried using an underscore inbetween 1 and video.  Here's an image for reference:


bash: Colorful prompt and long command line

I give my git colorful prompt but it never fully works. After so many trails I've pinned point where the problem is (completely stripped git out of the problem). Here it is, manifesting the symptom as simple as possible:  If there is any colorful characters (using escape ANSI color) in my bash prompt, e.g. PS1="\n\e[33m\w\e[0m\\\$ ", when the bash prompt plus the string on the command line is over certain threshold, the remaining characters will wrap-up and printed on the same line. If there is no any colorful characters (using escape ANSI color) in my bash prompt, e.g. PS1="\n\w\\\$ ", then everything behaves normally -- when the bash prompt plus the string on the command line is at the screen border, the remaining characters will continue on the next line.  Any fixes?


I run jupyter notebook (Python editor) on background in order to keep one terminal for keep working without needs to run a second terminal. so I have done this:   #jupyter notebook &   but the problem is when jupyter notebook is running it keeps send me logs, and this is typically painful and bother me when I'm typing command.  I wanted to stop jupyter notebook to send me these logs???


Is there a Grammar checker for LibreOffice on Ubuntu?

I have been looking to install spell checkers on LibreOffice but I could not find any stand alone Grammar checkers for LibreOffice.  Does anyone know any Grammar checker, like Grammarly, for Ubuntu?  There was a solution posted on  but that required Java to be installed.  I am looking for a Grammar checker that does not need additional features installed.


how to check if an iPhone is jailbroked or not in swift?

I want to prevent a user to fake the GPS coordinate, there is an app that can be run to fake the GPS if the iPhone is jailbroken. so to prevent this issue I want to check if the user is jailbroken or not, if the user uses the jailbroken iPhone, I will force close the app.  how to do that in Swift ? I can't find it in stackoverflow so far


How do I add a widget to my lock screen?

I am running a fully stock Android 4.4.4 Nexus 5, with Nova (Premium) Launcher. Since I first bought this device, I have heard, read, and been told that adding widgets to the lock screen is possible, as long as it is enabled in settings. Well, it is, but I can't figure out for the life of me how to actually add them.  Sorry if this is a Super Newb question, I've Googled, Binged, etc...  With no luck whatsoever. The only thing I seem to ever come across are instructions on how to enable them, which as I stated, I have done.


After I have removed vertices, error says "loop in parent"

After I parent my model with the bone, it shows loop in parents.   Does anyone know of a solution?


I just want a short clarification on these two lines of code. What's the difference between these two?  SuperClass c = new JustTesting(1, 'b'); JustTesting b = new JustTesting(2, 'c');    By the way, in case you'd want to see the full code, here it is:  import static java.lang.System.out;  public class JustTesting extends SuperClass{  public JustTesting(int firstVar, char secondVar) {     super(firstVar, secondVar); }  public static void main(String[] args) {     SuperClass c = new JustTesting(1, 'b');     JustTesting b = new JustTesting(2, 'c');      out.println(c.firstVar);     out.println(b.firstVar); } }


Using calculated field to retrieve substring of another field

Suppose I have a field that contain the following data:   ========================== |  Email Address         | ========================== | Jack@wonderland.com    | | Peter@nobodyland.com   | | Jill@wonderland.com    | ==========================   Is there a calculated formula in SharePoint that will give me the following result? (It will help me to retrieve the sub-string from the Email Address column and give me the answer as shown in the UserName and Domain column):   =========================================================== |  Email Address         |  UserName  |      Domain       | =========================================================== | Jack@wonderland.com    |   Jack     |   wonderland.com  | | Peter@nobodyland.com   |   Peter    |   nobodyland.com  | | Jill@wonderland.com    |   Jill     |   wonderland.com  | ===========================================================


I want to change the function of some commands consisting of only one letter, such as \e or \i, and make them abide by MY rules. (Mouhahaha!) I have done this before with other commands like \in or \=, but it seems that one-letter commands are special for some mysterious reason.  In particular, I'd like to make a new command \i to use it in math-mode, but this produces an error.  Here is just a part of my document:  \documentclass[12pt]{article}  %   % symbols \let\i\undefined \newcommand{\i}{\mathrm{i}}   % begin languages \usepackage[LGR,T1]{fontenc}   \begin{document}  $\i$ $i$ i  \end{document}   I get the error  Command \i invalid in math mode   The .pdf file is, nevertheless, produced and \i appears as the greek letter beta. I tried other ways (which now I cannot recall) that had \i to appear as a dotless i instead of beta.  And why don't I get the same error with \e that also has a predefined meaning?


Windows-10 tablet onscreen keyboard arrows

At times it would be very helpful to have up and down arrows while using the Windows 10 tablet onscreen keyboard. Is this possible?


Car Rental in Ireland for under 25 year old

Can a person aged 24 rent a car in Ireland? I have tried a number of car rental companies but all of them have a minimum age requirement of 25.


Get unknown quantity of parents from child in same table

First of all this question is similar to  one but the difference is that I have an unknown quantity of parents. Is is possible and if so how would I get all parents of a child when I only know the Id of any child? I have a table like: +----+------------+----------+--------+ | Id |    name    | position | parent | +----+------------+----------+--------+ |  1 |        top |        1 |   NULL | |  2 |     middle |        1 |      1 | |  3 | bottom_1_1 |        1 |      2 | |  4 | bottom_1_2 |        2 |      2 | |  5 |   middle_2 |        2 |      1 | |  6 | bottom_2_1 |        1 |      5 | |  7 | bottom_2_2 |        2 |      5 |  Which would correspond to something like this visually: top  Ͱ middle     Ͱ bottom_1_1     Ͱ bottom_1_2  Ͱ middle_2      Ͱ bottom_2_1     Ͱ bottom_2_2  Unfortunately my knowledge of MySQL is not advanced enough to show some kind of foreach join method to give you as an example as I would only be able to go up 1 in the tree like: SELECT * FROM table WHERE Id in (7, (SELECT parent FROM table WHERE Id = 7))  This would return: +----+------------+----------+--------+ | Id |    name    | position | parent | +----+------------+----------+--------+ |  5 |   middle_2 |        2 |      1 | |  7 | bottom_2_1 |        2 |      5 |  But I would need something like the example below as the first entry of the above example still has a parent +----+------------+----------+--------+ | Id |    name    | position | parent | +----+------------+----------+--------+ |  1 |        top |        1 |   NULL | |  5 |   middle_2 |        2 |      1 | |  7 | bottom_2_1 |        2 |      5 |


(def. of strongly stationary) Difference between same joint distribution compared to same distribution everywhere

I'm learning about strongly stationary processes with the definition:  This implies that they have the same distribution for every $t$, I don't really understand what more "same joint distribution" adds. Could someone give a simple example where a process has the same distribution for every $t$ but not the same joint distribution for some indices?


Beamer: Weird content of \printbibliography

The following MWE produces a weird content of the printed bibliography and uses the wrong frame title.  \documentclass{beamer}  \usepackage{biblatex}  \begin{filecontents}{foo.bib} @article{barzel2007konnen,   title={Wie k{\"o}nnen Lehramtsstudierende auf den Einsatz von Rechnern  im Mathematikunterricht vorbereitet werden?},   author={Barzel, B{\"a}rbel},   journal={Beitr{\"a}ge zum Mathematikunterricht 2007, 41. Jahrestagung der Gesellschaft f{\"u}r Didaktik der Mathematik vom 25.3. bis 30.3. 2007 in Berlin},   year={2007},   publisher={Gesellschaft f{\"u}r Didaktik der Mathematik} } \end{filecontents} \addbibresource{foo.bib}  \AtBeginSection{\frame{\frametitle{Gliederung}\tableofcontents[sectionstyle=show/shaded,hideothersubsections]}}  \begin{document} \section{Literatur} \nocite{barzel2007konnen}  \begin{frame}[noframenumbering,plain,allowframebreaks]{Literatur}     \printbibliography \end{frame}  \end{document}   As shown below, the first frame is correctly placed with the toc. But the second frame has the wrong section title (should be "Literatur I" instead of "Gliederung I") and the space between the two horizontal rules should not be there.    If I comment out the \AtBeginSection, the bibliography is correctly rendered (see below), but the desired toc at the start of each section is missing - because i commented it out.    Any ideas how to fix this?


How can I create an .hpp for namespaces containing template classes?

I have to use C++ for a project (normally doing Haskell and C) and I completely hang on headers for namespaces. When I leave away the "arrays.hpp" and directly include "arrays.cpp" into other files (which is bad practice, I know). The code works fine, but when I try to define the header for the following code it no longer works (of course, I still pass all the .cpps to g++). I already read several Stack Overflow posts on that topic, but none of the proposed solutions worked for me, so I would really appreciate it if you could tell me how the header for this code might look.  #include <vector> #include <stdlib.h>  #include "arrays.hpp"  namespace Arrays {   template<typename Field> class Array {     private:     int rank;     int* shape;     Field* data;     public:     Array(int _rank, int* _shape, Field* _data) {       rank = _rank;       shape = _shape;       data = _data;     }     Array(std::vector<Field> vector) {       rank = 1;       shape = (int*)malloc(sizeof(int));       shape[0] = (int)vector.size();       data = (Field*)malloc(sizeof(Field)*vector.size());       for(int i = 0; i < vector.size(); i++)         data[i] = vector[i];     }   }; }   Here is what I tried so far:  #ifndef ARRAYS_HPP  #define ARRAYS_HPP  namespace Arrays {   template<typename Field> class Array; }  #endif   And this is G++'s response after invoking it with g++ *.cpp):  error: variable ‘Arrays::Array<int> array’ has initializer but incomplete type


How do I merge a question into another on Stack Overflow?

On a , the question came up how to merge the answers of one question into another.   A quick (search ) didn't reveal anything, so I'm asking this here.


How can I get all combinations of selecting one element from each list?

Suppose I have 4 lists.  group = [1] question_number = [1,2,20,22,34,36] response = range(1,6) score = range(100,-1,-25)   I'd like to get all tuples of selecting one element from each list.    (1,1,1,100) (1,1,1,75) ... (1,36,5,0)   I could do this with  loop, but I am wondering if itertools has something easier?  I know itertools.combinations can get all combos of length n.  Is there a similar function for multiple lists?


Fastest converging method for calculating e

Does anyone know what the fastest converging equation is for calculating e? I have found many different equations when I have been searching google, but I was wondering which ones can yield the most digits of e in the fewest terms.  Thank you.


Is Knowhere, the severed skull of an unknown Celestial floating in space, actually in fact the physical remains that once housed the brain of the Celestial Ego?


Why did no-one in the Nolan Universe suspect Bruce Wayne of being Batman?

At various times during the trilogy people are trying to find the Batman’s real identity.  Knowing the costs of Batman’s toys wouldn’t someone even suspect one of Gotham’s young rich men?  And the following points:    the Army knew of the Tumbler, or at the very least people who work for Wayne Enterprises would recognise the equipment Coleman Reese Bruce Wayne re-appears just as Batman does  "the Bat" is not a cheap bit of kit, not many people could afford it when Harvey Dent asks to take the Batman into custody, no-one notices Bruce stepping forward


Programmatic way to get all the available languages (in satellite assemblies)

I'm designing a multilingual application using .resx files.  I have a few files like GlobalStrings.resx, GlobalStrings.es.resx, GlobalStrings.en.resx, etc. When I want to use this, I just need to set Thread.CurrentThread.CurrentCulture.  The problem: I have a combobox with all the available languages, but I'm loading this manually:  comboLanguage.Items.Add(CultureInfo.GetCultureInfo("en")); comboLanguage.Items.Add(CultureInfo.GetCultureInfo("es"));   I've tried with  cmbLanguage.Items.AddRange(CultureInfo.GetCultures(CultureTypes.UserCustomCulture));   without any success. Also tried with all the elements in CultureTypes, but I'm only getting a big list with a lot more languages that I'm not using, or an empty list.  Is there any way to get only the supported languages?


Does it make sense to use both continuous and categorical variables as input variables to predict a continuous variable with Random Forest algorithm? Do continuous variables tend to have higher predictive power? If yes, why?


Converting *.kml file to *.lyr file so Google Earth can create spatial data to use in ArcGIS for Desktop?

Want to convert the .kml file into .shp file so that I can create new the point, line and polygons data to work in ArcGIS.    Actually I want to use Google Earth to make data for ArcGIS.


I have long titles for my document chapter. These titles are going beyond the right margin.  How to word wrap section and subsection headings in toc?


(La)TeX -- What does the '%' character do?

the % character seems to have a lot of uses. So far, I have encountered it in the following places:  For writing comments  % Schrodinger wave equation $$\nabla^2\psi + \frac{8\pi^2m}{h^2}(E-V) = 0$$   (I may be incorrect here) For splitting commands over multiple lines (reference )  \newcounter{bull} \newcommand{\showbullcntr}[1]{% \setcounter{bull}{#1}% \bullcntr{bull}% }   In conjunction with minipage, to remove the leading space inserted (adapted from  question)  \noindent \begin{minipage}{0.5\linewidth}    ... \end{minipage}% \begin{minipage}{0.5\linewidth}    ... \end{minipage}  Could someone please explain, in detail, the various uses of the % character in LaTeX? In particular, why is it used after the first instance of \end{minipage}?


Will installing Windows 10 ISO on Windows 7 (genuine) make Windows 10 genuine?

I'm having trouble with Windows servers or my Windows update. Every time download gets stuck at magic 84%. Now I am thinking of installing Windows 10 through an ISO on a Windows 7 laptop. Will installing Windows 10 with an ISO over Windows 7 (genuine) make Windows 10 genuine? Can anyone explain me the exact steps to get that iso from installing the iso keeping the windows genuine.


I am writing a trigger to get all the Opportunity competitors into a field on Opportunity, however, getting an error while testing it.  Error: updateCompetitors: execution of AfterUpdate caused by: System.FinalException: Record is read-only: Trigger.updateCompetitors: line 24  Can you please check the below code and suggest me what's wrong with this?  trigger updateCompetitors on Opportunity(after insert, after update){    List<Opportunity> OppIds = new List<Opportunity>();     for (Opportunity opp: trigger.new){         OppIds.add(opp);     }  List<OpportunityCompetitor> oppComps = new List<OpportunityCompetitor>();  oppComps= [select id, CompetitorName, Strengths, Weaknesses from OpportunityCompetitor where OpportunityId in: Trigger.newMap.keySet()];  List<Opportunity> OppstoUpdate = new List<Opportunity>();   for (Opportunity opp: OppIds){     String allcomps = null;      if( oppComps.size()>0 ) {       for (integer i = 0; i < oppComps.size(); i++){          allcomps = allcomps + oppComps[i].CompetitorName+',';       }     }    opp.OpportunityCompetitors__c = allcomps;    OppstoUpdate.add(opp);  }    update OppstoUpdate; }


Remove extension from URL using a rewrite without resulting in a redirect loop

On the server, I have a file (on the filesystem) called page.html, which I want to be accessed as site.com/page  So if someone goes to site.com/page.html, it should 301 redirect to site.com/page  I've seen rewrite rules that will handle rewriting /page -> /page.html internally, but forcing it to 301 redirect /page.html -> /page as well causes a redirect loop for me.  The END flag looks like it can be used to do what I want, but it is not yet supported.  I've also tried using ENV as follows:  RewriteRule ^page$ /page.html [L,E=END:1] RewriteCond %{ENV:END} !1 RewriteRule ^page.html$ /page [R=301,L]   But that results in a redirect loop as well.


UPDATE performance where no data changes

If I have an UPDATE statement that does not actually change any data (because the data is already in the updated state). Is there any performance benefit in putting a check in the WHERE clause to prevent the update?  For example would there be any difference in execution speed between UPDATE 1 and UPDATE 2 in the following:  CREATE TABLE MyTable (ID int PRIMARY KEY, Value int); INSERT INTO MyTable (ID, Value) VALUES     (1, 1),     (2, 2),     (3, 3);  -- UPDATE 1 UPDATE MyTable SET     Value = 2 WHERE     ID = 2     AND Value <> 2; SELECT @@ROWCOUNT;  -- UPDATE 2 UPDATE MyTable SET     Value = 2 WHERE     ID = 2; SELECT @@ROWCOUNT;  DROP TABLE MyTable;   The reason I ask is that I need the row count to include the unchanged row so I know whether to do an insert if the ID does not exist. As such I used the UPDATE 2 form. If there is a performance benefit to using the UPDATE 1 form, is it possible to get the row count that I need somehow?


How to repeat a single bibliography item outside of bibliography?

I'm asking this even if it seems to have been asked before, but not in the exact way I would need.  I'm using biblatex, and for some reasons (in beamer slides, actually), I need to make single bibliographic entries to appear in the main text, in addition to be added to the bibliography section.  In other words, usual citation commands should work as usual, but I'd need a command to typeset the bibliography item (authors, title, etc..), in the same way as it appears in the bibliography section, calling it by citation key.  Example:  This theorem has been proved in \cite{MyPaper98}:  \showcite{MyPaper98}   which should place the usual citation reference along with the full bibliographic item below (sorry, I didn't draw a mockup), but possibly without re-printing the reference key again (for example without another [1] on the left).  Is this even possible?


Schengen visa application rejected because my US visa stamp expires in December. What are my options?

I went to the Italian consulate in Washington, DC today and they would not accept my visa application because they said my US visa stamp cannot expire less than 3 months after the end of my trip to Italy. Here's my relevant visa and trip info:   US visa stamp expires on 16 Dec 2015 I-797 valid until 3 Mar 2017 Trip to Italy is from 15 Oct to 25 Oct 2015   Is it true that my visa stamp needs to be valid for 3 months after my trip, even though I can legally stay in the US until 2017? Does anyone have any suggestions for getting a Schengen visa in my situation?


Undoing the Last Installed Windows Updates via Command Line

Using the command line, how can I undo the last installed windows updates?


How to show normalized cross correlation(NCC) lies in $[-1,1]$?

Provided two real number sequences: $a_1,a_2,...,a_n$;$b_1,b_2,...,b_n$, define their means respectively: $$\bar a=\frac{1}{n}\sum_{i=1}^n a_i,\bar b=\frac{1}{n}\sum_{i=1}^n b_i$$ and define their variances and covariance respectively: $$var(a)=\frac{1}{n}\sum_{i=1}^n (a_i-\bar a)^2,var(b)=\frac{1}{n}\sum_{i=1}^n (b_i-\bar b)^2,cov(a,b)=\frac{1}{n}\sum_{i=1}^n (a_i-\bar a)(b_i-\bar b)$$ naturally leads to the definition of normalized cross correlation: $$NCC=\frac{cov(a,b)}{\sqrt{var(a)var(b)}}=\frac{\sum_{i=1}^n(a_i-\bar a)(b_i-\bar b)}{\sqrt{\sum_{i=1}^n (b_i-\bar b)^2 \sum_{i=1}^n (a_i-\bar a)^2}}$$ Now how to show that $NCC$ lies in $[-1,1]$?


Why is closure omitted in some group definitions?

In some texts, there are three group axioms and in some there are four. The difference is that one of the axioms, the closure ($a,b\in G$ then $a*b \in G$) is omitted. Why is this so?


Please add a unread option for notifications. It should, if possible   Sync between App and site. Be available on iOS, Android (Windows too? Let's be altruistic).  Have a "mark all as read" option, too.


If I break up a large table so it doesn't overflow onto the next page how do I suppress the numbering

I have a long table that overflows one page. If I break up the table into two tables, how do I suppress the numbering so that I only get one figure count advancement and not two.  This is slightly different from the post marked as identical in that this applies to tables and not figures, but the solutions are exactly identical.


Translation When QGIS is installed, it displays the following message:  the ordinal 3109 could not be located in the dynamic library LIBEAY32.dll.  Could someone please help me.  Original Cuando se instala QGIS, se despliega el siguiente mesaje: "the ordinal 3109 could nor be located in the dynamic library LIBEAY32.dll." por favor alguien me puede ayudar.


I am totally unable to install any flavor of Linux on my lenovo Y500. TL;DR:  with EFI on -> cannot even access installer with legacy - > installer runs fine, but installed OS never boots  Long Version: It is going to be hard to recap what I did, because I tried so many things, but here is the gist of it: EFI mode (secure boot disabled): Trial #1  ubuntu 12.10 x64 & Mint 14 x64 boot from usb see screen with choices pick "try ubuntu" get black screen  Trial #2  ubuntu 12.10 x64 & Mint 14 x64 boot from usb see screen with choices press "e" to enter edit mode remove "quiet splash" replace with "nomodeset" end up on the command line with an error message from x server: "no screen found" try fiddling around with xorg.conf to no avail  Trial #3  Arch Linux Live USB EFI mode no boot  Trial #4  ubuntu 12.10 x64 & Mint 14 x64 set "e" to enter edit mode in menu add acpi=off end up with "(initramfs) unable to find a medium" message  Trial #5  same as above set SATA mode to legacy (it was AHCI) error loop that says something along the lines of "ata1.00: hard resetting link"  Legacy Mode Trial #1  ubuntu 12.10 x64 & Mint 14 x64 USB boot Everything seems to work Proceed to normal install (picks SSD drive by default) Everything seems to work reboot blank screen reboot with "shift" pressed see message "grub loading." and nothing As per advised on Ubuntu's community EFI page, run boot-repair same results run boot-repair again same results  Trial #2  ubuntu 12.10 x64 & Mint 14 x64 same as above, but pick 1T HDD as target install same results  Trial #3  create a /boot partition on the SSD install on SSD same results ("grub loading.") run boot repair twice same results  Trial #4  create a GPT filesystem on HDD create a /boot partition on the HDD install on HDD same results as above  Trial #5  install ubuntu on HDD install boot on all drives (HDD & SSD) same results  Trials #6  install Arch on SSD no boot loader found  Notes:  Every step has been tried with multiple USBs. All isos' MD5Sums have been verified LiveUSBs have been created both through ubuntu's embedded app and unetbootin (save for Arch's live USB which was created by DDing the iso as per advised in the Arch wiki) I have wiped out windows in my first trials, and I don't care, I am never going to use it. I don't want to dual-boot. I just want Ubuntu or Mint or Arch as far as I can remember (it gets hard after 50+ trials), I tried every option with sata mode IDE or normal. Not sure though.  I've also tried numerous other things that I can't recall right now. All in all I've been giving this 3 to 5 hours a day for a week and a half to absolutely no avail. I am extremely disappointed as this is my first Lenovo and word is Lenovo is Linux-friendly...I have never spent more than an hour installing linux on any machine. What's even more frustrating is that it seems to be working for , and I can't find any hint telling me how they managed. I wrote to one guy who posted a serie of youtube videos about how to get everything working perfectly on the Y500, and he told me he just installed mint without any problems. Might be I am a particular case because I have the SLI version of the Y500. If anyone has pointers, incomplete solutions, ideas, black magic, I'll be forever in debt. Thank you P.S: This question, afaik, is not a duplicate of an existing question. I've scoured all questions containing "lenovo" and "install", and none applies to me.


Exception thrown inside catch block - will it be caught again?

This may seem like a programming 101 question and I had thought I knew the answer but now find myself needing to double check. In this piece of code below, will the exception thrown in the first catch block then be caught by the general Exception catch block below?  try {   // Do something } catch(IOException e) {   throw new ApplicationException("Problem connecting to server"); } catch(Exception e) {   // Will the ApplicationException be caught here? }   I always thought the answer would be no, but now I have some odd behaviour that could be caused by this. The answer is probably the same for most languages but I'm working in Java.


Likelihood of being accepted to top PhD programs without an interview?

I did my CS undergraduate at an international university (being top 5 in my class), and I am applying for this round of Comuter Science PhD admissions. I'm mostly applying to top 10 schools (MIT, Stanford, CMU, Berkeley, UIUC, ...). My profile is relatively competitive with a few independent publications (written solely by me) and joint publications published in top CS conferences. My LORs are also supposedly strong (Professors' words, not mine as I have not seen the letters). I came across  website where students post about admission updates and interview invitations. I've noticed that most, if not all, the programs I applied to had already sent interview requests. However, unfortunately I have not heard back from the programs for any interview invite (whether formal or informal). My question is, how common is it for international applicants to be accepted to these top programs without an interview (formal/informal)? I feel it is unlikely, because if a professor is planning to fund an applicant for a few years, I'd expect they would at-least be interested in having a short conversation with the applicant. I am aware of  answer, however this was three years ago. I am interested if this expectation has changed over time.


Ubuntu Server: Attack on blocked ports leads to Ping timeout

I was searching for a solution a long time but cant find anything useful.  My webserver is secured by a firewall (iptables with ufw userinterface). Default is deny all and only some ports are open. The server is monitored by prtg.  My problem is, that someone is trying to access the blocked ports a few times per seconds. If this happens, the monitoring tool reports a ping timeout.  The simple DDOS deflate script is configured to block on more than 100 requests. This amount is not reached.  My question: is it possible to prevent this incident? Is a block by the firewall this performance hungry?


I have a Google Sheet. One cell contains multiline data. But when I entering this data the cell became very hight and I can't make it lower.  So I have situation like  And I wan't to see something like in


Can a legendary creature use a legendary resistance to pass a concentration check?

As I was looking through some legendary creatures, I had a thought. Most legendary creatures get three Legendary Resistances per day, which they can use to automatically succeed on a saving throw.  A Concentration check is technically a Constitution saving throw, so does that mean that a creature can use a Legendary Resistance to automatically pass a Concentration check, or is it not considered a saving throw?


I have the following setup for a community website:

Friend Requests

             getRequests.js appends the following into the container div:
              Random Guy
     <button data-id="4" class="accept">Accept</button>     <button data-id="4" class="deny">Deny</button>

   friendResponse.js has the following:  $(function(){   $(".accept").click(function(){     var id = $(this).attr("data-id");     $("#"+id).remove();   }); });   So, you would expect that when I click the accept button, the container with id=1 should get removed, but for some reason, it doesn't.   And also, to add to the peculiarity, the code works if I inject it through the console.  And, for the record, the script is not showing any errors.


Does lightning beta tags pass security review?

There is lightning:tabset and lightning:tab tags which are still in beta as of now. If we use them while developing an app exchange product do they pass security review? Can we use them in production?


How Do the Other Three Element Bending Nations Sort Their Avatar?

The Air Nomads have their set of toys, and Korra showed impressive skill in other areas than waterbending. However the case for all of the others would likely be different. So my question is is there any evidence of the other Nation's Avatar selection?


Are beings in a simulation actually "beings" at all?

Suppose I was able to create a simulation of the universe (I can't, but suppose I could). And in said universe, intelligent and sentient life evolved.  What would happen if I "unplugged" this simulation, or simply altered it and killed all the sentient life. Would I be killing these beings, or would they have simply not been alive?  In short, can anything existing in a computer program be alive?, and if say, we were living in a computer simulation, could the beings that created us consider us to be alive?


What would it mean to say that mathematics was invented and how would this be different from saying mathematics was discovered?   Is this even a serious philosophical question or just a meaningless/tautological linguistic ambiguity?


What is the word for nouns that used to be specific, but are now ambiguous?

I once discovered a word with a fascinating description but have forgotten it.  The word refers to nouns that at one time meant something very specific, but would now be ambiguous and needs an accompanying word to specify further. The best example is 'guitar'. Once, the word unequivocally referred to an acoustic guitar, but would now need 'acoustic' added, lest it be confused with electric guitar, bass guitar, etc.


function that ssh's to different server routed through local computer

I can ssh to multiple servers but once I've reached one of them, I can't ssh to the next I have to go back to my local machine and then ssh to the next server. I would like to set up a script that lives on each these servers that can exit and then ssh to the next arbitrary server. I've tried setting up an alias for this.  like so: alias host2="exit; ssh host2;"  that didn't get me anywhere, Then I spent a long time looking into the localcommand config for ssh and I don't think that can help me either. Most recently I've been looking into writing a script that suspends the ssh instance and drops you local again, but I can't seem to get the formatting right for echoing  ~ ^Z. Even if I could I'm not sure it would help. Now my only thought is that maybe the remote server could scp the host name to a shared location and once back I could check that file if it has anything I use that as my next server. But I'm guessing there is a way easier way.  Anyways any ideas or insights would be much appreciated thank you!


Is there a simple method of parsing XML files in C#? If so, what?


How to make sure String input doesn't lose any chars when parsing to an Integer

I'm making a program that tells the day of the week for any date in the past or future. In order to split the 4-digit year into the first 2 numbers for century and last 2 numbers for year in order for the formula to work right I used the following 2 lines of code: Int  y = yANDc / 100; Int c = yANDc % 100;  The problem is when I display the final output. If they typed in a 4-digit year between "xx00" and "xx09", it chops off any preceding "0"s. So, if they entered "2009", the final output would be written as "209".  Any ideas on how to fix this and format it to where it doesn't drop preceding "0"s?


Why is the "wrong" executable being run?

I am trying to run  from the  (version 4.4.19) command line.  As a Python developer, I have various installations of ipython at various versions in various virtualenvs' paths, and so it is important to know which one I am running. Hence the $PATH is always changed when I change virtualenv, and this would a typical value for PATH:  $ echo $PATH /Users/jab/.virtualenvs/tools/bin:/Users/jab/bin:/Users/jab/src/git/hub/jab/bin:/usr/local/gnu:/bin:/usr/local/bin:/usr/bin   The important detail in that is that the first entry is "/Users/jab/.virtualenvs/tools/bin", and that the file /Users/jab/.virtualenvs/tools/bin/ipython does exist:  $ ls -l /Users/jab/.virtualenvs/tools/bin/ipython -rwxr-xr-x 1 jab staff 252 May 11 15:18 /Users/jab/.virtualenvs/tools/bin/ipython   As expected, which says that that file will be run as the "$ ipython" command  $ which ipython /Users/jab/.virtualenvs/tools/bin/ipython  $ $(which ipython) -c "import sys; print(sys.executable)" /Users/jab/.virtualenvs/tools/bin/python   However, that is not actually the case, and /usr/local/bin/ipython is run instead  $ ipython -c "import sys; print(sys.executable)" /usr/local/bin/python3   Can someone explain why bash is ignoring my $PATH and using the "wrong" executable? And what do I need to change (in , or on my system (macOS 10.12.3)) so that executables are chosen by bash in the order determined by my $PATH.  Note: This is not a duplicate , because that asks how PATH works to find any program, whereas this question is anout why the wrong program is found.


How can I tell if this is a load bearing wall?

Hello I would like to remove the wall from our family room to kitchen. The wall that I circled in yellow. How can I tell from this blueprint if it is a load bearing wall?


What's the proper way to remove thermal paste from a CPU?

I'm replacing the heatsink on my CPU, and want to clear the current thermal paste.  What should I do?


Let $G = {5, 15, 25, 35}$. Prove that $G$ is a group under multiplication modulo $40$. (Without using Cayley Table)

Let $G = {5, 15, 25, 35}$. Prove that G is a group under multiplication modulo $40$. I know how to solve for associativity and closure but  I don't know how to find the identity for the set. All the answers that I've seen are using the Cayley Table but I haven't learned that in school yet. Can someone please help me with another way to solve this? Any help will be appreciated.


Crossing from Sarnia to Port Huron, MI in a car without a passport

Can we drive across the blue water bridge from Canada to the US and back without a passport?   We have proof of Canadian citizenship but our passports just expired.


Using Linq to concatenate a list of property of classes

I've seen this question () which works for strings but what happens if I would like to concatenate a list of string where the string is the property of a class?  The method proposed in that question doesn't work (I've tried).  Given an array or People I want a string which contains the concatenation of their names.   x => person.Name   How can I solve this problem?


Is there a QGIS equivalent to ArcGIS's Make OD Cost Matrix Layer (Network Analyst)?

I'm looking to create a OD cost distance matrix for a network data set I have created. Is there a way of doing this in QGIS which is akin to Make OD Cost Matrix Layer within ArcGIS's Network Analyst.   My question is similar to  but there was no satisfactory answer given then. That question was asked nearly months ago and am wondering if there is a potential solution.


Angular tag on Stack Overflow out of date?

The  description is as follows:      AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC)   capability   But, according to the Angular website, it is now MVW:     AngularJS is what HTML would have been, had it been designed for building web-apps. Declarative templates with data-binding, MVW, MVVM,   MVC   Also,  Angular 'officially' MVW:     I hereby declare AngularJS to be MVW framework - Model-View-Whatever.   Where Whatever stands for "whatever works for you".   Conclusion  I think we should update the angular tag to make it more up-to-date.


Virus/Spyware: C2/Generic-B detected in C:\Windows\System32\svchost.exe

Sophos has detected the following: C2/Generic-B detected in C:\Windows\System32\svchost.exe How do I get rid of this? Many thanks in advance!


Why the ball is not round on following crop:    SS = 1/60  What's going on?


Is it feasible to transform each variable differently while doing multiple regression

I have a dataset with 10 variables ...is it feasible to transform each variable differently while doing multiple regression...  for example new_V1 = log(v1)  New_V2= V2^2  New_V3= 1/V3  Likewise differently for different variables and then applying multiple regression?


Number Theory: Find all solutions of $\phi(n)=16$ and $\phi(n)=24$

I have this homework problem assigned and I'm a little confused in solving it:  Find all solutions of $\phi(n)=16$ and $\phi(n)=24$ (where $\phi(n)$ is the Euler phi-function).  The hint that's provided says:  If $n=p_1^{k_1}p_2^{k_2}\cdots p_r^{k_r}$ satisfies $\phi(n)=k$, then $n=\frac{k}{\prod (p_i-1)}\prod p_i$. Thus the integers $d_i=p_i-1$ can be determined by the conditions (1) $d_i\mid k$, (2) $d_i+1$ is prime, and (3) $\frac{k}{\prod d_i}$ contains no prime factor not in $\prod p_i$.  I'm ok with proving the statements in the hint and I know how to get them, but I'm not sure how to apply them to solve the problem.


Why is the greek letter Pi used for Pi (product) notation?

We are learning about it and my teacher didn't explain why either Sigma nor Pi were used.


Unable to understand what is wrong with this proof 1 = -1

I am unable to figure out the problem with this proof. Is it that the associative law does not apply for negative numbers.


How to collect command's output/results to the log file? What command can write all msg's in shell to the file?


HP Easy Scan - "HP Scanner 3" will damage your computer

I have been using a HP Envy 4500 printer with my iMac for 2 years using HP Easy Scan - with no issues. Today I tried to scan a document, when I press the "scan" button on the app a pop-up appears stating: "HP Scanner 3" will damage your computer  this file was downloaded on an unknown date. Report malware to Apple to protect others  A second popup also appeared stating: Scanner reported an error Failed to open a connection to the device  To me this indicates the macOs has decided to block the program. Why has this started happening? and how can I tell macOS that "HP Scanner 3" is no malware. Edited to add:Using etc built in Apple/macOS scanner (which doesn't have all the features of HP Easy Scan) works so that proves this is not a hardware issue.


Entering France on German issued Schengen Visa (South African passport)

I have a South African passport and valid visas' for the UK and Schengen. My trip is to the UK for a week then to Germany for two weeks. I'm staying in Germany for those two weeks and not going to any other Schengen states.  My Schengen visa was issued by German embassy and they have given me a multiple-entry three week visa staring from when I actually arrive in the UK. My UK visa also allows multiple entries.  Now plans have changed and I may need to go to Paris for 3 days while I'm in the UK. (The dates all fall within my allocated Schengen visa dates that I'm allowed to be in Germany so I do not have a date issue.) Is this OK? Will I have trouble with getting into France and then returning to the UK after the three day trip? My problem is that on my Schengen visa application I never said I was going to go France at all?  If its too much of a mission I'd rather not risk it but just thought I'd ask if this was in fact allowed.


How to vertical align several inline-block elements inside a div? (React)

I'm trying to vertical align all the contents inside a div, here it's the html:

Utilizamos cookies propias y de terceros para obtener datos estadísticos de la navegación de nuestros usuarios y mejorar nuestros servicios.

Si acepta o continúa navegando, consideramos que acepta su uso. Puede cambiar la configuración u obtener más información aquí.

       <Button text="No Acepto" bgColor="#DEDEDE" textColor="#404040" onClick={Hola}></Button>              <Button text="Estoy de Acuerdo" bgColor="#57DE7F" textColor="#F6F6F6" onClick={Hola}></Button>

   Here's the css (React Styles):  this.CookieBarStyle = {   backgroundColor: '#F6F6F6',   color: '#404040',   padding: '8px 15px',   boxSizing: 'content-box' } this.CookieBarTextStyle = {   display: 'inline-block',   width: '65%',   paddingLeft: '35px' } this.CookieBarButtonsStyle = {   display: 'inline-block',   width: '30%',   textAlign: 'right' } this.CookieBarLinkStyle = {   color: '#525AB5' }   Here's a screenshot of how it is looking atm:     Basically everything should be vertically centered, the cookies, the text and the buttons


what does 0 mean? how can it have three items

I have trouble understanding these lines of codes: return (0, user, computer)         return (-1, user, computer)  My question: what does 0, -1, and 1 mean? How can () have three items inside? Thanks very very much!I'm a beginner. Much help is needed and appreciated. the original code is below: def play():     user = input("What's your choice? 'r' for rock, 'p' for paper, 's' for scissors\n")     user = user.lower()      computer = random.choice(['r', 'p', 's'])      if user == computer:         return (0, user, computer)         #?????????????????      # r > s, s > p, p > r     if is_win(user, computer):         return (1, user, computer)      return (-1, user, computer)


Vacuum packed salmon fillet (non-smoked) sat in fridge that turned off for undetermined amount of time. Can it still be eaten?

As the title says: the vacuum packed salmon fillets have been sitting in a turned off fridge for quite some hours. The packs only felt a little cooler than the room temperature of +/- 20 degrees Celsius (68℉). They have been put in a working fridge immediately after finding out. If they weren't vacuum packed, I'd have thrown them away already.  Can I still safely eat them if they do not smell bad, or should I throw them out?


I am having an error compiling the following code with xelatex and lualatex:  ** WARNING ** "seac" character deprecated in Type 2 charstring. ** ERROR ** Type2 Charstring Parser: Parsing charstring failed: (status=-1, stack=5)  Output file removed.  \documentclass{article}  \usepackage{xunicode} \usepackage{fontspec}  \setmainfont[Mapping=tex-text,Ligatures={Common}, Numbers={OldStyle}]{IM FELL English PRO} \begin{document}  Buongiorno a tutti. Trallallà.  \end{document}   The error disappears when I omit the accented à. It also doesn't happen when I use other fonts.  Could you suggest any workaround?  Thank you, A


Is loss or accuracy a more appropriate measure of performance for a classifier?

I have a model which has a lower loss value than the baseline model I'm comparing to, but also slightly lower accuracy. The model was trained to classify time series into one of two classes. In general, which is a better indicator of performance and why? I have seen conflicting answers on this and I'm still confused.


Prevent wallpaper to slide when sliding the home screen

My question is that when I slide my home screen, my background wallpaper also slides. Not giving me a complete view of full wallpaper on a particular screen.  How to fix it?


I have three stack overflow items that I never received updates for in the last few days. I have my preferences set to receive daily inbox updates to my gmail address but I didn't get any updates. I was viewing a SO question today and I saw that there was stuff in my inbox so that's how I noticed. Admins if you need more information you can e-mail me because I don't know if I'll receive an update when you reply to this bug. Thank you


I've spent hours with my bike on the stand.  On the stand: it performs great.  When I ride, I can cause the rear gears to shift just by changing how hard I pedal  (the harder i pedal, the higher up on the cassette the chain will jump. If i let up, the chain will drop into a harder gear)   I've replaced almost everything: Cables/Housing Cassette and Chain, even the rear deraillure hanger and deraillure.    Any ideas would be helpful.


I'm using Visual Studio 2012 Professional. I was writing a simple function this morning, something like this example which is really not important:      public DateTime getDeadline()     {         var deadline = DateTime.Now.Date;         if (deadline.DayOfWeek == DayOfWeek.Sunday)                  return deadline.AddDays(-2);         if (deadline.DayOfWeek == DayOfWeek.Saturday)             return deadline.AddDays(-1);         return deadline;     }   I wanted to read more information about DateTime's "DayOfWeek" property from Microsoft's MSDN page. So I typed "DateTime.DayOfWeek" into Google search and naturally the first result is what I wanted.  My question is simple...  does Visual Studio 2012 have a way to get from the IDE directly to the MSDN page for a class or property so I don't have to use a web search?


Does scaling lead to weak convergence to the null function?

Let $f\in L^p(\mathbb{R}^d)$, with $1<p<\infty$. Is it true that    $$\lambda^{\frac{d}{p}}f(\lambda x ) \rightharpoonup 0\quad \text{ weakly in }L^p\text{ as }\lambda\to+\infty?$$   One has the easy case for $f\in L^{p-\epsilon}\cap L^p$. This condition allows the use of Hölder's inequality as follows (here $\frac{1}{p}+\frac{1}{p'}=1$ and $\phi$ is a continuous function with compact support):  $$\begin{split}\left\lvert \int_{\mathbb{R}^d} \lambda^{\frac{d}{p}} f(\lambda x)\phi(x)\, dx\right\rvert& \le \lambda^{\frac{d}{p}}\lVert f(\lambda x)\rVert_{L^{p-\epsilon}}\lVert \phi\rVert_{L^{(p-\epsilon)'}} \\  &= \lambda ^{\frac{d}{p}- \frac{d}{p-\epsilon} } \lVert f\rVert_{L^{p-\epsilon}}\lVert\phi\rVert_{L^{(p-\epsilon)'}}\to 0. \end{split} $$ But what happens if that condition is removed? I carried out an explicit check on the standard example of a function $f$ that belongs to $L^2(\mathbb{R})$ and does not belong to $L^{2-\epsilon}(\mathbb{R})$ for any $\epsilon > 0$, namely  $$f(x)=\begin{cases} 0 , & x<2 \\ \frac{1}{\sqrt{x}\log x}, & x \ge 2\end{cases}.$$ Taking $\phi=\chi_{[a, b]}$ with $2<a<b$ one has  $$\left \lvert \int_{\mathbb{R}} \lambda^{\frac{1}{2}}f(\lambda x)\phi(x)\, dx \right\rvert  = \dfrac{  \int_{\lambda a }^{\lambda b} \frac{dy}{\sqrt{y}\log(y)} } {\lambda^{\frac{1}{2}}}, $$ and an application of l'Hôpital's rule shows that the right hand side tends to $0$ as $\lambda \to \infty$. This implies weak convergence to $0$ by a standard density argument.   This seems to point towards an affirmative answer to the question in the gray box.


Powerpoint: how to insert document property (aka 'field') in slide?

How can I insert a document property (e.g. the author's name) in a slide in PowerPoint 2007? I know this can be done in Microsoft Word, but I can't find how to do it in PowerPoint.  (The idea is that with a document property it is easy to change e.g. the content of the footer in all the slides, even if you use different master pages. If there is a different solution, that would be fine as well.)


Is the 1-Dimensional Lie algebra Simple?

I assumed that the 1-dimensional Lie algebra was simple since I cannot think of any proper non-trivial ideal it could have (you either have no elements, or once you have one element you span the space). However every classification of simple Lie algebras I have seen does not include a 1-dimensional Lie algebras. Is there a reason for this or is the 1-dimensional Lie algebra somehow simple?  Thank you!


A positive harmonic function on the punctured plane is constant

Let $f(z)$ be a positive harmonic function on $\mathbb{C}\backslash  \{0\}$. Prove that $f(z)$ is constant.   I have no idea to prove this statement.


Just loaded Ubuntu Server 12.04.2 and all went well. I rebooted the system and up came Ubuntu login:   I tried everything I could think of and pressed Enter. 'Password' appears, but it won't let me type anything. What is my login? I remember being asked to set a password, but not a login name.


How to save a value in a variable when solving a inequality

How can I save the X-value in a variable? When I run my program with a set of inputs, I get "x <= 0.24" as answer, who is correct. But I'm wondring how i can save "0.24" without the "x <=" This is the values for each variable: aksje = 105, op = <, alfa = 0.02, beta = 0.2, k0 = 100, time = 1  This is mye code: from math import e from sympy import solve from sympy.abc import x  def main():      global aksje, op     aksje = float(input("Type in stock price you want to exam: "))     op = input("Enter what type of operator you want to use: ")   main()  def aksjekurs():      global alfa, beta, k0, time, k     alfa = float(input("Enter a alfa value: "))     beta = float(input("Enter a beta value: "))     k0 = float(input("Enter K0 value: "))     time = float(input("Enter time: "))      k = k0 * (e ** (((alfa - ((1/2) * (beta ** 2))) * time) + (beta * x)))   aksjekurs()  def answer():      if op == "<=" or "<":         s = solve(k <= aksje, x)         print(s)     else:         r = solve(k >= aksje, x)         print(r)   answer()


How to increase size of root partition at /dev/sda1 from /dev/sdb1?

I have an Ubuntu 16.04 system without GUI (only command line) with a very limited root partition (20GB) and 1 storage partition (1000GB) as below  sudo parted -l  Model: QEMU QEMU HARDDISK (scsi) Disk /dev/sda: 21.5GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags:   Number  Start   End     Size    Type     File system  Flags  1      1049kB  21.5GB  21.5GB  primary  ext4         boot   Model: QEMU QEMU HARDDISK (scsi) Disk /dev/sdb: 1074GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags:   Number  Start   End     Size    Type     File system  Flags  1      1049kB  1074GB  1074GB  primary  ext4   The current status of these disk are:  df -hP Filesystem      Size  Used Avail Use% Mounted on udev             27G     0   27G   0% /dev tmpfs           5.4G  530M  4.9G  10% /run /dev/sda1        20G   19G  194M  99% /    (almost full!!!!!) tmpfs            27G  112K   27G   1% /dev/shm tmpfs           5.0M     0  5.0M   0% /run/lock tmpfs            27G     0   27G   0% /sys/fs/cgroup /dev/sdb1       985G  602G  333G  65% /rasv1 (more space!!!!!) tmpfs           5.4G   20K  5.4G   1% /run/user/121 tmpfs           5.4G     0  5.4G   0% /run/user/1001   How can I increase the size of root partition for /dev/sda1 (e.g: 20GB -> 100 GB) from /dev/sdb2 (1000GB -> 900GB) online (no liveCD, USB boot, reboot)?


Good evening  I am looking at the general linear group $GL_n(\Bbb R)$ which is a subset of $\Bbb R^{n^2}$. I want to prove now that the identity component of $GL_n(\Bbb R)$ is $GL_n^+(\Bbb R)$ but  I got stuck the show this. Can anybody helps me out? Thanks!


Suppose $A$ and $B$ are two finite sets having same cardinality. Show that a function $ f:A \to B $ is one-one if it is onto

I have intuition of this statement but I don't have logical proof. How do we prove such statements in functions??


What is the standard deviation and mean of the reciprocal of normal distribution in terms of that of the normal distribution?

What is the standard deviation and mean of the reciprocal of normal distribution in terms of the standard deviation and mean of the normal distribution?


A system of quadratic diophantine equations

Find $(p,x,y)$, where $p$ is prime and $x,y$ natural numbers, such that: $p+1=2x^2$ $p^2+1=2y^2$ A solution to this problem is $(7,2,5)$ and I tried to show that it is the only one, but I didn't get far. Can anyone help?


(Inequality) If a>b, then should a>=b be considered correct (not vice-versa)?

(Inequality)  If we know that a>b, but in exam we dont find any such option, then should selecting the option a>=b be considered as a correct answer (not vice-versa)? Please provide any mathematical or logical explanation.


How should I write an appropiate email for a PhD position?

I am a graduated Master's student from Asia and really want to take a PhD position in Canada, America or Germany. My English language skills are good but I don't have an IELTS degree. Some of my friends say that if I talk to a professor who I want to work with, I do not need a high grade in English exams like IELTS and I do not have any reaserch or projects or paper because it is unusual in master of pure math(which I studied) to have any of them(because it is so hard to do). On the other hand, I wrote the following email but I am so nervous of the whole structure and its content. Would you please guide me for sending a better email for a PhD position? Thank you in advance.  Dear professor “ “: My name is Dal.OL. This year, I graduated from Shahid Beheshti University with a master's degree in geometry with GPA 3.69. My interesting field for researching is dynamical systems in geometry and my master’s dissertation was in hyperbolic dynamical systems which was really exciting for me and made me Curious about the hole concepts used around it, therefore I am deciding to continue studying in this field of Geometry. I am seeking admission to the PhD studies in related with my master’s dissertation and I also like to work on the manifold concepts and their extension in dynamical systems. In the other hand I reviewed your profile and thought that it would be wonderful if you would be willing to take me as your PhD student. I look forward to hearing from you. Thanking you for your consideration. Sincerely,


Re buying minecraft PE on different device

I bought minecraft a few months ago on my phone (andriod) i just got a new phone (iOS) will i need to buy minecraft again or can i log into my play store and just re download without paying?


Here is the problem I am working on: "Write a method that returns a new array by eliminating the duplicate values in the array using the following method header:  public static int[] eliminateDuplicates(int[] list)  Write a test program that read in ten integers, invokes the method and displays the result."  Here is the code I have:   public static void main(String[] args) {       Scanner input = new Scanner(System.in);       int[] list = new int[10];        System.out.print("Enter ten numbers:");        for (int i = 0; i < list.length; i++) {        list[i] = input.nextInt();       }        System.out.print("The distinct numbers are: ");       for(int i = 0; i < 10; i++){           if( list[i] != -1){       System.out.print(eliminateDuplicates(list));            }       }   }      public static int[] eliminateDuplicates(int[] list) {          for(int i = 0; i < 10; i++){              for(int j = i + 1; j < 10; j++){                 if (list[i] == list[j]){                     list[i]= -1;                      }              }            }          return list;           } }  My issue is my output is really strange, this is what I'm getting "[I@55f96302[I@55f96302[I@55f96302[I@55f96302[I@55f96302[I@55f96302[I@55f96302"  Can anyone tell me where I'm going wrong? Or a suggestion of where to start fixing it? I'm still a beginner, so I haven't learned a whole lot (like hashsets or anything).  You have my many thanks


Where can I purchase a legal Xanathar's Guide to Everything PDF?

Hardback books take up so much room I don't have.... is there a legal PDF somewhere I can purchase?


Show images related to features in QGIS?

Say for example, if there's a point data with old trees, then when you use the identify tool, you can see the photograph of the tree  Or even one level further, the labels displaying these images right away without any clicking needed  I believe the term is file streaming?


I have noticed a regrettable trend toward using the short "e" when pronouncing "the" before words beginning with a vowel: "thuh Earth"; thuh older one". This used to be a cultural symbol (e.g., old movies) of illiteracy and still sounds so to me.  Is there any specific recommendation on this other than taste and pleasing the ear?


Did other Titans possess strength similar to that of Thanos?

I'm asking about the MCU version of Thanos, but I'll accept answers sourced from the comics if no MCU answer is available (which I think is likely).  Thanos comes from the planet Titan.  We see in Infinity War that Titan was destroyed, presumably in a resource-driven civil war previously predicted by Thanos.  We also see, in Infinity War and in Endgame, that Thanos can fight off even the most powerful Marvel heroes at need.  I'm wondering if the other inhabitants of Titan had strength and abilities similar to Thanos.  Because if there were a whole planet of beings like Thanos, it seems odd that they wouldn't have just seized whatever resources they wanted from others.


How to change PATH environment variable to OS X 10.8 Mountain Lion that will be visible to GUI applications?

I tried all methods I heard of for setting environment variables on OS X 10.8 but none of them seems to work.  To test, run a bash script from inside a gui application like Eclipse or IntelliJ IDEA.  #!/bin/bash set|grep PATH   Things I tested and that are not working even after reboot:   /etc/paths and /etc/paths.d/something /etc/launchd.conf ~/.bash_profile ~/.MacOSX/environment.plist (binary plist made as recommended) running launchctl setenv PATH $PATH from the command line, this was supposed to update the PATH for GUI apps, at least for current session. Guess what, no change.   It seems that PATH is always PATH=/usr/bin:/bin:/usr/sbin:/sbin for GUI apps.


How do I use cookies across two different domains?

I need to share SSO information between two different domains with a cookie, can this be done in PHP and how?


An expression below embarrasses me. Why not "it's" but "their" litter?      a cat can use their litter box.   in the context we are talking about a few cats, but in this, specific, example we speak about one cat.


Evaluate   $$\lim_{n\to\infty}\left[\left(\frac1n\right)^n+\left(\frac2n\right)^n+\cdots+\left(\frac{n-1}n\right)^n+\left(\frac nn\right)^n\right]$$    I tried to solve this by taking logs on both sides and got this form: $$\log l = \lim_{n\to\infty} n\log\frac{n!}{n^n}=\lim_{n\to\infty}n\log\frac{n!}{n^n}$$ After applying limit, $\frac{n!}{n^n}\to0$, so $\log\frac{n!}{n^n}\to-\infty$ as $n\to\infty$. Then I am stuck. How to solve these type of problems?


Is there any way to disable the Ubuntu guest account so as to prevent even someone on the guest account from logging into your computer?  I am on Ubuntu 14.10.


How do I print text and a variable in Python 3? (Can't convert 'float' object to str implicitly)

I know that in Python 3, print is now a function.  However, I have two variables that I wish to include in a print function.   foo = 5   fee = 3  The following gives an error:  print('Foos present:' + foo, 'Fees present:' + fee)  TypeError: Can't convert 'float' object to str implicitly


Algebra of matrices and solving simultaneous equations

My approach  So here I formed 3 equations with 3 variables. $$\left\{\begin{array}{c} x^2 + \sqrt{3}xy + y^2 = 25 \\ x^2 + xz + z^2 = 16 \\ y^2 + z^2 = 9 \end{array}\right.$$ Solving these equation seemed impossible so I tried hit and trial and tried inserting integral values for like $z= 3$ then $y=0$ which gave $x=5$ but contradicted the 3rd equation so is there any simpler way ?  It would be great help if someone provides a link for mathjax


Why there is no Biber in TexShop as the picture shows?

]  Every time, when I use biblatex, it says "you should run the Biber". But there is no Biber here.


Is there a shell-independent search tool like the Unity's Dash?

The only thing I will miss after moving to LXDE from Unity will be the Unity Dash. Its functionality, not the piss-poor performance that is. So here's my question. I know there is synapse but AFAIK it only returns text, without multiple large-sized thumbnails of files etc.  I'm looking for a tool:   that uses relatively large area to present results with thumbnailing capability  with immediate presentation of recently used files and apps, preferably   Hence I do not look for any launcher. Point's no. 1 and 2 make for sufficient replacement. Please don't be afraid to answer 'No, there are none' if there no alternatives similar to Unity Dash or Gnome Shell Activities exist.  Related question:


How do I prevent launcher from showing a drive icon for each mounted partition

I have a single disk composed of a few partitions, that I'd like to be mounted when I log in, just like the system partition is. I recently upgraded from 14.04 to 16.04. It was working fine before, by adding this command line to the start up applications   #!/bin/bash /usr/bin/udisksctl mount -b /dev/sdb2; /usr/bin/udisksctl mount -b /dev/sdb3; /usr/bin/udisksctl mount -b /dev/sdb4;   However now with 16.04, though it also mounts them, the file explorer (called 'Files') doesn't behave the same way at all: whenever I open a directory in one of the user partitions, the mounted drives are added as a separate icon in the unity launch bar, as though I inserted a usb key for example, instead of being part of the File application windows. It is very annoying to have multiple icons in the unity launch bar for basically explorer windows.  How can I go back to the previous situation ?


The functional equation $f(xy)=f(x)f(y)$

Let $f(x)$ be a function that satisfies this functional equation, $f(xy)=f(x)f(y)$.  With a little bit of intuition and luck one may come to a conclusion that these are perhaps the solutions of $f(x)$,   $f(x)=x$ $f(x)=1$ $f(x)=0$   However, these solutions are family solutions of $f(x)=x^n$. What I meant by this is that, when $n=1$ you get the function $f(x)=x$. When $n=0$ you get $f(x)=1$ and when $x=0$ well you get $f(x)=0$. So, it seems $f(x)=x^n$ is the genuine solution to that functional equation and when you're taking different values for $x$ and $n$ you're getting bunch of other functions of the same family.   Getting excited by this I tried to take different values for $x$, for instance when $x=2$, $x^n$ becomes $2^n$. So, now I'm expecting the function $f(x)=2^n$ to satisfy this functional equation $f(xy)=f(x)f(y)$. However, it doesn't. I don't know why it's not satisfying. May I get your explanation?


Difference between "offense" and "offence"

Between offense and offence, which one is more correct spelling?   If both are correct, are there any differences in shades of meaning and/or usage?


Character searching for a blade to kill a cyborg

I saw this cartoon only once, about 10-15 years ago, and since middle. There was a character called "space fly" or so – the glowing flying ball which help the main character – a man with sword hilt. Main character searching for the blade for that hilt to assemble a weapon with which he can kill the main villain who is a cyborg, but it shows (that he is a cyborg) only in the final battle in the end of the movie. Through the cartoon, main character fights with the enemies (robots whitch serves the main villain) with his sword hilt (in the moment of hit the enemy, from hilt grows red glowing blade, something like jady blade). In the final battle, main character loses his hilt, but space fly tell him, that blade never exist, and he should to believe in his own forces. After that, he can grow the glowing blade from his hands, and win.  Forgive me my broken English, but help me to find how called this cartoon. It's memories torture me more then 10 years and I must see this film=).  P.S. It's not He-man. Drawing more similiar with "Transformers: the movie" 1986, and I think cartoon was USA or USA/Japan.


!924 will execute that line from history. Is there a syntax where I can simply pull that line from history to the current line so I can edit it: i.e.: like using the up arrow with a built in search feature?


Is there any driver expression for elif statement?

Is there any way to add if elif and else in drivers?  Given the way we do if and else, here are two examples out of few other things i tried to get the statement right but unable to do so:  var-3.5 if (var<0) var+3.5 elif (var>0) else 1  var-3.5 if (var<0) elif var+3.5 (var>0) else 1   And also if there's any other way to add multiple if/else similarly?


What exponent $e$ can guarantee the group to be abelian? Are there any known results except the case $e = 2$? Thanks for help.


Standard reference for classical mathematical statistics?

Can anyone recommend some books that are considered to be standard references for classical (frequentist) statistics? IE, fairly comprehensive, and also, been around for a while so that typos and mistakes in formulas had a chance to be checked and corrected


How does LIGO reduce noise below what it is detecting?

LIGO is designed to detect changes in length on the order of 10,000ths the scale of a proton. I know they are extremely well isolated from their surroundings, but how could we even approach isolation at such a scale? Wouldn't even the vibration of the molecules making up the system be picked up by the sensor?


LWC: wire apex to property with @api param value

Is there a way to get result from apex method if param is @api value (that comes from parent)?  like this:  @api trip; // comes from parent @wire(getTickets, { recordId: '$trip.Id' }) tickets;   or how to pass this param?  Thank you!


Does there exist a function whose local or absolute minima is greater than 1 such that its integral from 0 to infinity converges?


I have installed Ubuntu 20 in a seperate partition of disk , however after ubuntu installation i can only boot up ubuntu , its not giving me any options to choose the OS. Using Dell Vostro. THanks in advance


Standard error of the estimate in logistic regression

We usually get an estimate of $\beta$ in the logistic regression by finding the $MLE$ of the observed random samples of $X_1,X_2....,X_N$. Then we use Wald's test i.e. ${[\hat \beta / S.E.(\hat \beta)]}^2$ to test whether that variable is significant or not.   From what I have read, this Wald's test is based on two facts (or assumptions, I am not sure).    $\hat \beta$ follows a normal distribution Standard Deviation of this normal distribution is given by the inverse of Fisher's Matrix   Can someone explain the proofs behind these two facts/ (or assumptions). I have read this  but most of the intuition went over my head.


Let the ring of fractions be denoted as $S^{-1}R$.       Proposition (from Robert Ash's textbook "Basic Abstract Algebra")      Define $f: R \rightarrow S^{-1}R$ by $f(a) = a/1$. Then f is a ring homomorphism. If S has no zero divisors then f is a monomorphism, and we say that R can be embedded in $S^{-1}R$. In particular:      (i) A commutative ring R cna be embedded in its complete (or *full) ring of fractions ($S^{-1}R$, where S consists of all non-divisors of zero in R).       (ii) An integral domain can be embedded in its quotient field.    Why does the proposition say "If S has no zero divisors..."? If S really had zero divisors, then this wouldn't even be properly defined, right? Because we would have a/0 for some a in R.


I would like to remove an element from a vector. For example:  // object that is in the vector: MyClass obj; // vector looks as so: vector<MyClass*> pVector;  pVector.remove(obj);


Belgium to Spain road trip through France next week. What should I be aware of considering the riots and rumours of impending revolution?

Next Friday, I'm going on a 3 day road trip to Spain, and then will stay there for 3 weeks. I will come back in the first week of January.  The problem is that because of the Gilets Jaunes, France is currently in a bit of a mess, to put it mildly: there are frequent riots and blockades, many gas stations have run out of fuel and a number of locations have seen arson and even deaths. It doesn't seem like it's going to stop in the next week, and I've even heard rumours on social media that this might be the start of a new revolution, similar to what happened 50 years ago.  The plan right now is to stay the night somewhere in the middle of France (I think near Poitiers), then drive to Zaragosa via San Sebastian and spend the night and part of the next day there and then drive from there to the Costa Blanca, the end destination of the trip. The trip back would be a 2 day trip on Friday and Saturday with a stay in France, probably in Poitier again.  I'm somewhat concerned about the situation and really want to avoid problems on the trip. I don't want to end up on the side of the road without fuel, I don't want to have to spend the night in a car and I DEFINITELY do not want to end up getting caught in the middle of a riot or worse. Postponing the trip is not an option and we really want to go with a car and not a plane or train.  What things should I be aware of to make the trip go smoothly? Note: I won't be visiting Paris on this trip, so the suggested duplicate isn't quite valid. I will spend most of my time in France on the motorways and the roadside rest stops.


Can you benefit from the Dueling fighting style after having thrown a light weapon?

So, the PHB has this to say about unsheathing a weapon (page 190)  You can also interact with one object or feature of the environment for free, during either your move or your action. For example [...] you could draw your weapon as part of the same action you use to attack.  So, if I had already a short-sword in one hand, I could technically draw the dagger dangling at my belt and throwing it as part as the same action, correct? And since they're both light weapons, I could then use my bonus action to attack with my short-sword (without the proficiency bonus on the attack roll), right? But would that attack benefit from the +2 damage bonus from the Dueling fighting-style, since I did attack with only one weapon in hand, or wouldn't it count since I technically used another weapon during this turn?


Indian living in US on H1b travelling to Colombia

Can a Indian Citizen living in US with H1b visa stamped, travel to COLOMBIA without getting tourist visa for Colombia stamped? It is a trip on a very short notice


If $f \geq 0$ is continuous and $\int_{a}^{b} f(x) \, dx = 0$, then $f =0$

Just wanted to confirm that this is a correct solution:    Proof: Suppose $f(x_0) > 0$ for some $x_0 \in [a,b]$. Then, by continuity of $f$, for $\epsilon < f(x_0)$, there exists $\delta > 0$ so that, if $|x-x_0| < \delta$, we have $|f(x) - f(x_0)| < \epsilon$. That is to say, $f(x)$ is non-zero in a neighborhood $B_\delta (x_0)$. Now,   \begin{eqnarray*} U(f,P) &=& \sum_{P([a,b])} M_i \Delta_i \\ &=& \sum_{P(B_\delta(x_0))} M_i \Delta_i \\ &=& \sup_{x \in [x_0-\delta, c_1]} |f(x)| (c_1-(x_0 - \delta)) + \sup_{x \in [c_1,c_2]} |f(x)| (c_2-c_1) + \cdots + \sup_{x \in [c_n, x_0 + \delta]} |f(x)| ((x_0+\delta)- c_n) \\ &>& 0 \end{eqnarray*}  In the same manner,   \begin{eqnarray*} L(f,P) &=& \sum_{P([a,b])} m_i \Delta_i \\ &=& \sum_{P(B_\delta(x_0))} m_i \Delta_i \\ &=& \inf_{x \in [x_0-\delta, c_1]} |f(x)| (c_1-(x_0 - \delta)) + \inf_{x \in [c_1,c_2]} |f(x)| (c_2-c_1) + \cdots + \inf_{x \in [c_n, x_0 + \delta]} |f(x)| ((x_0+\delta)- c_n) \\ &\geq& 0 \end{eqnarray*}    We can conclude from here that $\int_{a}^{b} f(x) dx > 0$.  Is this a valid proof?


Rule of thumb for number of bootstrap samples

I wonder if someone knows any general rules of thumb regarding the number of bootstrap samples one should use, based on characteristics of the data (number of observations, etc.) and/or the variables included?


Proving that 1- and 2-d simple symmetric random walks return to the origin with probability 1

How does one prove that a simple (steps of length $1$ in directions parallel to the axes) symmetric (each possible direction is equally likely) random walk in $1$ or $2$ dimensions returns to the origin with probability $1$?  Edit: note that while returning to the origin is guaranteed $(p = 1)$ in $1$ and $2$ dimensions, it is not guaranteed in higher dimensions; this means that something in a correct justification for the $1$- or $2$-d case must fail to extend to $3$-d (or fail when the probability for each direction drops from $\frac14$ to $\frac16$).


Why aren't sealed hub bearings common place?

Loose hub bearings may be cheaper to mass produce, but why wouldn't sealed hub bearings be one of the first upgrades to a bike?  It seems that most of us choose loose bearings.  I'm thinking of putting in a set of sealed bearings front and back and be done with it.


I did show/hide on the checkbox when I check BUTTON appear and when I uncheck BUTTON disappear, I am trying when I hide BUTTON then checkbox should uncheck    $(".btn-close").hide();  $(".btn-close").click(function() {   $(this).hide(); });  $(function() {   $("#fileTypeS1").click(function() {     if ($(this).is(":checked")) {       $(".btn-close.image").show();     } else {       $(".btn-close.image").hide();     }   }); });  <input type="checkbox" name="freeAsset" value="valuable" id="fileTypeS1">
 <button type="button" class="btn-close image" aria-label="Close">   Images × </button>


Optimality in Clustering algorithms and an Optimality guaranteed clustering algorithm

So there are lots of clustering algorithms with different characteristics. What I am interested in now is a clustering algorithm which guarantees to find the optimal clustering result (if exists). And consequently, the algorithm would be deterministic. E.g. DBSCAN is deterministic but is it guaranteed to find the optimal clustering solution? For k-means, this doesn't apply since it is non-deterministic and it can get stuck in local minima.  So is there a clustering algorithm which guarantees to find the optimal solution? And are clustering algorithms classified by their "Finding optimal solution" characteristic? If a clustering algorithm X is deterministic, does it mean that it finds the best clustering that exists? Thanks!


I'm working on android studio and I'm new to it. I'm facing this error:

2020-09-19 17:48:23.749 5449-5449/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.braintrainer, PID: 5449 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.braintrainer/com.example.braintrainer.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2843) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo()' on a null object reference at android.content.ContextWrapper.getApplicationInfo(ContextWrapper.java:159) at android.view.ContextThemeWrapper.getTheme(ContextThemeWrapper.java:157) at android.content.Context.obtainStyledAttributes(Context.java:675) at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:839) at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:806) at androidx.appcompat.app.AppCompatDelegateImpl.findViewById(AppCompatDelegateImpl.java:630) at androidx.appcompat.app.AppCompatActivity.findViewById(AppCompatActivity.java:223) at com.example.braintrainer.MainActivity.(MainActivity.java:21) at java.lang.Class.newInstance(Native Method) at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:69) at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:45) at android.app.Instrumentation.newActivity(Instrumentation.java:1215) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2831) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)  at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)  at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)  at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)  at android.os.Handler.dispatchMessage(Handler.java:106)  at android.os.Looper.loop(Looper.java:193)  at android.app.ActivityThread.main(ActivityThread.java:6669)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)


Compute the maximum of $|f(z)|$ when $|z| \leq 1$ and $f(z)=\sin (z)$  So since $f$ is holomorphic on  $|z| \leq 1$, we know we'll find the max of $|f(z)|$ on $|z|=1$.  So:  $|f(z)|=|\sin(z)|=|\frac{e^{iz}-e^{-iz}}{2i}|=|\frac{e^{iz}}{2i}-\frac{e^{-iz}}{2i}|\leq |\frac{e^{iz}}{2i}|+|\frac{e^{-iz}}{2i}|=\frac{|e^{iz}|}{2}+\frac{|e^{-iz}|}{2}=\frac{e^{|iz|}}{2}+\frac{e^{|-iz|}}{2}=e$   I'm not so certain about this solution. Is there another way? Is using the triangle inequality safe when looking for a maximum?


Getting GRASS plugin working in QGIS for Windows?

I've installed QGIS 2.16.3-1 on Windows 10 via the OSGeo4W 64-bit installer and also selected the following packages:   grass (7.0.5-1) qgis-grass-plugin7 (2.16.3-1) qgis-grass-plugin-common (2.16.3-1)   I can't find the GRASS plugin in the list of plugins at Plugins > Manage and Install Plugins > Installed (panel)  And the QGIS Browser can see the grass location and mapset folder, but doesn't have the GRASS icon like it does in Linux. So layers can't be added to the map. I guess that means that the gdal-grass plugin is unavailable as well.  I tried launching QGIS Desktop 2.16.3 with GRASS 7.0.4 but get the same results as above. Maybe the GRASS version mismatch is a problem or just a shortcut name typo.


In an ancient forest grows a very old tree, on which live the most intelligent animals in this world. It is said that this tree has 60 roots, 360 branches and 2160 leaves. How many marks can you find on its trunk?


Is defragmentation needed on Ubuntu 16.04? Do I need anything besides BleachBit for maintenance?

OS: Ubuntu 16.04 (Desktop enviroment)  HDD size: 1TB   De-Fragmentation: In Windows it is mandatory to defrag the hdd. Otherwise system will become slow. Is it required in Ubuntu or any Linux distro? If yes, Kindly guide me on the secure procedure. Currently I am using BleachBit. Dose it take care of all the maintenance required? Or do I need to do some other stuff?


How can I find out which package installed a particular executable?

For example, on Debian or Ubuntu, which package has the /sbin/shutdown command in it? I want to read the source of that command (and possibly modify it to report notification on desktop) and I didn't know which package source to download.


sed bash script is unexpectedly replacing character with space instead of newline

Using bash command syntax:  echo "The*quick*brown*fox"|sed s/*/\\n/g  I get the desired output:  The quick brown fox   However in script:  IN_TXT="The*quick*brown*fox" OUT_TXT=$(echo $IN_TXT|sed s/*/\\n/g) echo $OUT_TXT   I get whitespaced: The quick brown fox  What am I doing wrong?


Why does postgresql differentiate between named and numeric time zone notations?

Why is there a difference between named timezone and numeric timezone offset, both of which yield different UTC timestamps for TIMESTAMPTZ?  Assume Europe/Prague timezone, which is currently +02:00 (DST); time of writing is 2018-08-25.  As you can check e.g. :    Also, in my postgres installation I can query it:  SELECT utc_offset FROM pg_timezone_names where name = 'Europe/Prague';   Which also yields 02:00:00.  Then, why on earth, do I get two different UTC timestamps when running following two queries?  The following yields 2018-08-25T20:00:00.000Z (2018-08-25 18:00:00-02):  SET TIME ZONE '+02:00'; -- with or without the plus SELECT '2018-08-25 18:00:00'::TIMESTAMPTZ;   The following yields 2018-08-25T16:00:00.000Z (2018-08-25 18:00:00+02), which is correct:  SET TIME ZONE 'Europe/Prague'; SELECT '2018-08-25 18:00:00'::TIMESTAMPTZ;   Why does postgres differentiate those two notations?


Let $x$ and $y$ be nonzero elements of an integral domain $D$. Then $x$ and $y$ are associates if and only if $x = yd$ for some unit $d \in D$.    I am done proving the $\Leftarrow$ part. For $\Rightarrow$ what I did was: If $x$ and $y$ are associates then $x \mid y$ and $y \mid x$, so $x \mid y$ implies that $xs = y$ for some $s \in D$ and $y \mid x$ implies that $yt = x$ for some $t \in D$. That is, $yts=y$ which implies $ts=1$. Therefore $s$ is a unit and $t$ is a unit.    Am I on the right track? Can I say that the proof is complete?


How to "protect" a folder from Windows Media Player (preventing it from messing up album covers)

In addition to  I would like to try option 1 from the accepted answer, but I don't know how to protect a folder, i.e. deny rights with ACL. Can anyone provide me step-by-step instructions how to do so in Windows 10?  "Protect" the folder containing the MP3 by creating empty Folder.jpg and AlbumArtSmall.jpg, and then denying write on them with ACL.


Formula for curve parallel to a parabola

I have a simple parabola in the form $y = a + bx^2$. I would like to find the formula for a curve which is parallel to this curve by distance $c$. By parallel I mean that there is an equal distance along a line perpendicular to the tangent to my curve at all points.  I've established that the curve isn't in the form $y = a + c + dx^2$, whilst I can make this satisfy for $x=0$ and $x$ equal to one other number is isn't valid across the range.  Any help much appreciated.  Rob


Statistical Entropy and Information theory

I am having trouble in understanding the following concepts :  Pg 231 Appendix B of the link   which is of the book Chaos and the Evolving Universe by Sally J. Goerner mentions that Entropy $S$: $$ S = \ln V $$ where $V$ is the phase space volume.  According to the book, this equation is from the concept of Boltzmann's entropy.   (Q1) How is This equation coming? How can we say that entropy = log of phase space volume? References and explanation would be appreciated. According to the book, the Bolzmann's constant, $k_B$, is taken to be $1$. But actually there is a value to the constant. Can I take the Boltzmann constant to be equal to $1$?  Also, if the entropy increases, does this mean that the volume decreases?  (Q2) Secondly, can Kolmogorov entropy, from Information theory be stated as logarithm of phase space volume that is equivalent to entropy from statistical mechanics? I am unsure if I can replace Boltzman with Kolmogorov Sinai (KS) entropy.   (Q3) What is the difference between Gibb's entropy and Shannon's entropy since the formula  is the same.


why does quantumn theory not reconcile itself with general relativity

Why has there not been a resolution in the gravitational effect between the two? It seems that quantum theory and Einstein disagree.