What are the requirements for a wizard to successfully copy a spell from a scroll into their spellbook?  First, I’m thinking that copying a spell from a scroll is similar to copying a spell from my own book into another book (as the scroll is in my possession just like my spellbook), but I could be wrong on this too.   Otherwise, the cost goes to 2 hours and 50 gp per spell level to copy (as opposed to the 1hr & 10gp).  It seems like one would have to succeed the intelligence check and pay the cost in terms of time and gold. But then I’m wondering about the order in which one would make the check and spend the resources (hopefully the check comes first, so as to not waste time and gold in the unfortunate event of a failed check).


I have three hashmaps, 2 of them have multiple values (arrayLists).   Map<String, String> advise = new HashMap<String, String>();     Map<String, ArrayList<String>> teach = new HashMap<String,ArrayList<String>>();     Map<String, ArrayList<String>> takesCo = new HashMap<String,ArrayList<String>>();     //ArrayList<String> courses = new ArrayList<String>;    I want to iterate over them based on the key of the first hashmap (advise) The array lists contain course names and I want to print when there is a match.  for (String x : advise.keySet()) {      String y = advise.get(x);     ArrayList<String> z1values = teach.get(y) ;     ArrayList<String> z2values = takesCo.get(x) ;     if (!z1values.isEmpty() && !z2values.isEmpty()){     for (String z1:z1values){         for (String z2:z2values){             if (z1.equals(z2)){                 result=x+","+y+","+z1;                 system.out.println(result);                 }             }         }     } }   I get nullPointerException in line with the if statement


su options - running command as another user

I was wondering how to run a command as another user from a script.  I have the script's owner set as root. I also have the following command being run within the script to run the command as the hudson user:  su -c command hudson   Is this the correct syntax?


how can i change the character case (lower to upper and vice versa)? at the same time

input      > a='Vikas'    > echo $a     Vikas   my required output is   echo $a | <some command>  vIKAS


How to measure the file download speed in another country

Now I have a dir with about 5000 files (images) in it and I concerned if this amount will significantly slowdown speed of page load with this images. I'd like to test the load speed of an image from this big directory in comparison with a dir with a small amount of files. The problem is that I am in Russia but the web-served is located in US and dedicated for US users. So how do I check the speed of download from another country?


How do I open Windows Explorer to a particular directory from a Windows command prompt?

When I'm in a particular directory in a Windows command prompt, I sometimes want to open Windows Explorer so it already shows that same directory.  How do I do that?  (I'm looking for the equivalent to open . in a Mac OS X terminal.)


Managed package license checks for users

I want to enable licensing for my managed package and had few questions:  The licensing would be on a per user basis. My managed package runs a scheduled job in system context and performs some operations for Users which are licensed.   How can I check license for a set of users other than current user? I'm aware that we can check licenses for the current user. But checking for licenses for X number of users would require a DML operation in every run. What are the best practices for checking for licensed users? How does LMA work for such cases? How do you write unit tests for licensed users before security review? Since you do not have access to LMA org?


Every prime ideal is max. if anysequence $I_1 \supseteq I_2 \supseteq I_3 \supseteq \cdots $ stabilises?

Let $R$ be a comutative ring with $1 \neq 0 $. Assume that for every sequence of ideals $I_1 \supseteq I_2 \supseteq I_3 \supseteq \cdots $ there is a $N$ such that  $$ n,m \geq N \quad \Longrightarrow \quad I_n=I_m $$ Show that every prime ideal in this ring is maximal.    I don't know what I can do to prove it. A small hint please?


Contractive condition implies the sequence is Cauchy

$a_n$ is a sequence that satisfies the following contractive condition;  $|a_{n+2}-a_{n+1}| \le c|a_{n+1}-a_n|, n\ge 1 $ for some $ 0 \lt c \lt 1.$ Show the sequence $a_n$ is a Cauchy sequence and converges.  Consider the sequence $x_n$ given by $x_1=2$ and $x_{n+1} = 2+ \frac{1}{x_n}$   Show that $x_n$ is bounded below by 2 Show that $x_n$ satisfies the contractive condition in the first part and converges Find lim $x_n$   Not looking for the answers. Just strong hints to guide me to the answer. The first part of the problem itself, makes sense. I'm unsure on the steps needed to prove this though. The second part for (1), would I want to use induction to show that it keeps getting closer to 2 but never reaches it. For part (2), I may be way off, but as simple as plugging into the contractive condition above? I am confused on part 3.  A lot here, I appreciate any sort of help. Thanks


What do you call a person who is regionally biased?

What do you call a person who is regionally biased and has an unreasonable hatred/dislike for people from other regions of the country/world? Something like a racist, but the point of discrimination here is the geographical region and not race.


When I download Ubuntu to make a bootable USB, I get only a Chinese UBUNTU. How do I download a English version


How to recreate this wireframe looking effect

I would like to recreate something like this using blender, if someone knows please explain it to me.  thanks in advice.


What rules should I follow to determine how much swap space my linux-based computer should have today?


Switching tabs in Gedit 3.* with the mouse wheel

I use Gedit a lot and thus tend to have a lot of tabs open at any one time. In Gedit 2.* I could switch between tabs using my mouse wheel but since Oneiric I can't. I assume this is because of various GTK "upgrades".  Does anybody know of a plugin (or workable fix -- that doesn't require me to recompile everything and its brother) that will see me back to mousewheeling my day away?


Is there a way to see limits of nets as categorical limits?

This is just for fun(ctors).  I was wondering if limits in category theory are a generalization of limits (of nets) in topology. I found  a complete and satisfactory answer for limits of filters, and I know that there is a correspondence between filters and nets that preserves its limits.  However, I have friends who dislike filters (sad, but true), and in order to prove this equivalence to them I wish to know if there is a direct way to prove this without explicitly using filters. More precisely, if $\mathscr{I}$ is a directed set and $f:\mathscr{I}\rightarrow X$ is a net, there is some functor $F:\mathscr{I}\rightarrow\mathscr{C}$ (for any nice category $\mathscr{C}$) such that $f$ converges to $x$ iff "something" related to $x$ in $\mathscr{C}$ is the limit of $F$?  Thank you!


How does Armor of Agathys interact with getting temporary hit points?

The spell Armor of Agathys states:      You gain 5 temporary hit points for the duration. If a creature hits you with a melee attack while you have these hit points, the creature takes 5 cold damage.   Now, assume my buddy uses Inspiring Leader to give me 10 temporary hit points — does the effect end?


Flask application exits after returning exit code 0

I'm writing a basic "Hello world" program in Flask which exits without giving any output. The following is my code:  import flask  app = flask.Flask(__name__)   @app.route("/") def hello():     return "Hello World"   if __name__ == "main":     app.run(debug=True, host='0.0.0.0')     print("test")    I'm getting the following output:  Process finished with exit code 0   But my http server is not starting, I get the following output:  $ curl -I http://127.0.0.1:5000 curl: (7) Failed to connect to 127.0.0.1 port 5000: Connection refused


How do I get firefox to identify itself as Internet Explorer for certain sites?

My bank's website insists that I use Internet explorer > v7. I have however disabled internet explorer from windows features and use Firefox instead.  How do I get firefox to identify itself as IE for that particular site? I'm running windows 7 with firefox 13 right now.


Appending variables with quotes and space in bash

I would like to run a command in a bash script with arguments however the arguments are conditional. What I would like to achieve is this  command --myflag var="value with space"  In the case above I would like to have --myflag var="value with space" conditional and it also has to have the double-quotes because of the space (among other reasons). So I attempted something like this  if [ $somecondition ]; then   FLAG="--myflag var=\"value with space\"" fi  command $FLAG   When I run the above in debug I can see that is run is this  command --myflag 'var="value' with 'space"'   Notice the single quotes. I dont know why this is but after several attempts at trying this I seem to fail to find a solution,  How would one go about solving this?


I try to use my username Tootyfruity and it keeps saying invalid name even though it has online status lit up. any suggestions in how to end this error??


How do I prefix commandline output with a fixed string?

Suppose I run the command:  sudo ./list_members Physicians    And I want to prefix the output like this:  Physicians user@domain.com Physicians user2@domain.com Physicians user3@domain.com Physicians user4@domain.com   Is it possible for me to prefix StdOutput like that?


Color Image to Grey scale and RGB to CMYK Conversion

How can I convert all color images to Grey scale? I am using MikTeX 2.9, LaTeX->dvips->ps2PDF for conversion.  Also, please advise if possible to change all RGB color image to CMYK format...


Are constants the only continuous functions with "symmetric derivative" zero?

Put precisely, if $f:\mathbb R\to\mathbb R$ is continuous with  $$ \lim_{s\to 0^+}s^{-1}(f(t+s)-f(t-s))=0 \kern20mm (*) $$ for all $t\in\mathbb R$ , is $f$ then constant?  I guess it is but I cannot see the proof. Obviously, if instead of ($*$) we had $\lim_{s\to 0^+}s^{-1}(f(t+s)-f(t))=0$ , i.e. the right-handed derivative zero, then the assertion could be proved indirectly by a simple compactness argument applied to closed intervals $[a,b]$ with $f(a)\not=f(b)$ . However, I cannot see how this argument could be modified to get the above result. Is there possibly a reference to this, or is the result even false?


Which classification metric to use and why?

I have a random forest classification model that classifies into 3 different labels. The thing is my data is unbalanced label 1 dominates the data with frequency of 0.5 while label 2 is around 0.35 and the third one is 0.15. Which classification metric would you recommend me to use in order to evaluate my candidate models. what is your rational ? thank you all in advance !


Which of the following three is correct?         When parents relate to a child, they do a lot of the work, figuring out what the child needs and then accommodating those needs.   This is not, however, the case when two children are interacting.   [...] This is, however, not the case when two children are interacting.   [...] However, this is not the case when two children are interacting.


prove that every generating set of a vector space $V$ has a minimal generating set

There are two ways to prove that every $k$-vector space $V$ has a basis. First, choose a linearly independent set of $V$, use Zorn lemma to prove that it must be contained by a maximal linearly independent set, then prove that the maximal linearly independent set is a basis. Second, we can choose a generating set $B$ of $V$, prove that there is a minimal generating set which is contained in $B$, and then prove that every minimal generating set is a basis. However, I don't know how to prove that every generating set of a vector space has a minimal generating set, could someone help me with that? Thank you!


Dotted line segments in pgfplots and changing font size in legend

I have the following code: \documentclass[11pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{booktabs,siunitx} \usepackage{pgfplots} \pgfplotsset{width=10cm,compat=1.9} %\usepgfplotslibrary{external} %\tikzexternalize \begin{center} \begin{tikzpicture} \begin{axis}[     title={$x-t$ graph model of LAB 1},     height=10cm,     width=10.2cm,     xlabel={time ($t$)},     ylabel={position ($x$)},     xmin=0, xmax=10,     ymin=0, ymax=12,     xtick={0,1,2,3,4,5,6,7,8,9,10},     ytick={0,2,4,6,8,10,12},     legend pos=south east,     ymajorgrids=true,     grid style=dashed,     legend entries={$x$,$x^2$},         legend style={             at={(1.03,0.5)},             anchor=west} ] \addplot[     color=blue,     mark=square,     ]     coordinates {     (0,0)(1.48,2)(2.76,4)(4.02,6)(5.22,8)(6.43,10)(7.76,12)     }; \addplot[     color=red,     mark=square,     ]     coordinates {     (0,0)(1.66,2)(3.21,4)(4.76,6)(6.32,8)(7.81,10)(9.47,12)     }; \addplot[     color=green,     mark=square,     ]     coordinates {     (0,12)(1.53,10)(2.94,8)(4.53,6)(5.95,4)(7.36,2)(8.83,0)     }; \addplot[     color=black,     mark=square,     ]     coordinates {     (0,12)(1.80,10)(3.46,8)(4.94,6)(6.49,4)(8.20,2)(9.85,0)     }; \legend{Trail 1 (fast and $+$), Trail 2 (slow and $+$), Trail 3 (fast and $-$), Trail 4 (slow and $-$)} \end{axis} \end{tikzpicture} \end{center} \end{document}  which produces the following image:  I am wondering how I am make the above line segments dashed (ie the black, blue, red, green). I want to add a line of best fit over it, so I would like the lines to be dotted. Also, how do you change the text size of the legend? I would like it to be slightly smaller so I am make the graph larger. Thanks!


I don't know what's wrong in my code  this is my Fragment class  package com.example.gandi.symanlub;   /**  * A simple {@link Fragment} subclass.  */ public class Reminder extends Fragment {      Button btnubah, btnkeluar;     SessionManager session;      View rootview;        @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {         // Inflate the layout for this fragment         rootview = inflater.inflate(R.layout.fragment_reminder, container, false);          btnkeluar = (Button)rootview.findViewById(R.id.btnlogout);         btnkeluar.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 session.logoutUser();             }         });          return rootview;      }  }     and this is my SessionManager.java  package com.example.gandi.symanlub;  @SuppressLint("CommitPrefEdits") public class SessionManager {     // Shared Preferences     SharedPreferences pref;      // Editor for Shared preferences     SharedPreferences.Editor editor;      // Context     Context _context;      // Shared pref mode     int PRIVATE_MODE = 0;      // nama sharepreference     private static final String PREF_NAME = "Sesi";      // All Shared Preferences Keys     private static final String IS_LOGIN = "IsLoggedIn";     public static final String KEY_EMAIL = "email";     public static final String KEY_PASS = "pass";        // Constructor     public SessionManager(Context context){         this._context = context;         pref = _context.getSharedPreferences(PREF_NAME, PRIVATE_MODE);         editor = pref.edit();     }      /**      * Create login session      * */     public void createLoginSession(String email, String pass){         // Storing login value as TRUE         editor.putBoolean(IS_LOGIN, true);          editor.putString(KEY_EMAIL, email);         editor.putString(KEY_PASS, pass);         editor.commit();     }      /**      * Check login method wil check user login status      * If false it will redirect user to login page      * Else won't do anything      * */     public void checkLogin(){         // Check login status         if(!this.isLoggedIn()){             Intent i = new Intent(_context, Login.class);             i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);             i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);             _context.startActivity(i);             //((Activity)_context).finish();         }      }      /**      * Get stored session data      * */     public HashMap<String, String> getUserDetails(){         HashMap<String, String> user = new HashMap<String, String>();          user.put(KEY_EMAIL, pref.getString(KEY_EMAIL, null));         user.put(KEY_PASS, pref.getString(KEY_PASS, null));          return user;     }      /**      * Clear session details      * */     public void logoutUser(){         editor.clear();         editor.commit();     }      public void hapussesi(){         editor.clear();         editor.commit();     }      public boolean isLoggedIn(){         return pref.getBoolean(IS_LOGIN, false);     } }     the error when I run the project :  java.lang.NullPointerException: Attempt to invoke virtual method 'void com.example.gandi.symanlub.SessionManager.logoutUser()' on a null object reference


I'm looking for good patterns for implementing a paged table of results in ASP.NET MVC with sorting, filtering, and paging provided via AJAX.  It seems to me that I should have my controller actions provide only the data and not mark up to maintain the separation of concerns -- so the Ajax callback would provide new table data and pager settings which the client would use to re-render the table.  Alternatively, I could use have the controller return a partial view that I simply replace inside a container on the page.  I'm new to the ASP.NET MVC world, so I'd be interested in hearing opinions and other alternatives as well.  How would you go about doing this?  I'm also interested in hearing about jquery table plugins that work well with Ajax.


See this screenshot:         MathJax is now enabled for the Android app (yay!). However, it doesn't work in titles.  Could this be fixified?


How long can you safely store home-prepared vacuum packed food for at home?

I have a consumer-grade vacuum sealer (Aicok) which I regularly use for sous-vide cooking with the manufacturer supplied bags. Under these different scenarios, how long can I keep food for, sealed and refrigerated properly, prior to and after cooking? I am concerned that a lack of air and the different ingredients (e.g. garlic, oil or dairy) pose a potential risk of botulism and decrease safe storage times. Conversely, will the vacuum sealing extend the shelf-life despite being a consumer, rather than a professional product? My estimate is 24 hours top for a marinade and 24 hours storage after cooking, but I realise this is probably extremely conservative.  Poultry e.g. chicken thighs, marinating in a citrus solution with fresh garlic? Beef, e.g. steak, marinating in oil and fresh garlic? Beef or chicken marinating in yoghurt or cream? Any of the above, cooked sous-vide as appropriate, then rapidly cooled in cold water and refrigerated unopened ?


Longest sentence yet (Text Analysis). How do we decompile this sentence?

> Context: On the other hand, Italian writers did well to draw on the Tuscan vernacular rather than the other vernaculars of Italy [1250] for the reasons that everyone knows and which we have stated pp.1246, end-47, beginning.     But it would be silly, absurd, pedantic, and ridiculous to conclude from this that only that vernacular can therefore be drawn on, that writers can only write in the manner and to the extent that that particular people speaks, that the Italian language and Italian literature wholly depend on the common people of Tuscany (when it does not even depend on the common people at all, but simply uses them when it so chooses), that in and outside of Tuscany, an Italian writer cannot create words or phrases that the Tuscan populace does not use, that, in short, someone who is not Tuscan, indeed, who is not Florentine, or not actually from the Old Market, is not Italian.   The questions would be:  1.There are two 'that' in line 3, would someone kindly explain this queer using of 'that'?  2.Is it acceptable writing in English using 'that' so many times in a single sentence? Wouldn't it be more appropriate if for example the first and second line: 'But it would be silly, absurd, pedantic, and ridiculous to conclude that only vernacular can therefore be drawn on'  3.If we decompile those 'thats' into multiple sentences, would it change the conveyed meaning?  Thank you!


A judge is 35% sure that X has committed a crime. A and B are two witnesses who know whether X is innocent or guilty. However, A is X’s friend and will lie with probability 0.25 if X is guilty. He tells the truth if he is innocent. B is X's enemy and will lie with probability 0.30 if X is innocent. He will tell the truth if X is guilty. What is the probability that, in the course of the trial, A and B will give conflicting testimony?  L=lie T=tell the truth G=guilty I=innocent C=contradiction   I have attached my solution. I have a feeling that my step: $P(C|G)=P(L|G)\times P(T|G)$ is wrong but I'm not too sure if it is.


I found many information online on "might" and "may" and it sounds like most of the time we can use both of them, interchangeably.  However in this quiz, it seems like if only one of the two is correct and I cannot figure out why:    Here are three of the questions:  I was just wondering whether you ____ be able to help me.  may might CORRECT  Q2 - ____ God have mercy on your soul.  May CORRECT Might  Q3 - You ____ well be right.  may CORRECT might   Can someone tell me why the ones that are considered correct are correct?


how to get the stated behaviour for awk's system() command?

I'm calling the sleep command from awk like so: system("sleep 15m") and found that when I interrupt that with CTRL-C it only interrupts the sleep command, not the script. So I tried wrapping the system function in an if statement, as suggested  and further explained . It then looks like if (system("sleep 15m") != 0) exit 1.  That didn't work, so I tried print system("sleep 3"), which always returns 0, contrary to the stated behavior. Typing sleep 3 then echo $? in the shell produces 0 if I let it run and 130 if I interrupt it.  So what am I missing? I've checked for typos several times, tried the --posix and --traditional switches, and studied the user's guide, nothing changes it.  $ awk --version GNU Awk 4.1.3, API: 1.1 (GNU MPFR 3.1.4, GNU MP 6.1.0) Copyright (C) 1989, 1991-2015 Free Software Foundation.


Meta Stack Exchange should not penalize downvotes

Voting on Meta sites generally express agreement and disagreement with a proposal, unlike on the Q&A sites where they indicate useful/good vs. non-useful/bad content.  It seems to me that a down-vote on Meta Stack Exchange should not carry a -1 rep penalty, which only discourages down-voting. With this discouragement, questions on Meta SE will be biased towards agreement, since for every up-voter, there may be several in disagreement who don't want to lose the rep for down-voting.  Can the penalty for down-voting on Meta SE be removed?


Determine whether a particular file is compressed

How to know in Linux whether a particular file is compressed or not using a command?


How does AdamW weight_decay works for L2 regularization?

hello I have a question about weight regularization in Adam apparently the weight_decay in the AdamW function  has the same impact as an L2 regularization my questions are: is that parameter the same as lambda that we have in the regularization term?  how does it exactly work? and what is its impact on the model complexity?


Can I set my Windows to boot without stop on password verification even when having a password set?

Is there some way to configure Windows 7 to boot up without asking for a password (on password check phase) even if I have a password set on my account?   What I wan't to do with it, is boot up without interruptions, but when I lock my Windows (with Win+L) I want to block it until I enter my account password.  I was wondering if maybe exists some registry set configuration of something like this.


How can I apply a -p0 patch from any working directory?

I have a patch with absolute paths that I wish to use. i.e. the first few lines are as follows.  --- /usr/share/apps/plasma/packages/org.kde.pager/contents/ui/main.qml  2014-10-10 18:47:23.000000000 +1100 +++ /usr/share/apps/plasma/packages/org.kde.pager/contents/ui/main.qml.mod  2014-11-11 09:44:17.786200477 +1100   However, it fails unless I am in the root directory.  ~$ cd ~$ sudo patch -i /tmp/fix_kde_icons.patch -p0 Ignoring potentially dangerous file name /usr/share/apps/plasma/packages/org.kde.pager/contents/ui/main.qml Ignoring potentially dangerous file name /usr/share/apps/plasma/packages/org.kde.pager/contents/ui/main.qml.mod can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? ... ~$ cd /tmp /tmp$ sudo patch -i /tmp/fix_kde_icons.patch -p0 ... #same error as above /tmp$ cd /usr /usr$ sudo patch -i /tmp/fix_kde_icons.patch -p0 ... #same error as above /usr$ cd / /$ sudo patch -i /tmp/fix_kde_icons.patch -p0 patching file /usr/share/apps/plasma/packages/org.kde.pager/contents/ui/main.qml   Is there a way to make patch use the absolute path with any working directory?


Let $a_1,...,a_n$ be positive numbers. Show that $(a_1+...+a_n)(\frac{1}{a_1}+...+\frac{1}{a_n})\ge n^2$. Just not really sure how to approach this problem, any tips/solutions would be greatly appreciated.


“community wiki” checkbox in new question shows a dialog twice when self-answering

Click Answer your own question Check community wiki A dialog box     Are you sure you want to make this post Community Wiki?   will appear, Click OK or Cancel; The same dialog will appear again.   Google Chrome 44.0.2403.107 / Windows8.1 / site rev 2015.7.25.3609


Proving that $(2k+1)$ is idempotent for $\mathbb{Z}_{2(2k+1)}$

I've noticed that the group $\mathbb{Z_n}$ under multiplication has a non-trivial idempotent element particularly when $n=2(2k+1), k \in \mathbb{N}$ --- in other words, the even numbers are twice an odd number. Claim: For $\mathbb{Z}_n$ and $n=2(2k+1), k \in \mathbb{N}$, $2k+1$ is idempotent Proof Let $n=2(2k+1)$ for some $k \in \mathbb{N}$ We want to show that $(2k+1)^2 = 2k+1$ in $\mathbb{Z}_n$. Since $n = 0 $ in $\mathbb{Z}_n$ we have $2(2k+1) = 0 \iff 4k+2 = 0 \iff 4k = -2$ So $4k = -2$. Then, $$(2k+1)^2=4k^2+4k+1=k(4k)+4k+1 =k(-2)+4k+1=-2k+4k+1=2k+1$$ Thus, we have shown that $2k+1$ is idempotent in $\mathbb{Z}_n$ under multiplication  $\hspace{1cm} \square$


In CGEL page no.126 "I already knew how to do it."[Tr included within Tsit]..., if Tr is internal part within Tsit so this shows imperfective aspectuality.., is this right or wrong?


Can I groud 12v Negative and 5v Negativ at the same time?

I have an external 12v power supply with arduino mega, I want to control a 12v led strip from ardunio mega, so I'm confused little bit can I connect arduino ground to 12v ground? Is this connection damage my ardunio ?


How can I make a convex lens with TikZ?  I tried using arcs but this doesn't look right.  \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}   \pgfmathsetmacro{\xr}{0.35}   \pgfmathsetmacro{\yr}{2}    \draw (0, 0) coordinate (O) arc[x radius = \xr cm, y radius = \yr cm,   start angle = 90, end angle = 270];   \draw (O) arc[x radius = \xr cm, y radius = \yr cm,   start angle = 90, end angle = -90]; \end{tikzpicture} \end{document}   I would like the arcs to meet at a sharp corner not rounded.


A question is about variable scope. Why next next function2 modifies list l  def function1():     myvar = 1     l = []     def function2():                                                                      l.append(3)     function2()     print l   But it gives error "local variable 'myvar' referenced before assignment", if I add next line myvar = 4,    def function1():     myvar = 1     l = []     def function2():         myvar += 4                                                                        l.append(3)     function2()     print l   How to modify myvar that is local to function1 within function2 without making myvar belong to the module scope (module global variable)? References to documentation are appreciated!


Failed to set interface wlan0 into AP mode: Intel centrino N1000 Wireless

I am a new Ubuntu user and have installed Ubuntu 12.04 LTS on my Acer Aspire One D255 netbook with an Intel Centrino N1000 Wireless Card. All I want is to set my netbook as wifi hotspot for my android devices. This worked well for me in Windows 7 using Connectify but I am trying to make hotspot in Ubuntu using hostapd () but getting following error:  ali@ali-AOD255:~$ sudo hostapd ~/hostapd-test.conf Configuration file: /home/ali/hostapd-test.conf nl80211: Failed to set interface wlan0 into AP mode nl80211 driver initialization failed. ELOOP: remaining socket: sock=4 eloop_data=0x8178910 user_data=0x8178e80  handler=0x807c5e0 ELOOP: remaining socket: sock=6 eloop_data=0x817ac98 user_data=(nil) handler=0x8086770   All I want is to setup a wifi hotspot using my netbook so that my android devices can view and connect to it.


At installation it did not detect Windows. I mounted the Windows partition and have run os-prober with no results returning.  I am able to boot Windows or Ubuntu by specifying the partition in UEFI boot order. The bios does not appear to allow booting with legacy. SecureBoot is on.   This is with Ubuntu 12.04 LTS on a Inspiron 15.   Here is the gdisk:     1            2048         1026047   500.0 MiB   EF00  EFI system partition    2         1026048         1107967   40.0 MiB    FFFF  Basic data partition    3         1107968         1370111   128.0 MiB   0C01  Microsoft reserved part    4         1370112         2394111   500.0 MiB   2700  Basic data partition    5         2394112       544743423   258.6 GiB   0700  Basic data partition    6       606183424       625140399   9.0 GiB     2700  Microsoft recovery part    7       544743424       545230847   238.0 MiB   0700  (/boot)    8       545230848       556949503   5.6 GiB     8200  (swap)    9       556949504       606181375   23.5 GiB    0700  (/)   When installing ubuntu, I believe I specified that the bootloader be installed on /dev/sda.   I added the following to /etc/grub.d/40_custom but booting ubuntu did not offer a grub menu:  menuentry "Windows 8" { set root = "(hd0,4)"    chainloader +1    }   When booting I think I see "EFI Disk error" flash very quickly before Ubuntu starts booting.


Can gravity be shielded, like electromagnetism?

If I remember well, they said that it can't, but I do not know why.  Yes, I meant if gravity can be shielded using something like a Faraday cage (or something else?).  Thank you.


When I startup mysql on my unbuntu server I will get a message.  121122 17:39:37 [Note] Plugin 'FEDERATED' is disabled. 121122 17:39:37 InnoDB: The InnoDB memory heap is disabled 121122 17:39:37 InnoDB: Mutexes and rw_locks use GCC atomic builtins 121122 17:39:37 InnoDB: Compressed tables use zlib 1.2.3.4 121122 17:39:37 InnoDB: Initializing buffer pool, size = 128.0M InnoDB: mmap(137363456 bytes) failed; errno 12 121122 17:39:37 InnoDB: Completed initialization of buffer pool 121122 17:39:37 InnoDB: Fatal error: cannot allocate memory for the buffer pool 121122 17:39:37 [ERROR] Plugin 'InnoDB' init function returned error. 121122 17:39:37 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 121122 17:39:37 [ERROR] Unknown/unsupported storage engine: InnoDB 121122 17:39:37 [ERROR] Aborting  121122 17:39:37 [Note] mysqld: Shutdown complete   a few times I have got a message saying that the plugin is disabled.  I use webmin to configure it. Could that be a problem?


Terminal prompt is being written over top of

I should preface this by saying this terminal session is via ssh from Windows PuTTY to Linux OpenSSH. I'm not sure if this matters, but I figured I should say it anyways.  Currently, when I write more in the terminal than fits on one line, the text begins on the same line rather than a new one, and causes my prompt to go from this:  trevor@SEARS-SERVER:~$   to this (example text of course):  ne lineSEARS-SERVER:~$ this is the text line that is too long to fit on o   Currently my PS1 is set up in my .bashrc with:  export PS1="\n[$(date +%r)] \e]0;\e[0;32m\u\e[m@\e[38;5;52m\h\e[m:\e[38;5;240m\w\e[m\e[97m$\e[m"   Also, when the windows is below a certain width, this happens:  m$ :32:40 PM] trevor@SEARS-SERVER:~   I know this has something to do with either my PS1 configuration, or PuTTY, but I don't know which, or why/how. Any help?


Null object reference: When filling a textView with .txt data

I need to load data from a .txt file by using the following method:   public void getTextFromFile() {     File path = getExternalFilesDir(null);     File file = new File(path, "alarmString.txt");      int length = (int) file.length();      byte[] bytes = new byte[length];      FileInputStream in = null;     try {         in = new FileInputStream(file);          in.read(bytes);         in.close();     } catch (IOException e) {         e.printStackTrace();      }finally {           String contents = new String(bytes);         TextView clockTxt = (TextView) findViewById(R.id.clockText);         assert clockTxt != null;         clockTxt.setText(contents);     } }   When calling the method getTextfromFile();, under the onCreate(); the program crashes, with giving me the following error:   Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference   I have tried to:    Check if the id is correct.  Made sure that the correct layout is being called by setContentView(R.id.activity_main);  Making sure that the method getTextFromFile(); is being called under the setContentView();   Thanks!


I am adding objects to an ArrayList that is initialized as null inside a for each loop, but SonarLint is giving me a "NullPointerException" could be thrown when I try to add each object. Why is this error being pointed out?   public List<SatelliteData> getData()   {     SatelliteData satellite;     ArrayList<SatelliteData> satelliteList = null;      try(FileInputStream file = new FileInputStream(satelliteOutputFile))     {       TLEParser parsedFile = new TLEParser();       List<TLE> tleList = parsedFile.readFile(file);        for (TLE tle : tleList)       {         satellite = new SatelliteData(tle);         satellite.collectSatelliteData();          satelliteList.add(satellite); //A "NullPointerException" could be thrown; "satelliteList" is nullable here       }      }     catch (IOException ex)     {       LOGGER.error("IO Exception: " +  ex);       notifyTheObservers("IO Exception: " + ex);     }      return satelliteList;   }


Given any positive integer $n$, is there a way to quickly construct a statement $S$, such that the shortest proof of $S$, if it exists, must have length at least $n$?  And such that one out of $S$ or not $S$, is provable.    And question 2: If S, then a proof of S must have length atleast n. If not S, then a proof of not S must have length atleast n.  Edit:  I had in mind that the number of symbols in S be of the same order as the number of symbols required to specify n.


How does $F(\psi, \phi) = [\sum_{x}\sqrt{p(x)q(x)}]^{2}$

From Quantum Information Theory by Mark Wilde, pg 243 asks to show that $F(\psi, \phi) = [\sum_{x}\sqrt{p(x)q(x)}]^{2}$, which is described as the Bhattacharyya overlap, or classical fidelity, between distributions $p(x)$ and $q(x)$. However, anywhere I look it up, said overlap is given as $\sum_{x}\sqrt{p(x)q(x)}$. No square is involved. Moreover, I am unsure if the means by which I arrive at this is correct? For $|\psi\rangle = \sum_{x}\sqrt{p(x)}|x\rangle$ and $|\phi\rangle = \sum_{x}\sqrt{q(x)}|x\rangle$, where $|x\rangle$ is an orthonormal basis, if get: $$F(\psi,\phi)=|\langle \psi|\phi\rangle|^{2}=\sqrt{\langle \psi|\phi\rangle\langle \phi|\psi\rangle}^{2}= \sqrt{\sum_{x}\sqrt{p(x)}\sqrt{q(x)}\sum_{x}\sqrt{q(x)}\sqrt{p(x)}}^{2}=$$ $$  =\sqrt{\left(\sum_{x}\sqrt{p(x)q(x)}\right)^{2}}^{2}=\left(\sum_{x}\sqrt{p(x)q(x)}\right)^{2}$$ This looks right, but it's not equal to the overlap it is supposedly equivalent to, and I wonder if I have made an error somewhere?


Dynamically create table in the database from a map using PDO prepared statement

I need help for this problem. I have a map of values: $table = "tableName" $columns = "col1", "col2", ... "coln" $types = "col1type" .... "colntype"  Is it possible to use PDO Prepared statements to build a SQLITE query like this(example): create table if not EXISTS 'tableName' ('col1' TEXT, 'col2' TEXT, ... , 'coln' TEXT);  of course not knowing in advance how many bind params I need to use, I would need a prepared statements template like this: create table if not EXISTS ':tableName' (':col1Name' :col1Type, ':col2Name' :col2Type, ... , 'colnName' :colnType);  I was thinking of building the query by first concatenating the prepared statement: $query = " create table if not EXISTS ':tableName' (";  for($i=0; i<count($columns); i++){ $query = $query . " ':col$iName' " . " :col$iType ";  if($i != count($columns) - 1){ $query = $query . ","; }else { $query = $query . ")"; } }  then bind the params in another for cycle. I don't like this solution much, so I am asking if there is a better way of doing this. Thank you for your help!


Through out the movie Shazam! (2019), we see the bad guy, Dr. Sivana, wanting Billy to touch the staff and say his name (Shazam) so that the power would go to Dr. Sivana. At some point, Billy shared his powers with his family using the same method (touching the staff and saying his name).   So did Billy's powers get diluted, or did everyone get the full power of Shazam? What would have happened if Billy had done as Dr. Sivana told him? Would Billy have lost all of his power, or only shared it with Dr. Sivana as he did his family?


Where does the curve $x^y = y^x$ intersect itself?

This problem is quite easily solved by using logarithms and derivative and forming the function $f(x,y) = x^y - y^x$, however there are assertions that this problem can be solved without using either of the two. I can not see how one would proceed to solve this problem in the absence of logarithmic manipulation and differentiation. Can anyone shed some light on this?


Epimorphisms of magmas: are they surjective?

Is any epimorphism in the category of magmas surjective? More generally, is the same statement true for the category of sets with an $I$-ary operation, where $I$ is any (possibly infinite) set?   A magma is just a set with any random binary operation on it. It need not be commutative, associative, have an identity, have inverses, etc.


I have entered the Grandmapocalypse, and these things called 'Wrinklers' are spawning on my main cookie. Are they positive or negative, and what do they do?


Calculus of variations -- how does it make sense to vary the position and the velocity independently?

In the calculus of variations, particularly Lagrangian mechanics, people often say we vary the position and the velocity independently. But velocity is the derivative of position, so how can you treat them as independent variables?


Uncountable sequence of functions which differ on finitely many values

I've been struggling with this question I've been assigned for a couple weeks now.  The question is to show from ZFC that there is an uncountable sequence $〈f_α:α→ω:α<ω_1〉$ of functions such that   Each $f:α→ω$ is injective, and for each $α<β<ω_1$, $\{ξ∈α:f_α(ξ)≠f_β(ξ)\}$ is finite.   I believe it will be a matter of constructing the sequence outright, but I can't seem to get the definition right so that it doesn't cause problems at limit ordinals, even if I avoid an infinite number of values in the range of $f_α$.  I may be thinking about this wrong, so any help would be appreciated.


How does SVD work for recommender systems (in the presence of missing data)?

I have read about SVD, and understand it as being similar to what PCA does. For recommendation, let's say I have a matrix where rows are users and columns are items, and the entry $(i,j)$ in matrix is rating given by user $i$ to item $j$, say 1-5 (discrete). Naturally, lots of entries are missing.  How to apply SVD in this case, since the matrix has missing data?  Imputing with either 0s or the global average seems to make no sense to me. So how do we proceed with SVD? Also, what are some modifications we could make to make SVD work better?


Gboard ruined my typing experience, how can I change it back?

My phone just got the new Gboard, and to be honest, I haven't noticed much of an improvement. Maybe I don't use its many celebrated features as much as I should.  However, I have one big problem with it the way it is. I use my phone to mainly type two languages: Norwegian and English. Before the update, I would switch between them by the touch of a button (the globe icon next to the space bar), and for those rare occations I needed something else, I could momentarily enable them in the settings. I used the English layout for writing English, and the Norwegian language to write Norwegian. This way, the moment I begin to write, the swipe function knows which dictionary to test for what I'm trying to type, and everything works nicely.  However, with the new Gboard, it can do both languages at once. Apparently, the internet is happy that you don't have to manually switch, but I am more annoyed at the fact that when I begin swiping, the keyboard doesn't know which dictionary to use, so I can swipe all I want without any words coming out. I have to manually type a few words first before it gets the idea, and from there it works nicely. It also makes it much more difficult to mix both languages into a single small text.  How can I get back to manually switching between languages? Is there a setting I've missed, or do I have to roll back to an earlier version?  I'm on an LG Nexus 4, running Android 5.1.1, and Gboard version 6.0.69


My text in thesis is as below:  %\documentclass[croppedpdf,pagebackref,showinstructions,showtodo]{adsphd} %\documentclass[pagebackref,showinstructions,showtodo,showtodopriv,showlabels,biblatex,biber,biblatexstyle=authoryear]{adsphd} %\documentclass[online]{adsphd} %\documentclass[print]{adsphd} \documentclass[pagebackref,showinstructions,showtodo,showtodopriv,showlabels,final,coverfontpercent=100]{adsphd}   When I compile, there is notification of documentclass problem, as shown below:  Command Line:  pdftex.exe --interaction=errorstopmode --synctex=-1 "thesis.tex"   Startup Folder:   C:\Documents and Settings\solomonge\Desktop\thesis   Error Message:  This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9) entering extended mode ("C:\Documents and Settings\solomonge\Desktop\thesis\thesis.tex" ! Undefined control sequence. l.5 \documentclass                   [pagebackref,showinstructions,showtodo,showtodopriv,showla...   What is the problem?


In what order should I read the Dragonlance trilogies?

Recently I have finished the Chronicles trilogy by Margaret Wise and Tracy Hickman. I tried to find the Trilogy that comes after Chronicles, but the library didn't know.  What is the correct reading order of the Dragonlance trilogies?


Add text outline to extruded text edges (or "insides")

I'm trying to make some text objects for a Unity game. Essentially, letters will be falling from out of frame and rotating in 3D space. I've created extruded text and added a front and back "face" in a darker colour, and with a different fill mode.  However, I would like the "edges" of the letters in-between the two faces to be dark as well. Is there any way I can do this without converting my letters to a mesh (that is, this would make it easier to bulk-edit the alphabet and retain the ability to change fonts). Below is a screenshot outlining what I mean by trying to "outline" the "edges".  I consulted this resource, but I seem to need something a bit more specific:  Thank you for any input.


Writing equations below each other and using overset

I want to have equations below each other and want to verify the equations by using \overset. I am using:   \begin{align*}  3 &= 3\\ \overset{\text{...}}{&=} \end{align*}   But now i don't have the equations below each other because the &= command is not working anymore. Any clues?   Thank you!


How do you convert a cake recipe to make brownies?

I'm wondering how to convert a cake recipe to make brownies. My intention is to use  for Mexican Chocolate Cake With Mascarpone Frosting. The cake part calls for the following ingredients:  1 cup unsweetened cocoa 2 3/4 cups flour 1 1/4 cups sugar 1 cup packed brown sugar 1 1/2 Tablespoon cinnamon 2 teaspoons baking soda 1/2 teaspoon cayenne pepper 1/2 teaspoon salt 2 cups whole milk 1/2 cup olive oil 1/2 cup vegetable oil 2 eggs 2 Tablespoons balsamic vinegar 1 1/2 Tablespoons vanilla    How can I convert that into a brownie recipe?  I'm thinking more oil/butter and less water would work, but I'm not sure of the ratios. I imagine I'd probably also cook brownies for a shorter amount of time.   What determines a cake's fluffiness and a brownie's dense chocolatey awesomeness? Is there a general formula you can follow for converting cake to brownies? (Since this question is about conversion, I suppose it could also apply to a boxed cake mix in case I'm too lazy to go to the store.)


When using labels with different lengths with tikz-qtree, tree nodes are sometimes not aligned. See the following MWE:  \documentclass{scrreprt} \usepackage{tikz-qtree}  \begin{document}      \begin{tikzpicture}[text depth=0pt]         \Tree [.{a}             [.{b}                 [.{d} ]                 [.{e} ]                 [.{ffffff} ]             ]             [.{c}                 [.{g} ]             ]         ]     \end{tikzpicture}  \end{document}   Just as c and g are aligned, I'd like to make the edge between b and e go straight down; I do realize that this way, the horizontal space between the the child nodes elements will be different, but this I find less annoying than the angles leaving a node not lining up correctly :).


Is it correct to use "could" when confirming something?

"I just want to confirm that I could be included in the committee although I am no longer affiliated with the university"   Is the sentence above correct or should I use "can" instead of "could"?


Prove that if $p$ and $q$ are odd numbers then $x$ is not a rational number in $x^2 + 2px +2q=0$

How do I prove that if $p$ and $q$ are odd numbers then $x$ is not a rational number in $x^2 + 2px +2q=0$?  So I don't know a whole bunch about quadratic functions behaviour but I know that we can get the solution for $x$ with the quadratic formula. I tried comparing the general formula with a fraction in which either $m$ or $n$ is an irrational number.  \begin{equation*}    \qquad \frac{-b \pm \sqrt{b^2-4ac}}{2a} = \frac{m}{n} \end{equation*}  We know that n is not the irrational number since a equals $1$ .  Therefore the upper part of the quadratic formula should equal an irrational number. I'm stuck on that part though, which function property could I use to prove this?   Note: I'm new to this site and I am learning to correctly use the features of stack exchange. If there is something I can improve in I'll be more than happy  to take some constructive criticism


Following function is used to upload a file. Now I want to cancel file upload on button click. How to do this?  function submitForm(form) {         var loader = new Loader({showPgBar : true});         var progressBar = loader.progressBar();         loader.show();         var data = new FormData(form);         data.append("category", "MEDIA_FILE");         var csrf_headerName  = $("meta[name='_csrf_header']").attr("content");         var csrf_paramValue  = $("meta[name='_csrf']").attr("content");         $.ajax({             type: "POST",             enctype: 'multipart/form-data',             url: URI.file.singleFileUploadUrl(),             data: data,             beforeSend: function (request) {                 request.setRequestHeader(csrf_headerName, csrf_paramValue);             },             processData: false,             contentType: false,             cache: false,             timeout: 1740000,  //29 minutes             success: function (data) {                 loader.hide();                 mediaFileMetaDataSave(data ,null);                 document.getElementById('media-file-form').reset();             },             xhr: function(){                 var xhr = $.ajaxSettings.xhr() ;                 xhr.upload.onprogress = function(data){                     progressBar.updateStatus(data);                 };                 return xhr ;             },             error: function (e) {                 loader.hide();                 toastr.error('Error has occurred while uploading the media file.');             }         });       }   Edit:  I have called the xhr.abort() like below. Although I clicked the cancelFileUpload button nothing happens. I have checked the console in browser. No errors appeared as well.  xhr: function(){             var xhr = $.ajaxSettings.xhr() ;             xhr.upload.onprogress = function(data){                 document.getElementById("cancelFileUpload").onClick = function(){                     xhr.abort();                 }                 progressBar.updateStatus(data);              };             return xhr ;         },   Why is this not working?


I have a code that takes some numbers from a user.I want to ensure that the data given from the user are numbers and not strings.From my knowledge to vb6 I know i can use IsNumeric so I was wondering if there is any similar function to js


How can I go to Disk Utility in order to rename the HDD partitions? I am trying Ubuntu 12.04 from USB.  Disk Utility is shown as installed but I can't access it.


asp.net c# force page reload on browser print hotkey

Is there any way to run code in my asp.net c# web application if the print hotkey (ctrl+P) is pressed by the user? I have an multiline asp:TextBox and I need to calculate the number of rows to generate the correct height of the textbox for the document. Atm I have an Print- Button, which works really fine, but I want to run the same code if the browser print function is used by the user. Thank you in advance


What is the probability of a person quantum tunneling?

I understand that it has been shown that small particles can quantum tunnel to just about anywhere in space (with decreasing probability the further out they go) since they all act as waves when they are not being observed and propagate outward across the universe. (Please correct me if I am wrong about any of that.)  Since we are made exclusively out of these same particles, does this mean that there is a non-zero probability that all of my particles will quantum tunnel at once tonight and I will wake up on the moon tomorrow?  If so, how can I find that probability?


What is the correct sentence :         What did you say?       or         What did you said?      The second sentence seems correct, but I am not certain.


What can you use Python generator functions for?

I'm starting to learn Python and I've come across generator functions, those that have a yield statement in them.  I want to know what types of problems that these functions are really good at solving.


Grey Line on Windows Explorer, Windows 7

I noticed yesterday when I hovered my mouse over a part of windows ezplorer, there was a small grey line, where the explorer toolbar normally goes. However over the line shows this cursor:    This is the line in the question, the images I found on another stack exchange question.    I know this my might be seem like a duplicate but I didnt find the answer on the other similar question.  Is this a default line on Windows 7? I set a system restore up and found system restore effects this bar. I did a restore to about 3 days ago, and the bar was still there, so its obviously been here before I noticed.  Another machine with oem hp windows 7 doesnt have this line. Can other software change how this line appears?  Just like to point out these images came from another superuser question.


How can I email a CS professor looking for Phd. students?

This year I will submit about 16 aplications to different universities for graduate studies at the US. However, I found that there are new professors looking for Phd. students. So as a foregin student with only a bachelor of science in computer science, how should I approach to a professor looking for students?. My background is the following:   CS major at the first university of my country A research thesis  3 research papers in the field of the professor's interest. (not ground breaking, the first one is in a local congress the second is in an international conference indexed by springer's LNCS and IEEE, the third is also indexed in springer.) 3.0 GPA I will take the GRE and TOEFL the nexts weeks   After all, I read 2 papers of this professor an I would like to be his Phd. student. If he would like to know me I will take a trip to the USA just to talk with him. How can I email to this professor and let him know I am an international enthusiastic stundent that wants to extend his work.


Bash auto_completion with Xubuntu and xrdp from windows

I'm using Xubuntu and connecting over RemoteDesktop with Windows 7.  Everything works fine, but the auto_completion in my bash doesn't work. I checked the .bashrc file in my home directory and also the /etc/bash.bashrc.  I uncommend the lines below in my local bashrc configuration and also in bash.bashrc, but nothing changes.  if ! shopt -oq posix; then   if [ -f /usr/share/bash-completion/bash_completion ]; then     . /usr/share/bash-completion/bash_completion   elif [ -f /etc/bash_completion ]; then     . /etc/bash_completion   fi fi


Notifications for significantly edited answers/questions

As far as I am aware, when a user edits either a question or an answer, someone following that question or answer does not receive a notification.  However, I suggest that in some cases it might be pertinent to notify the user for significant edits.  Perhaps the system can automatically determine when edits are significant based on amount of characters added/changed or perhaps even give an option to the editor to mark the edit as important?


Window 8's start screen does not create new process?

For example, I have started a visual studio instance, then I want to start a new visual studio instance in the windows 8's start screen with clicking the visual studio icon. But rather than starting a new instance, the system just bring me to the existing visual studio instance.  How could I set the default action for clicking to start a new process rather than switch to the existing process?  Thanks.


Increasing real valued function whose image set is connected

Let $S = [0,1) \cup [2,3]$ and $f\colon S \rightarrow \mathbb R$ be such that $f(S)$ is connected . Which of the following are true:  a) $f$ is discontinuous exactly at one point.  b) $f$ is discontinuous exactly at two points.  c) $f$ is discontinuous at infinite many points.  d) $f$ is continous.  I think $f$ is continuous . We need to show that $\lim_{x \to a^+}f(x) = f(a)$ for any $a \in S$. Since $f(x)$ is increasing, $\lim_{x \to a^+}f(x) \leq f(a)$. Suppose $\lim_{x \to a^+}f(x) < f(a)$. Then there is $l$ such that $\lim_{x \to a^+}f(x) < l <f(a)$, which contradicts connectedness of $f(S)$. Similarly we can show that $\lim_{x \to a^-}f(x) = f(a)$.  I would be thankful if anyone would check my solution and correct me if there are any errors.


I am looking at some notes on Adeles and Ideles by Pete Clark , and puzzling over exercise 6.9 (page 6), that if the group of units $U$ in a topological ring is an open subset, then multiplicative inversion on $U$ is continuous. I am supposing the idea is that projection from the locus of $x y = 1$ onto $R^\times$ is an open map (whence the result would follow), but I'm just not seeing it -- perhaps I'm being dense.   Pete notes that this implies that a (Hausdorff) topological ring whose underlying ring is a field (I guess this is what he means by "topological field") has this property. What is additionally puzzling me is that most of sources I've looked at (e.g. Wikipedia), when defining topological field, explicitly stipulate that inversion should be continuous, but if Pete were correct then that would be redundant (since a topological ring that is a field must be either indiscrete or is Hausdorff, due to the fact that the closure of $\{0\}$ is an ideal, and inversion is trivially continuous for the indiscrete case).   Edit: Looking over the monograph  by Seth Warner, who is expert in this area, one gets a strong suspicion from how the theorems are formulated that inversion need not be continuous even if the group of units is open, contrary to the assertion in Pete's exercise. (Sample statement, pp. 109-110: "If $\mathcal{T}$ is a Hausdorff ring topology on a commutative ring $A$ with identity for which $A^\times$ is open, then of all the ring topologies on $A$ weaker than $\mathcal{T}$ for which inversion is continuous there is a strongest $\mathcal{S}$, $\mathcal{S}$ is Hausdorff, and $A^\times$ is open for $\mathcal{S}$.") But frustratingly, no examples of this (where $\mathcal{S}$ is strictly weaker than $\mathcal{T}$) are given! Perhaps Google Books cut me off before that point was reached.   Anyway, I would be much obliged if someone would give an example of a field with a Hausdorff ring topology but where inversion is not continuous.


Motivation for the definition of prime and maximal ideals

How do you motivate the concept of a ring-theoretic ideal, and subsequently prime/maximal ideals, to a first-time ring theory student who has never seen these things before? Let's say they just know the definition of a ring, and some common examples --- that's it. There's two ways I can think of:  Use divisibility and posets: Say that divisibility in $\mathbb{Z}$ and $\mathbb{C}[x]$ corresponds to the poset of principal ideals, so you can use that to motivate the definition of ideals in general. The maximal elements in the poset are like the prime numbers. You could use the property "$p|ab\implies p|a \text{ or } p|b$" to motivate the element-wise condition of prime ideals, and all this motivates the question "when is every prime ideal maximal?" You can also use polynomials and irreducibles as an example, to even further motivate the need for generality.  Use the First Isomorphism Theorem: Motivate homomorphisms first and explain that ideals are the kernels of (surjective) homomorphisms. You could say that the cases of domains/fields recover prime/maximal ideals.   Or I guess you could mix-and-match ideas from both points. What other motivations are good for undergraduates learning about ideals for the first time? Is there a way to get at $\mathrm{Spec}(R)$, even when the audience only knows what an ideal is?


When I try to delete file in my PC it gives the error "Item not found"

When I try to delete file in my PC it gives the error     Could not find this item   This is no longer located in C:\Users\1600\Downloads. Verify the item's located and try again   File shows 0KB size.


Shared preferences is null, is it because of context?

I'm using below code for shared preferences.        private Context mCtx;    private static SharedPrefManager mInstance;     public SharedPrefManager(Context context) {             mCtx = context;         }     public static synchronized SharedPrefManager getInstance(Context context) {         if (mInstance == null)             mInstance = new SharedPrefManager(context);         return mInstance;     }     void SaveNotificationType(String strNotificationType) {             SharedPreferences sharedPreferences = mCtx.getSharedPreferences(Shared_Pref_Name, Context.MODE_PRIVATE);             Log.d(TAG, "SaveNotificationType: shared preferences is" + sharedPreferences);             try {                 if(sharedPreferences != null) {                     SharedPreferences.Editor editor = sharedPreferences.edit();                     editor.putString(notificationType, strNotificationType);                     editor.apply();                 }             } catch (Exception e) {                 e.printStackTrace();             }             //editor.commit();         }     When I run above code, I get an error which is given below:    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)' on a null object reference         at com.example.durga_bikkina.storageunitburnstatus.SharedPrefManager.SaveNotificationType(SharedPrefManager.java:41)         at com.example.durga_bikkina.storageunitburnstatus.MyFirebaseMessagingService.storeReceivedMessage(MyFirebaseMessagingService.java:125)         at com.example.durga_bikkina.storageunitburnstatus.MyFirebaseMessagingService.onMessageReceived(MyFirebaseMessagingService.java:36)         at com.google.firebase.messaging.FirebaseMessagingService.handleIntent(Unknown Source:340)         at com.google.firebase.iid.zzg.run(Unknown Source:29)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)         at java.lang.Thread.run(Thread.java:764)     How do I define context here?


How do I remove Wine program entries from the menu?

I had installed some programms with Wine, but I removed Wine from my computer. Now when I browse all applications in the Unity menu, the symbols of the programms I installed with Wine are still there.  How can I remove them?


Ubuntu 16.04 installed but wifi does not work. Configuration file attached

I just installed Ubuntu 16.04 but the wifi does not seem to work. I have run the following code and  :  wget -N -t 5 -T 10 https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info && chmod +x wireless-info && ./wireless-info


There seem to be a ridiculous number of Gundam series, spinoffs and movies. There also seems to be a lot of timelines, parallel universes which has confused me more.  I've tried looking this up before, but there's a large variety of differing answers depending on people's opinions.   As an anime fan, I think I should at least try it out. It might also help for understanding a lot of reference jokes in other series.  Where does one start with all these? Can you watch the series as standalones or should I start watching in a particular order?


how to have an easily transferable LaTeX environment?

I've installed a number of sty TeX packages in my machine (under /usr/share/texmf/tex/latex/). I also have a number of LaTeX documents (tex  files) in a github repository which I would like to be able to compile on any  machine in which I may clone that repository.  The problem is that every time I am using a different machine and try to compile the LaTeX documents (e.g. using pdflatex) I get a large number of errors because, obviously, the packages I rely on (using \usepackage) are not available in the new machine and so I have to spend some time recreating my LaTeX enviornment in that new machine. I.e. copying the same sty files in the new machine's /usr/share/texmf/tex/latex directory.  What would be an appropriate approach to ensure that my LaTeX environment is easily transferable between machines? E.g. perhaps maintain the contents of my /usr/share/texmf/tex/latex directory in a github repository?


Hat matrix with simple linear regression

In     However I am unable to work this out myself. When I multiply things out I get $\frac{1}{nS_{xx}}(\sum_{j=1}^n x_j^2 -2n\bar{x}x_i+nx_i^2)$. For things to be true, the terms inside the parenthesis can be rearranged to be $S_{xx}+n(x_i-\bar{x})^2$. I tried rearranging the terms so $\sum_{j=1}^n x_j^2 -n\bar{x}x_i+nx_i^2-n\bar{x}x_i$, but I can't seem to get to the answer. There must be some form of $S_{xx}$ that I am not aware of that is buried in their somewhere. Any help would be appreciated.


passing data between applications / processes

I'm developing an application to monitor information of our software suite, so i'll only have access to modify code from my own project, and the other half will depend on the suite programmers. The programs will all be running on the same computer, with the monitoring software running as a service.  One of the things i'm curious as to which route to take, is how to share or pass information between the applications or processes. Let's just say it's not important what type the data is, whether i send bytes, or a string or so on (Even though deep down it's all the same).   Opening a TCP/IP listener / connection to send data to the same computer seems overkill, just to listen on a certain port to recieve the information. What other options are there? I've taken a little look into data maps, but my only concern is that the suite is written in delphi, so i'm not sure of compatability between c# and delphi for accessing the datamap (Can delphi even do such a thing is a research point i'll look into).  So my question is, in a TL;DR kinda manner, what options are there for transporting data on an inter-process level?


Task: Construct an AND circuit with 8 inputs, a circuit which implements the expression a∧b∧c∧d∧e∧f∧g∧h.  Condition: Use only NAND-Gates with two inputs to solve this task.  Could anyone explain to me how to solve this question?  Thanks.  Edit: My thought would be to do sth. like this:    Could that be right?    Edit: My new idea:         – Schematic created using


How to Render a Video as an .mp4 Format?

Yes, I've read other topics asking the same question, and changed all the output settings that I know someone will reply with. Keep in mind, I'm very new to using Blender as a video editor. However, when I render or save the video, it saves as a .png or a .blend. My settings are changed to: File Format: FFmpeg, Container: mp4, Codec: mp4. Where exactly do I go to render/save it as an mp4?


So a 500w PSU will always use 500w or just what other computer's components demand?  I myself thought it would be the latter. Can anyone confirm this?


How does $ \sum_{p<x} p^{-s} $ grow asymptotically for $ \text{Re}(s) < 1 $?

Note the $ p < x $ in the sum stands for all primes less than $ x $. I know that for $ s=1 $, $$ \sum_{p<x} \frac{1}{p} \sim \ln \ln x , $$ and for $ \mathrm{Re}(s) > 1 $, the partial sums actually converge to a finite limit called the , which has an analytic continuation to the whole right-half plane but the actual series diverges in the critical strip. So anyway, I'm wondering what the asymptotic behavior of the partial sums are in the limit as $ x \to \infty $ for a given value of $ s $ with $ \mathrm{Re}(s) < 1 $. At first I intuitively conjectured it might be something vaguely like the following  $$ \sum_{p<x} \frac1{p^s} \sim f(s) \pi(x)^{1-s} , \quad f(s) = \lim_{n\to\infty} \int_0^1 g_n(u) u^{-s} du $$ but after some thought I'm not sure if this kind of formula will work after all. Any ideas?  Note again: I'm asking about asymptotics when $ \mathrm{Re}(s) < 1 $.


ArrayList described as  public class ArrayList<E> extends AbstractList<E>     implements List<E>, RandomAccess, Cloneable, java.io.Serializable   And most of main methods work with E generic type (get, set, add, addAll etc).  But methods contains, indexOf, lastIndexOf and remove take the Object type as parameter - is this only because of inner use or Object.equals() or anything else?


One definition of  states:     characterized by the use of many or too many words; wordy: a verbose report.   Some (including the above link) suggest that the opposite is  or , however both mean covering much in few words.  Is there an opposite of verbose which means the use of too few words?  Here's  about this, although it doesn't offer an alternative.


And how long does it take?  I downvoted a question 10 minutes ago but I did not receive the critic badge. Is this is bug or am I doing anything wrong?


Struggling with something very simple  I have a blender file open and need to import my character in there. That file is also a blender file. Can import blender file into blender file?


When does $az + b\bar{z} + c = 0$ represent a line?

$a,b,c$ and $z$ are all complex numbers. My idea was to show that it passes through the point $\infty$ in the extended complex plane, but I'm not quite sure how to execute that.  Update: It says in the text that a straight line can be represented by a parametric equation $z = a+bt$, where $a$ and $b$ are complex numbers, and $b\neq 0$, $t\in\mathbb{R}$


Holomorphic function having finitely many zeros in the open unit disc

Suppose $f$ is continuous on the closed unit disc $\overline{\mathbb{D}}$ and is holomorphic on the open unit disc $\mathbb{D}$. Must $f$ have finitely many zeros in $\mathbb{D}$? I know that this is true if $f$ is holomorphic in $\overline{\mathbb{D}}$ (by compactness of the closed unit disc), but I'm not sure of what happens when I just consider $\mathbb{D}$.


Should I always use the perfect present, when the sentence uses "never"?

In my English classes, I was taught that never should not be used with past forms, only with present perfect forms; this is also what I read in a grammar book I bought some years ago. (I bought the book in the USA; I guess the book is about American English grammar, but I don't have any reason to believe there is any difference between American, and British English in this case.)  Is it correct to use never with the past tense?     I never said that.        I have never said that.


How to resolve conflicting distributions in apt-get

When doing an apt-get update/upgrade I see that warning  W: Conflicting distribution: https://downloads.plex.tv/repo/deb public InRelease (expected public but got )   I was upgrading to Ubuntu Zesty 17.04 before and do not know how to fix the above. Already have seen ? but there are no suggested fixes for that.  Maybe one of you can give some hints? Thanks!


Turn SQL data which is separated by comma to SQL "in" instructions

First Statement :   Select GroupMember FROM Group    Result:                          Los Angeles,San Diego                          (it is a string)  Second Statement :    SELECT *  FROM Store_Information   WHERE Store_Name IN ('Los Angeles', 'San Diego');   How to turn Los Angeles,San Diego(one data) to IN ('Los Angeles', 'San Diego')?


Add st, nd, rd, or th to date (ordinalize)

I am hoping to ordinalize a date I have created. This is the code I have that outputs the date.  Date.parse(day).strftime "%B %e (%A)" #outputs => October 8 (Wednesday)   I would like to change it so that it outputs like the following:   October 8th (Wednesday)  Ive looked at this, but can't seem to get it right:   Any ideas on how this might be done? Thanks!


Expected value of $X$ which follows a normal distribution, between a certain interval

What is the process of finding the expected value of $X$ in a normal distribution between a certain interval?  In particular I want to find: $E(X | a \le X \le b)$.  For example, if $X$ has $\mu=0$ and $\sigma=0.5$,  I want to calculate  $E(X | 0.2 \le X \le0.3)$.  I have read  but it refers to the truncation of the upper tail only.


Application of Heisenberg's uncertainty principle on photons

While I was hobby-reading about quantum mechanics I came across Heisenberg's theory. But while I was trying to understand it I thought of this: if the speed of light (as well as the momentum of a photon) is well-defined, then if in an experiment the position of the photon was found, the researchers would know the exact position of the photon, but also its momentum which is constant. Is this an exception from the rule, or am I just ignorant?  PS, 12 grade physics education, please try to explain in simple words


The second law of thermodynamics in terms of entropy at negative absolute temperatures

Why is it that the second law of thermodynamics in terms of entropy doesn't change at negative absolute temperatures? Has it been observed in experiment that if you add heat to a system with negative absolute temperature (which decreases its entropy), the entropy of the surroundings increase in a way that the change in the entropy of universe won't be negative?  Edit: Why am I asking this question: Since it is a "law", if it is to be true at negative temperatures as well as positive temperatures, what I said above must have been observed in experiment. Therefore one can prove that when two systems, one with negative temperature, and the other with positive are brought in contact, heat flows from the one with negative temperature to the one with positive temperature. On the other hand, if it has been observed in experiment that heat flows from a system with negative temperature to a system with positive temperature in contact with it, then one concludes that the second law is also true at negative temperatures. I want to know which one, maybe both, is an experimental fact. The second law of thermodynamics in terms of entropy true at negative temperatures, or Heat flows from a system with negative temperature to a system with positive temperature in contact with it.


pointing to a character in a string using an integer

#include<stdio.h> main() {   char s[]="man";   int i=0;   printf("%c%c\n",s[i],i[s]); }   o/p: m m   *Both s[i] and i[s] prints 'm' and 'm'. *However s[i]=m, that is acceptable,but how i[s]=m ?? *Can any one explain me about this please.


How can I upload the image with ajax and save image address in mysql with pdo

How can I upload the image and save the image address in the mysql ? 1.I want to upload the image with AJAX 2.And the image address will be stored in the mysql with pdo This is my code:  $(document).ready(function(){     $("#usredit").click(function(){         var name = $("#name").val();         var email = $("#email").val();         var file = $("#file").val();         var image = $("#image").val();         var id = $("#id").val();         var send = true;         $.post("set-ajax.php",{name:name,email:email,file:file,image:image,id:id,send:send},function(data){                     $("#editres").html(data);         });     }); });   ajax.php  if(isset($_POST['send'])){     if(empty($_POST['name']) || empty($_POST['email'])){         echo '
Fill empty fields
';             }else{                 if(isset($_POST['file'])){                     $file = $_POST['file'];                     $tmp = $_FILES['file']["tmp_name"];                     $name = $_FILES['file']['name'];                     $type = $_FILES['file']['type'];                     if (is_uploaded_file($tmp)){                         $ext = array("image/jpg","image/png","image/jpeg");                         if (in_array($type,$ext)){                             $filename = md5($name.microtime()).substr($name,-5,5);                         if(move_uploaded_file($tmp,"user/img".$filename)){                             echo '
Upload done
';                         }else{                                 echo '
Upload failed
';                             }                         }else{                             echo '
Unrelated file
';                         }                     }                 }                 $name = $_POST['name'];                 $email = $_POST['email'];                 $image = $_POST['image'];                 $id = $_POST['id'];                 $resualt = $User->UpdateUserProfile($name,$email,$image,$id);                 if($resualt ){                     echo '
Edit done
';                 }else{                     echo '
Edit failed
';                 }             }


I am in a 3.5e campaign and I am working on putting together a dragonborn knight that has really high defense, health, and can also buff adjacent allies.  What should I look at for feats?  All books in 3.5 are available for us to use.


Are dark themes more effective than light themes for artistic software?

Before there were more apps using light themes, but for a while more and more apps come with dark themes. I personally really like working in dark themes. They are very easy on my eyes. Of course different people prefer different ones. Some of my colleagues use gray themes, and some of them like to boost saturation levels way above normal (5-10x).  For artistic software, are there any pros or cons to each? I imagine there must be some research done on this to figure out which one is the most effective, allowing you to focus on the artwork, etc. I know for instance when you see the same image on different backgrounds, it may appear slightly different in terms of color perception.


By mistake my bashrc has changed (using source command to a .com file). Now sudo su command is not working. To use root I have to give bash command. How can I return previous stage? Or use sudo su?


Calculating mean and standard deviation for raster values using whole pixels within a polygon

I have a raster image and a corresponding shapefile. I would like to calculate the statistics of the values within polygons which have a common attribute but only using pixels which are fully contained in the polygons.  I would like to do this in R, however I have so far only managed to load the image and shapefile using readGDAl and readOGR respectively!


Is it possible to install Ubuntu Touch on Galaxy S3 mini

I know it is not on the list of supported devices, but I would like to know if it is at all possible to install Ubuntu Touch on the Samsung Galaxy S3 MINI. I am tired of the bogged down interface of the Android installed by Samsung and would love to try out a new OS on my phone. I love the lay out of Ubuntu Touch and badly want to try it. Any help is much appreciated! (the phone is a AT&T phone)  Note: I am clearly stating that I know it is not on the list of supported devices. I want to know it the listed S3 process will work, or if there is any way to install even though it is not supported.  "I know it is not on the list of supported devices, but..." - The very first line in the question. Any help is appreciated!  This is not a duplicate because I know that this phone is not on the list that the page question will lead me too. I'm asking that if since the full version of this phone is on the list if it can be installed the same way on this phone. If not, is there any way I can try to manually install it?


Is it really not possible to disable updates in windows 10?

This is not a question about upgrading to windows 10!   I have read many times that in windows 10, you cannot disable automatic updates, which means windows 10 will download updates automatically whenever it is available. Doesn't Microsoft know that this change would negatively affect people like me who have limited bandwidth and pay higher price for data? (This is almost true for people in developing countries). Is there any response from MS about this? Does MS really considered these people when they released their new OS in 150+ countries?    Is there any workaround for this?


$f:[0,\infty)\rightarrow\mathbb{R}$ is differentiable and $\lim_{x\to\infty}f'(x)=0$, prove $\lim_{x \rightarrow \infty}[f(x+1)-f(x)]=0$.

Assume that $f: [0, \infty) \rightarrow \mathbb{R}$ is differentiable    for all $x>0$ and $\lim_{x \rightarrow \infty} f'(x) = 0$. Prove that    $\lim_{x \rightarrow \infty}[f(x+1)-f(x)] = 0$   I was hinted that I should use the mean value theorem here. My attempt is as follows. Consider the closed interval $[x, x+1]$ where $x>0$. Clearly, $f$ is continuous on $[x, x+1]$ and also differentiable on $(x, x+1)$ by the assumptions of the question. So we can apply the MVT and conclude that there exists a $c \in (x, x+1)$ such that $f(x+1) - f(x) = f'(c)$. Now if I take the limit to infinity on the left hand side, I can see the $\lim_{x \rightarrow \infty} f(x+1) - f(x)$ come into play, but what is $\lim_{x \rightarrow \infty} f'(c)$?   I thought about something like this, but not sure if it is right. Clearly, $c = x+t$ for some $0<t<1$, so $f'(c) = f'(x+t)$, so $\lim_{x \rightarrow \infty} f'(c) = \lim_{x \rightarrow \infty} f'(x+t)$. Now I am not sure how to bring $\lim_{x \rightarrow \infty}f'(x) = 0$ into the picture.


In the  library, they are overloading the () operator.  Is this a convention in C++? For callbacks, etc.?  I have seen this in code of a co-worker (who happens to be a big Boost fan). Of all the Boost goodness out there, this has only led to confusion for me.  Any insight as to the reason for this overload?


How can I create a halftone using rough lines?

Does anyone know if is there an effect to make something like the following images with photoshop? I thought it was halftone lines but this lines aren't straight.


What is dimension over $\mathbb R$ of the space of $n\times n$ Hermitian matrices?

what is dimension over $\mathbb{R}$ of $H_n( \mathbb{C})$, the set of $n \times n$  Hermitian matrices? My attempt: every real number is a complex number as  all symmetric matrices  are  Hermitian. In my view the dimension of $H_n( \mathbb{C})$ is $\frac{n(n+1)}{2}$


How do I change the language of all Powerpoint slides at once?

I want to change the proofing language of all my slides in a Powerpoint. I've tried setting the language via the Language Preferences menu, however this only changes it for new powerpoints.


When backpacking, what is the best way to protect my valuables?

What is the best way for me to protect my valuables on my upcoming trip to Europe? I will not have the luxury of staying in Hotels all of the time, and will be backpacking a lot of the time. I have both a large rucksack, as well as a fanny pack. Is there a certain spot that is best to put my items?  My valuables consist of:    My Wallet with ID/Cash/Passport etc... My Camera (Point & Click, not a DSLR.) My SmartPhone (Fairly Large, 6" Screen.)   So, besides shoving them in the bottom of one of my bags, is there a better option?  Note: What about pickpockets?


What happens to a Titan Shifter if they die without being eaten?

The question is very vague, so let me clear up some of the confusion and haze.  In the entirety of AoT, it is known that, to inherit the powers of a Titan Shifter, the chosen one must eat the current holder, absorbing their spinal fluid as they do so, as is the curse of Ymir. But what happens to the Titan abilities should the current Titan Shifter be killed in different circumstances, besides being eaten by the Inheritor of said power?  What if the Titan Shifter is killed in combat by being blindsided on the battlefield, for instance? Or dies under mysterious circumstances? Is the power still retained by the holder's corpse, or does the power "drain" away when they die?


Options for risk-free investment or savings over one and two years?

I converted my IRAs to Roths last year, and with the extension of the tax cuts*, I've decided to split the tax burden over 2011 and 2012, even though I can afford to pay them for 2010.  Given that I have this money that is not really mine, what would be some options for risk free returns I could get for one and two year time windows?  *Of course, Illinois just raised state taxes by 2%, which might make paying it all off in 2010 more attactive.


Isomorphism between polynomial rings and its restriction

Suppose $R$ and $S$ are integral domains. And let $\phi:R[x]\longrightarrow S[x]$ be an isomorphism between their polynomial rings. Is it possible that $\phi|_R$, the restriction of the isomorphism to $R$, is not an ismorphism between $R$ and $S$?


You're observing a massive object (probably a neutron star), and it is moving at a significant fraction of the speed of light relative to you. The mass of the object is just below the mass necessary to form a black hole of the corresponding size (ie, if a relatively small amount of mass was added, or the current mass was compressed, it would form a black hole). In the moving reference frame of the object, it is not observed to be a black hole, and it doesn't have sufficient density to form one.  The interesting conundrum is that from your point of view, the object undergoes length contraction. In this case, if an object of the same mass were to have the size that you're observing due to length contraction, it would be of sufficient density to form a black hole. Obviously, you don't observe the moving object becoming a black hole, because it isn't actually doing that, but you observe what appears to be an object of sufficient density to become a black hole, but is not a black hole.  What makes this possible? Is the observed mass from your reference frame different for some reason? Does what you observe not matter? Is it something else?


Answers Half Typed for On Hold Questions

I experienced a little frustration today whilst typing out, what I thought, was about to be a well thought through answer to a question. Although the question was badly put forward I understood what they needed and was putting together a reply which i believed would sort their problem and help anyone in the future who stumbled across the question.  So, I press the Post Your Answer button, and nothing happens. Damn. What's going on? I refresh the page and find out. The question was put on hold. Now, I understand and greatly appreciated the On Hold system. It does it's job well and is an asset to the site. That said, having had this happen was frustrating, but I think it's something that could be avoided fairly easily.  So, onto the feature request.  The feature request is to allow answers to be posted if someone started typing it out before the question was put on hold. This would obviously have to come with restrictions to stop exploitation, such as giving people a 5 minute or so window maximum in which they can submit an answer after it has been put on hold (as long as they started typing the answer out before the question was put on hold).  I think this would help prevent people becoming discouraged with answering others questions.   Clarification for Moderation: The only previous question/request on this subject has asked that all people should be allowed to post to on-hold questions and the answers will then appear later when the question is taken off-hold. Where-as I am asking that answers merely be allowed through if they were started before the question was put on hold. That makes this a request for an entirely different feature.


Information on a photo of a German soldier boy who served during the 2nd world war

I have a photo of a German youth soldier who was captured by American forces somewhere in the Ruhr area in March 1945.   Can you give me some details as to who the young German soldier boy is?


I have a fruity beef stew with plums, carrots, beef, onion, beef stock and far too much lemon juice and lemon zest. It tastes too lemony, what can I do to counteract it?


Quite few months ago I used to review first-posts and late answer post through review link on Stack Overflow. But now the review link is gone. Is there any reason why the review link is gone?  Any suggestion would be great.


The definition of affine quasi-projective variety is that it is a quasi-projective variety that is isomorphic to an affine variety. Then is an affine quasi-projective variety necessarily projective? Is there any examples?


crypt32.dll is broken for Virtualbox since patch Tuesday 9-Dec-2014?

In the last 18 hours my Windows 7 Pro 64-bit machine has rebooted in response to the Windows Update applying patches.  Now I find when I try to start the VirtualBox Manager (not the actual VM's which the manager manages, I don't get that far) I get the message "\.\GLOBALROOT\SystemRoot\System32.dll is either not designed to run on Windows or it contains an error"    When I search for this file at %systemroot%\System32\crypy32.dll it doesn't exist.  It seems that the patching has wiped this file out ?  I have followed the advice from the dialog box of re-installing VirtualBox (both the version I was originally running and several later versions) but none of that helps (well actually I get different errors from the later versions but I would rather address this issue than wade into a other VirtualBox errors).  How can I most easily get a relevant copy of crypt32.dll ? I only have a recovery partition not the "original installation media".    EDIT: Good advice from @Bob. Unfortunately, it seems, I've used up all my System Restore points in trying to fix this earlier. I've put up another question asking what options I have :  .    EDIT: Here are the updates most recently applied to the machine in question:


Show that a ring $ R $ with exactly $ n $ zero divisors (different from $0$) has cardinality atmost $ (n+1)^2 $.    I have shown that annihilator of any element among the zero divisor is a subset of the zero divisor which proves it is finite. now i think i have to show that it's coset space is finite.please help me.


The default tolerance of PostGIS ST_Intersects query is "0.00001 meters" as indicated in the . I need to use the same query with another tolerance value but ST_Intersects takes only 2 input parameters (geom A and geom B).  Is there a way to change this default value?


If a function can only be defined implicitly does it have to be multivalued?

What is the general reason for functions which can only be defined implicitly?   Is this because they are multivalued (in which case they aren't strictly functions at all)?   Is there a proof?   Clarification of question.  The second part has been answered with example of single value function which cannot be given explicitly. The third part was automatically answered because there can't be a proof that necessarily implicit functions are all multivalued by way of the example of one that wasn't.    I don't think that the first part has yet been addressed. Stating that the answer can't be expressed in "elementary functions" seems tantamount to saying that it a necessarily implicit function, unless I'm missing something about the definition of "elementary functions". Such answers seem to imply that the equation could be solved in terms of "non-elementary" functions.If this is correct than I need to find out about them and how they could be used to calculate the dependent variable solely in terms of the independent one (my notion of an explicit function). This would seem to violate the notion of a function which could only be defined implicitly. I am also not concerned with whether or not the solution is closed or open form (by which I mean finite number of terms or infinite).


This is a general question about (La)Tex. Is it possible to configure/setup tex to make it "hold register"?   To "hold register" is to ensure that the horizontal lines which all "normal/plain" text is placed on, are the same on all pages.


Is there any way to temporarily disable GUI (X server) when booting an Ubuntu 16.04 LTS installation?  There are various guides advising to add text option onto the line GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub or directly on the linux line in GRUB. These methods work well in Ubuntu 14.04 LTS but I always end up in LightDM when trying them in 16.04 LTS.


Can bash run a command when I hit enter on an empty line?

Is it possible to make bash run clear && ls -A --color whenever I hit enter on an empty line?  I don't know it that's relevant, but I'm using set -o vi for vi mode.


How do I install MS SQL for ubuntu 18.04 LTS?

I looked up on the internet but all those steps to install were regarding 16.04 version. Is it available yet on 18.04 ? If yes,how?


Ubuntu 12.04 shows Packages 404 not found while updating and Hash sum mismatch

I'm getting the following error while updating:  W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/natty-backports/main/binary-i386/Packages  404  Not Found W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/natty-backports/restricted/binary-i386/Packages  404  Not Found W: Failed to fetch gzip:/var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_precise-security_main_binary-i386_Packages  Hash Sum mismatch E: Some index files failed to download. They have been ignored, or old ones used instead.   If I try to update from update manager it shows: Failed to download repository information Check your Internet connection.  I have absolutely no idea what to do next. Please help.


Should Stack Exchange hire someone to deal with off-platform interactions?

Sadly, SE doesn't have anymore the list of all their paid employees, so I can't verify that there is someone dedicated to this. Yet the recent events on off platform venues and the response of SE as company seems to be that there isn't a real coordination on the public off platform face of the company.  SE seems to have a very large team of community managers, but these are usually dedicated to manage SE own community, but no one to manage the communities that interact with SE outside of SE. This seems to be an oversight.  focus on the engineering and product selling aspects of SE. But this aspect of the business, the one that has to deal with off platform interactions, seems to be fallen into whoever employee happens to see and be able to respond to those.  Sometimes you have to deal with clients that don't really use the site as more engaged individuals nor pay for its use. Lets be serious and get someone to be a measured and corporate face to people that isn't the core clients.  This person should have close relationships with SE CM's. corporate, devs and sales/marketing. Remember this would be a person to represent the company to those outside of it, and having uncoordinated messages at all these levels was the thing this person is set to solve


What about the continuity of these functions in the uniform topology?

Let $f$, $g$, $h \colon \mathbf{R} \to \mathbf{R}^\omega$ be defined by   $$\begin{align*} f(t)&:=(t,2t,3t,\ldots),\\\\ g(t)&:=(t,t,t,\ldots),\\\\ h(t)&:=\left(t,\frac{t}{2},\frac{t}{3},\ldots\right) \end{align*}$$  for all $t \in \mathbf{R}$. How to determine whether these functions are continuous relative to the uniform topology on $\mathbf{R}^\omega$? We of course assume that $\mathbf{R}$ is given the usual topology.


How can I start a bounty in a mobile application?

I was browsing some questions in Chemistry Stack Exchange. Many of the questions were relevant to me but either they had no answers or outdated ones. So I wanted to start a bounty on them. But this feature is not shown in the app. How can I use it in a mobile app?


Can the Thorn Whip cantrip fulfill the requirement for the third benefit of the Mobile feat?

As stated in the description for the  cantrip (PHB, p. 282), the caster makes a "melee spell attack" against the target.  You create a long, vine-like whip covered in thorns that lashes out at your command toward a creature in range. Make a melee spell attack against the target.  The third benefit of the  feat says (PHB, p. 168):  When you make a melee attack against a creature, you don’t provoke opportunity attacks from that creature for the rest of the turn, whether you hit or not.  Given that the third benefit of the Mobile feat only requires a melee attack to be made to avoid provoking opportunity attacks (without specifying the type of melee attack), would that cantrip fulfill the trigger for Mobile? In other words: Is a spell melee attack considered a "melee attack" for the purpose of the Mobile feat?


building a game for different resolution phones

I am starting some tests for building a game on the Android program. So far everything is working and seems nice.  However I do not understand how to make sure my game looks correct on all phones as they all will have slightly different screen ratios (and even very different on some odd phones)  What I am doing right now is making a view frustum (could also be ortho) which I set to go from -ratio to +ratio (as I have seen on many examples) however this causes my test shape to be stretched and sometimes cut off by the edge of the screen.   I am tilting my phone to landscape to do my tests (a bit extreme) but it should still render correctly if I have done things right.  Should I be scaling by some ratio before drawing or something?  An example would be greatly appreciated.  PS. I am doing a 2D game .


gedit - Annoying Documents window in the side

My OS: Kubuntu 21.04 Non-LTS So, ever since August I've been using Ubuntu and my text editor of choice was gedit. But only just now, a problem occured. On the left side there is now a strange window saying "Documents". Any attempt to get rid of it just gets rid of the gedit window, and restarting gedit doesn't affect it. It's distracting and interfering with my severe astigmatism, so I can barely see what I'm writing because of it.


When I try to do something like \section{Heading with \textsc{small caps}}, the compiler complains with "LaTeX Font Warning: Some font shapes were not available, defaults substituted." and replaces the small-caps with normal test.  Any suggestions on how to fix this?


Hats are placed in the top left screen corner if user icon (e.g. from facebook) is blocked from loading

I use Firefox with the "Disconnect" add-on which has the feature to block e.g. content from Facebook etc.   Some of the SE users' icons are from Facebook so if we block that, these icons do not load and are invisible, which is acceptable though.  However, during Winter Bash, there are hats added to the icons. Unfortunately, if the original icon is blocked from loading, the hat just gets placed in the top left corner of the visible screen:    This is a bug, although it's only a minor one because it probably doesn't affect too many users. I would like to suggest to hide the hat if the icon did not load (yet or at all) instead of placing it in the top left corner.  Related issue (from chat, not main sites):


Can I run this on a usb hard drive on my desktop that is currently running windows xp I do not have enough space to partition my drive?

Can I run this on a usb hard drive on my desktop that is currently running windows xp I do not have enough space to partition my drive ?


Remove file type associations in Windows 7

I have set up a custom file association for .cfg to open in , but I can't seem to figure out how to remove it. How do I remove file associations in Windows 7?